Skip to content

Commit d3f57fc

Browse files
committed
Fix build issue in js cli
1 parent 1c3b2bb commit d3f57fc

File tree

6 files changed

+37
-38
lines changed

6 files changed

+37
-38
lines changed

browser/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"prepublishOnly": "pnpm run build && pnpm run lint-fix",
2323
"watch": "tsc --build --watch",
2424
"start": "pnpm watch",
25-
"tsc": "tsc --build",
25+
"tsc": "pnpm exec tsc --build",
2626
"typecheck": "pnpm exec tsc --noEmit"
2727
},
2828
"bin": {

browser/cli/tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"outDir": "./bin",
4-
"rootDir": ".",
4+
"baseUrl": "./",
55
"target": "ESNext",
66
"moduleResolution": "nodeNext",
77
"module": "nodeNext",
@@ -14,5 +14,8 @@
1414
"include": [
1515
"./src",
1616
],
17+
"exclude": [
18+
"../node_modules",
19+
],
1720
"references": [],
1821
}

browser/data-browser/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@
5757
"devDependencies": {
5858
"@swc/plugin-styled-components": "^1.5.110",
5959
"@types/prismjs": "^1.26.4",
60+
"@types/react": "^18.2.34",
61+
"@types/react-dom": "^18.2.14",
62+
"@types/react-router-dom": "^5.3.3",
6063
"@types/react-pdf": "^6.2.0",
6164
"@types/react-window": "^1.8.7",
6265
"@vitejs/plugin-react-swc": "^3.5.0",

browser/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
"@types/chai": "^4.2.22",
66
"@types/jest": "^27.0.2",
77
"@types/node": "^20.11.5",
8-
"@types/react": "^18.2.34",
9-
"@types/react-dom": "^18.2.14",
10-
"@types/react-router-dom": "^5.3.3",
118
"@typescript-eslint/eslint-plugin": "^7.8.0",
129
"@typescript-eslint/parser": "^7.8.0",
1310
"chai": "^4.3.4",
@@ -22,7 +19,6 @@
2219
"netlify-cli": "16.2.0",
2320
"prettier": "3.2.5",
2421
"prettier-plugin-jsdoc": "^1.3.0",
25-
"react": "^18.2.0",
2622
"ts-jest": "^29.0.1",
2723
"typedoc": "^0.25.3",
2824
"typedoc-plugin-missing-exports": "^2.1.0",

browser/pnpm-lock.yaml

Lines changed: 22 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

browser/react/package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,17 @@
66
"@tomic/lib": "workspace:*"
77
},
88
"devDependencies": {
9-
"typescript": "^5.4.5"
9+
"typescript": "^5.4.5",
10+
"@types/react": "^18.2.34",
11+
"@types/react-dom": "^18.2.14",
12+
"@types/react-router-dom": "^5.3.3"
1013
},
1114
"peerDependencies": {
1215
"react": ">17.0.2"
1316
},
14-
"files": ["dist"],
17+
"files": [
18+
"dist"
19+
],
1520
"license": "MIT",
1621
"name": "@tomic/react",
1722
"main-dev": "src/index.ts",

0 commit comments

Comments
 (0)