Skip to content

Edge-Drop is a clipboard shelf on the edge of your screen. Hover to open it. Drag files and images into any app, click to copy text and links. Free and open-source for Windows.

fix(build): keep TypeScript's out/ts output out of the packages

Deepender25d884ad666273
diff --git a/package.json b/package.json
index a43b02a..b054096 100644
--- a/package.json
+++ b/package.json
@@ -32,6 +32,7 @@
"files": [
"out/**/*",
"!out/renderer/**/*.gif",
+ "!out/ts/**",
"resources/**/*",
"!resources/startup/**/*.exe",
"!resources/startup/**/*.cs",
diff --git a/tests/storePackaging.test.ts b/tests/storePackaging.test.ts
index 108afb5..6fe1190 100644
--- a/tests/storePackaging.test.ts
+++ b/tests/storePackaging.test.ts
@@ -84,6 +84,9 @@ describe('GitHub vs Store packaging contracts (on-disk, not assumed)', () => {
it('does not pack README media, Store tiles, or the full Twemoji npm tree into the asar', () => {
expect(pkg.build.files).toEqual(expect.arrayContaining([
'!out/renderer/**/*.gif',
+ // TypeScript writes its own output and caches to out/ts (tsconfig composite outDir); `out/**/*`
+ // shipped that stale copy of the main-process code in every package up to 0.3.3
+ '!out/ts/**',
'!resources/appx/**',
'!resources/startup/**/*.cs',
'!**/node_modules/emoji-datasource-twitter/**',