Skip to content

Commit 84bb219

Browse files
committed
fixed react build
1 parent b834614 commit 84bb219

File tree

14 files changed

+51
-7
lines changed

14 files changed

+51
-7
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ brew install "${packages[@]}"
2828
- installation: `yarn` (db migration will auto exec)
2929
```shell
3030
yarn workspaces foreach -pA add -D npm-run-all
31-
yarn workspaces foreach -pA --include "packages/frontend/*" --include "packages/backend/*" add -D ts-patch typescript-transform-paths
31+
yarn workspaces foreach -pA --include "packages/frontend/*" --include "packages/backend/*" \
32+
add -D ts-patch typescript-transform-paths copyfiles \
33+
@cs-magic/ts-config @cs-magic/eslint-config @cs-magic/prettier-config @cs-magic/tailwindcss-config
3234
```
3335

3436
## References

apps/totem-gen

packages/backend/common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
"tailwind-merge": "^2.4.0",
5454
"tencentcloud-sdk-nodejs-sms": "^4.0.882",
5555
"triple-beam": "^1.4.1",
56-
"ts-patch": "^3.2.1",
5756
"ulog": "2.0.0-beta.19",
5857
"universal-logger": "^1.0.1",
5958
"util": "^0.12.5",
@@ -74,6 +73,7 @@
7473
"@types/winston": "^2.4.4",
7574
"@types/yargs-parser": "^21",
7675
"npm-run-all": "^4.1.5",
76+
"ts-patch": "^3.2.1",
7777
"typescript": "^5.6.3"
7878
}
7979
}

packages/backend/common/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"@cs-magic/ts-config/node"
44
],
55
"compilerOptions": {
6+
"composite": true,
67
"rootDir": "src",
78
"outDir": "dist",
89
"tsBuildInfoFile": "dist/.tsbuildinfo",

packages/backend/llm/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,14 @@
3333
"zhipuai-sdk-nodejs-v4": "^0.1.12"
3434
},
3535
"devDependencies": {
36+
"@cs-magic/eslint-config": "workspace:^",
37+
"@cs-magic/prettier-config": "workspace:^",
38+
"@cs-magic/tailwindcss-config": "workspace:^",
39+
"@cs-magic/ts-config": "workspace:^",
40+
"@types/copyfiles": "^2",
3641
"@types/jest": "^29.5.14",
3742
"@types/js-yaml": "^4.0.9",
43+
"copyfiles": "^2.4.1",
3844
"jest": "^29.7.0",
3945
"ts-jest": "^29.2.5",
4046
"ts-patch": "^3.2.1",

packages/backend/llm/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"@cs-magic/ts-config/dom"
44
],
55
"compilerOptions": {
6+
"composite": true,
67
"types": ["jest", "node"],
78
"outDir": "dist",
89
"tsBuildInfoFile": "dist/.tsbuildinfo",

packages/frontend/common/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@
2424
"qrcode.react": "^4.0.1"
2525
},
2626
"devDependencies": {
27+
"@cs-magic/eslint-config": "workspace:^",
28+
"@cs-magic/prettier-config": "workspace:^",
29+
"@cs-magic/tailwindcss-config": "workspace:^",
30+
"@cs-magic/ts-config": "workspace:^",
31+
"@types/copyfiles": "^2",
32+
"copyfiles": "^2.4.1",
2733
"npm-run-all": "*",
2834
"ts-patch": "^3.2.1",
2935
"typescript-transform-paths": "^3.5.2"

packages/frontend/common/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"@cs-magic/ts-config/dom"
44
],
55
"compilerOptions": {
6+
"composite": true,
67
"rootDir": "src",
78
"outDir": "dist",
89
"tsBuildInfoFile": "dist/.tsbuildinfo",

packages/frontend/react/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@
7272
"zod": "*"
7373
},
7474
"devDependencies": {
75+
"@cs-magic/eslint-config": "workspace:^",
76+
"@cs-magic/prettier-config": "workspace:^",
77+
"@cs-magic/tailwindcss-config": "workspace:^",
78+
"@cs-magic/ts-config": "workspace:^",
7579
"@prisma/client": "*",
7680
"@types/copyfiles": "^2",
7781
"@types/eslint": "*",
@@ -89,7 +93,9 @@
8993
"react-responsive-masonry": "^2.3.0",
9094
"react-scroll-to-bottom": "^4.2.0",
9195
"tailwindcss": "^3.4.7",
96+
"ts-patch": "^3.2.1",
9297
"typescript": "*",
98+
"typescript-transform-paths": "^3.5.2",
9399
"vite": "^5.4.2"
94100
}
95101
}

packages/frontend/react/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"@cs-magic/ts-config/dom"
44
],
55
"compilerOptions": {
6+
"composite": true,
67
"rootDir": "src",
78
"outDir": "dist",
89
"tsBuildInfoFile": "dist/.tsbuildinfo",

0 commit comments

Comments
 (0)