mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-10-12 04:29:51 +08:00
fix(mcp-server): review fixes for the shell's build
tsc -p shell checked nothing: the inherited exclude dropped every shell file; the shell's tsconfig now excludes node_modules only. Tailwind scans app-toaster.tsx too, so the sync notices look like the web app's toasts. The bundle keeps its dependencies' license comments (esbuild appends them at the end). postcss, which build-shell.mjs loads from the root, is a declared devDependency.
This commit is contained in:
Generated
+1
@@ -100,6 +100,7 @@
|
||||
"husky": "^9.1.7",
|
||||
"jsdom": "^27.4.0",
|
||||
"lint-staged": "^16.2.7",
|
||||
"postcss": "^8.5.6",
|
||||
"shx": "^0.4.0",
|
||||
"tailwindcss": "^4",
|
||||
"typescript": "^5",
|
||||
|
||||
@@ -135,6 +135,7 @@
|
||||
"husky": "^9.1.7",
|
||||
"jsdom": "^27.4.0",
|
||||
"lint-staged": "^16.2.7",
|
||||
"postcss": "^8.5.6",
|
||||
"shx": "^0.4.0",
|
||||
"tailwindcss": "^4",
|
||||
"typescript": "^5",
|
||||
|
||||
@@ -35,7 +35,6 @@ const result = await build({
|
||||
target: "es2022",
|
||||
platform: "browser",
|
||||
jsx: "automatic",
|
||||
legalComments: "none",
|
||||
metafile: true,
|
||||
absWorkingDir: root,
|
||||
alias: {
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
@source "../../../components/canvas";
|
||||
@source "../../../components/ui";
|
||||
@source "../../../components/ai-elements";
|
||||
@source "../../../components/workspace/app-toaster.tsx";
|
||||
|
||||
/* System fonts stand in for the web fonts the Next.js layout loads */
|
||||
:root {
|
||||
|
||||
@@ -5,5 +5,6 @@
|
||||
"incremental": false,
|
||||
"plugins": []
|
||||
},
|
||||
"include": ["./**/*.ts", "./**/*.tsx"]
|
||||
"include": ["./**/*.ts", "./**/*.tsx"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user