Skip to content

Commit a0757be

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

File tree

18 files changed

+186
-22
lines changed

18 files changed

+186
-22
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,9 @@ brew install "${packages[@]}"
2727
```
2828
- installation: `yarn` (db migration will auto exec)
2929
```shell
30-
yarn workspaces foreach -pA add -D npm-run-all
30+
yarn workspaces foreach -pA add -D npm-run-all jest @types/jest ts-patch typescript-transform-paths copyfiles
3131
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
32+
add -D @cs-magic/ts-config @cs-magic/eslint-config @cs-magic/prettier-config @cs-magic/tailwindcss-config
3433
```
3534

3635
## References

apps/cs-magic/thinkow

apps/playground

apps/screen-saver/package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,20 @@
1717
},
1818
"devDependencies": {
1919
"@tauri-apps/cli": "^1",
20+
"@types/copyfiles": "^2",
21+
"@types/jest": "^29.5.14",
2022
"@types/react": "^18.2.15",
2123
"@types/react-dom": "^18.2.7",
2224
"@vitejs/plugin-react": "^4.2.1",
2325
"autoprefixer": "^10.4.20",
26+
"copyfiles": "^2.4.1",
27+
"jest": "^29.7.0",
28+
"npm-run-all": "^4.1.5",
2429
"postcss": "^8.4.45",
2530
"tailwindcss": "^3.4.10",
31+
"ts-patch": "^3.2.1",
2632
"typescript": "*",
33+
"typescript-transform-paths": "^3.5.2",
2734
"vite": "^5.3.1"
2835
}
2936
}

apps/todo/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,18 @@
4343
},
4444
"devDependencies": {
4545
"@tailwindcss/typography": "^0.5.10",
46+
"@types/copyfiles": "^2",
47+
"@types/jest": "^29.5.14",
4648
"@types/lodash-es": "^4.17.12",
4749
"@types/uuid": "^10",
50+
"copyfiles": "^2.4.1",
4851
"eslint": "*",
4952
"eslint-config-next": "*",
53+
"jest": "^29.7.0",
5054
"npm-run-all": "^4.1.5",
5155
"tailwindcss": "3.3.3",
52-
"typescript": "*"
56+
"ts-patch": "^3.2.1",
57+
"typescript": "*",
58+
"typescript-transform-paths": "^3.5.2"
5359
}
5460
}

apps/totem-gen

apps/uni-pusher

packages/backend/llm/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@
2424
"@cs-magic/common": "workspace:^",
2525
"@langchain/anthropic": "^0.3.1",
2626
"@langchain/core": "^0.3.3",
27+
"html2canvas": "^1.4.1",
2728
"https-proxy-agent": "^7.0.5",
2829
"js-md5": "^0.8.3",
2930
"js-yaml": "^4.1.0",
30-
"openai": "^4.52.7",
31-
"tiktoken": "^1.0.15",
31+
"modern-screenshot": "^4.5.4",
32+
"openai": "^4.73.0",
33+
"tiktoken": "^1.0.17",
3234
"web-streams-polyfill": "^4.0.0",
3335
"zhipuai-sdk-nodejs-v4": "^0.1.12"
3436
},

packages/frontend/common/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
"access": "public"
2020
},
2121
"dependencies": {
22+
"@cs-magic/common": "workspace:^",
23+
"@cs-magic/llm": "workspace:^",
2224
"html2canvas": "^1.4.1",
2325
"modern-screenshot": "^4.4.39",
2426
"qrcode.react": "^4.0.1"

packages/frontend/react/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"dependencies": {
2323
"@auth/prisma-adapter": "^2.4.2",
2424
"@cs-magic/common": "workspace:^",
25+
"@cs-magic/llm": "workspace:^",
2526
"@cs-magic/shadcn": "workspace:^",
2627
"@hookform/resolvers": "*",
2728
"@radix-ui/react-accordion": "^1.2.0",
@@ -66,6 +67,7 @@
6667
"rehype-katex": "^7.0.0",
6768
"remark-math": "^6.0.0",
6869
"sonner": "^1.5.0",
70+
"stripe": "*",
6971
"tailwind-merge": "^2.4.0",
7072
"tailwindcss-animate": "^1.0.7",
7173
"unist-util-visit-parents": "^6.0.1",
@@ -79,6 +81,7 @@
7981
"@prisma/client": "*",
8082
"@types/copyfiles": "^2",
8183
"@types/eslint": "*",
84+
"@types/jest": "^29.5.14",
8285
"@types/react": "^18.3.3",
8386
"@types/react-dom": "^18.3.0",
8487
"@types/react-responsive": "^8.0.8",
@@ -87,6 +90,7 @@
8790
"copyfiles": "^2.4.1",
8891
"eslint": "*",
8992
"eslint-config-next": "*",
93+
"jest": "^29.7.0",
9094
"masonic": "^4.0.1",
9195
"npm-run-all": "^4.1.5",
9296
"prisma": "*",

packages/frontend/shadcn/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@
7474
"@cs-magic/prettier-config": "workspace:^",
7575
"@cs-magic/tailwindcss-config": "workspace:^",
7676
"@cs-magic/ts-config": "workspace:^",
77+
"@types/copyfiles": "^2",
78+
"@types/jest": "^29.5.14",
79+
"copyfiles": "^2.4.1",
80+
"jest": "^29.7.0",
81+
"npm-run-all": "^4.1.5",
7782
"tailwindcss": "^3.4.10",
7883
"ts-patch": "^3.2.1",
7984
"typescript-transform-paths": "^3.5.2"

packages/tools/prettier-config/package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@
2626
"author": "CS Magic",
2727
"license": "MIT",
2828
"devDependencies": {
29-
"@cs-magic/ts-config": "workspace:^"
29+
"@cs-magic/ts-config": "workspace:^",
30+
"@types/copyfiles": "^2",
31+
"@types/jest": "^29.5.14",
32+
"copyfiles": "^2.4.1",
33+
"jest": "^29.7.0",
34+
"npm-run-all": "^4.1.5",
35+
"ts-patch": "^3.2.1",
36+
"typescript-transform-paths": "^3.5.2"
3037
}
3138
}

packages/tools/tailwindcss-config/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@
3131
"author": "CS Magic",
3232
"license": "MIT",
3333
"devDependencies": {
34-
"npm-run-all": "^4.1.5"
34+
"@types/copyfiles": "^2",
35+
"@types/jest": "^29.5.14",
36+
"copyfiles": "^2.4.1",
37+
"jest": "^29.7.0",
38+
"npm-run-all": "^4.1.5",
39+
"ts-patch": "^3.2.1",
40+
"typescript-transform-paths": "^3.5.2"
3541
}
3642
}

packages/tools/webpack-config/package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,14 @@
4444
"build"
4545
],
4646
"author": "CS Magic",
47-
"license": "MIT"
47+
"license": "MIT",
48+
"devDependencies": {
49+
"@types/copyfiles": "^2",
50+
"@types/jest": "^29.5.14",
51+
"copyfiles": "^2.4.1",
52+
"jest": "^29.7.0",
53+
"npm-run-all": "^4.1.5",
54+
"ts-patch": "^3.2.1",
55+
"typescript-transform-paths": "^3.5.2"
56+
}
4857
}

0 commit comments

Comments
 (0)