fix: project builds on Windows

Replace Unix cp -r with Node.js fs.cpSync in CLI build script.
Add webpack snapshot config to prevent Next.js scanning Windows junction points.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Priyanshu Choudhary 2026-04-08 01:26:50 +05:30
parent c00618048f
commit 34b4d29db5
2 changed files with 10 additions and 1 deletions

View File

@ -25,7 +25,7 @@
"node": ">=20.0.0"
},
"scripts": {
"build": "tsc && cp -r src/assets dist/",
"build": "tsc && node -e \"require('fs').cpSync('src/assets','dist/assets',{recursive:true})\"",
"dev": "tsx src/index.ts",
"test": "vitest run",
"test:watch": "vitest",

View File

@ -11,6 +11,15 @@ const nextConfig = {
"@composio/ao-plugin-tracker-linear",
"@composio/ao-plugin-workspace-worktree",
],
webpack: (config) => {
if (process.platform === "win32") {
config.snapshot = {
...config.snapshot,
managedPaths: [/^(.+?[\\/]node_modules[\\/])/],
};
}
return config;
},
async headers() {
return [
{