Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36,768 changes: 11,874 additions & 24,894 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion packages/TBC20/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"types": "./build/src/token.d.ts",
"devDependencies": {
"@types/chai": "^4.3.12",
"@types/expect": "^24.3.0",
"@types/mocha": "^10.0.6",
"@types/node": "~20.11.21",
"chai": "^5.1.0",
Expand Down
1 change: 0 additions & 1 deletion packages/TBC721/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
},
"devDependencies": {
"@types/chai": "^4.3.12",
"@types/expect": "^24.3.0",
"@types/mocha": "^10.0.6",
"@types/node": "~20.11.21",
"chai": "^5.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/chess-app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>TBC Chess</title>
<title>Vite + React + TS</title>
</head>
<body>
<div id="root"></div>
Expand Down
1 change: 1 addition & 0 deletions packages/chess-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@bitcoin-computer/lib": "^0.22.0-beta.0",
"flowbite": "^2.3.0",
"react": "^18.3.1",
"react-chessboard": "^4.7.2",
"react-dom": "^18.3.1"
},
"devDependencies": {
Expand Down
10 changes: 1 addition & 9 deletions packages/chess-app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,16 @@
import { defineConfig, loadEnv } from "vite"
import react from "@vitejs/plugin-react"
import path from "path"
import fs from "fs"

// https://vitejs.dev/config/
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), "")

const primaryPath = path.resolve(__dirname, "./node_modules/@bitcoin-computer/lib/dist/bc-lib.browser.min.mjs");
const pathInWorkspace = path.resolve(__dirname, "../lib/dist/bc-lib.browser.min.mjs");
const filePath = fs.existsSync(primaryPath) ? primaryPath : pathInWorkspace;

console.log(filePath); // This will log the path based on the file's existence.

return {
plugins: [react()],
resolve: {
alias: {
// Define the alias pointing to the specific entry point in node_modules
"@bitcoin-computer/lib": path.resolve(__dirname, filePath)
"@bitcoin-computer/lib": path.resolve(__dirname, "../lib/dist/bc-lib.browser.min.mjs")
}
},
server: {
Expand Down
13 changes: 0 additions & 13 deletions packages/cra-template/.env.example

This file was deleted.

25 changes: 0 additions & 25 deletions packages/cra-template/.eslintrc

This file was deleted.

21 changes: 0 additions & 21 deletions packages/cra-template/.gitignore

This file was deleted.

96 changes: 0 additions & 96 deletions packages/cra-template/README.md

This file was deleted.

64 changes: 0 additions & 64 deletions packages/cra-template/package.json

This file was deleted.

Binary file not shown.
Binary file removed packages/cra-template/public/favicon.ico
Binary file not shown.
43 changes: 0 additions & 43 deletions packages/cra-template/public/index.html

This file was deleted.

Binary file removed packages/cra-template/public/logo.png
Binary file not shown.
Binary file removed packages/cra-template/public/logo192.png
Binary file not shown.
Binary file removed packages/cra-template/public/logo512.png
Binary file not shown.
25 changes: 0 additions & 25 deletions packages/cra-template/public/manifest.json

This file was deleted.

3 changes: 0 additions & 3 deletions packages/cra-template/public/robots.txt

This file was deleted.

Loading