Stop publishing package debug artifacts
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user