Stop publishing package debug artifacts
This commit is contained in:
@@ -7,7 +7,8 @@
|
|||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"bin",
|
"bin",
|
||||||
"dist"
|
"dist",
|
||||||
|
"!dist/**/*.map"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
"description": "Paseo client SDK package",
|
"description": "Paseo client SDK package",
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
|
"!dist/**/*.map",
|
||||||
"README.md"
|
"README.md"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
@@ -8,6 +8,10 @@ directories:
|
|||||||
output: release
|
output: release
|
||||||
files:
|
files:
|
||||||
- dist/**/*
|
- dist/**/*
|
||||||
|
- "!**/*.map"
|
||||||
|
- "!node_modules/@getpaseo/*/src/**"
|
||||||
|
- "!node_modules/@getpaseo/**/*.test.*"
|
||||||
|
- "!node_modules/@getpaseo/**/*.spec.*"
|
||||||
asarUnpack:
|
asarUnpack:
|
||||||
- dist/daemon/node-entrypoint-runner.js
|
- dist/daemon/node-entrypoint-runner.js
|
||||||
- node_modules/@getpaseo/server/dist/server/terminal/shell-integration/**/*
|
- 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
|
// electron-builder packs production dependencies declared in package.json into
|
||||||
// app.asar. Runtime code in runtime-paths.ts and bin/paseo dynamically resolves
|
// app.asar. Runtime code in runtime-paths.ts and bin/paseo dynamically resolves
|
||||||
// these workspace packages by string, so static analysis (TypeScript, Knip) cannot
|
// these workspace packages by string, so static analysis (TypeScript, Knip) cannot
|
||||||
|
|||||||
@@ -2,7 +2,8 @@
|
|||||||
"name": "@getpaseo/highlight",
|
"name": "@getpaseo/highlight",
|
||||||
"version": "0.1.83",
|
"version": "0.1.83",
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist",
|
||||||
|
"!dist/**/*.map"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
"description": "Paseo shared protocol schemas and wire types",
|
"description": "Paseo shared protocol schemas and wire types",
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
|
"!dist/**/*.map",
|
||||||
"README.md"
|
"README.md"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
@@ -3,7 +3,8 @@
|
|||||||
"version": "0.1.83",
|
"version": "0.1.83",
|
||||||
"description": "Paseo relay for bridging daemon and client connections",
|
"description": "Paseo relay for bridging daemon and client connections",
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist",
|
||||||
|
"!dist/**/*.map"
|
||||||
],
|
],
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"dist/server",
|
"dist/server",
|
||||||
"dist/src",
|
"dist/src",
|
||||||
"dist/scripts",
|
"dist/scripts",
|
||||||
"src/server/speech/providers/local/sherpa/assets",
|
"!dist/**/*.map",
|
||||||
"README.md",
|
"README.md",
|
||||||
".env.example"
|
".env.example"
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user