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:
parent
c00618048f
commit
34b4d29db5
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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 [
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue