Stop publishing package debug artifacts

This commit is contained in:
Mohamed Boudra
2026-05-28 15:40:36 +07:00
parent c4f9874e1f
commit 0737c5c973
8 changed files with 22 additions and 4 deletions
+4
View File
@@ -8,6 +8,10 @@ directories:
output: release
files:
- dist/**/*
- "!**/*.map"
- "!node_modules/@getpaseo/*/src/**"
- "!node_modules/@getpaseo/**/*.test.*"
- "!node_modules/@getpaseo/**/*.spec.*"
asarUnpack:
- dist/daemon/node-entrypoint-runner.js
- node_modules/@getpaseo/server/dist/server/terminal/shell-integration/**/*
@@ -17,6 +17,15 @@ describe("desktop packaging", () => {
);
});
it("excludes package debug/source files from the packaged app", () => {
const config = readFileSync(join(packageRoot, "electron-builder.yml"), "utf8");
expect(config).toContain("!**/*.map");
expect(config).toContain("!node_modules/@getpaseo/*/src/**");
expect(config).toContain("!node_modules/@getpaseo/**/*.test.*");
expect(config).toContain("!node_modules/@getpaseo/**/*.spec.*");
});
// electron-builder packs production dependencies declared in package.json into
// app.asar. Runtime code in runtime-paths.ts and bin/paseo dynamically resolves
// these workspace packages by string, so static analysis (TypeScript, Knip) cannot