diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..cf5f24c --- /dev/null +++ b/.npmignore @@ -0,0 +1,44 @@ +# .npmignore - Used by electron-builder instead of .gitignore +# This file intentionally does NOT exclude dist/ and dist-electron/ +# so that build outputs are included in the asar archive. + +src/ +tests/ +scripts/ +build/* +!build/entitlements.mac.plist +!build/icons/ +!build/icons/** +release/ +.DS_Store +.env +.claude/ +__pycache__/ +.codebuddy/ +sandbox/image/out/ +sandbox/image/publish/ +sandbox/image/.work/ +sandbox/runtime/out/ +sandbox/runtime-darwin-*/ +resources/mingit/ +resources/MinGit-*.zip +resources/PortableGit-*.7z.exe +resources/python-win/ +resources/python-*.zip +SKILLs/**/.connection +SKILLs/**/.server.log +SKILLs/**/.server.pid +SKILLs/**/.venv/ +nul +.work.env +.playwright-mcp/ +.cowork-temp/ +*.ts +!*.d.ts +tsconfig.json +electron-tsconfig.json +vite.config.ts +tailwind.config.js +postcss.config.js +.eslintrc.cjs +CLAUDE.md diff --git a/electron-builder.json b/electron-builder.json index f67e6e7..a9c84ba 100644 --- a/electron-builder.json +++ b/electron-builder.json @@ -8,9 +8,17 @@ "beforePack": "./scripts/electron-builder-hooks.cjs", "afterPack": "./scripts/electron-builder-hooks.cjs", "files": [ - "dist/**/*", - "dist-electron/**/*", - "sandbox/agent-runner/AGENT_SYSTEM_PROMPT.md" + "sandbox/agent-runner/AGENT_SYSTEM_PROMPT.md", + { + "from": "dist", + "to": "dist", + "filter": ["**/*"] + }, + { + "from": "dist-electron", + "to": "dist-electron", + "filter": ["**/*"] + } ], "extraResources": [ {