Skip to content

Commit 602dfee

Browse files
tassoevanclaude
andcommitted
chore: stop emitting declarations from the esm and cjs build passes
`@rocket.chat/tsconfig/client.json` turns `declaration` and `declarationMap` on, so all three `tsc` passes emitted `.d.ts` and `.d.ts.map` files. Only the third one is referenced: `types` points at `dist/ts/index.d.ts`, leaving the copies in `dist/esm` and `dist/cjs` as dead weight in the tarball. Turned off for the two passes that only need JS, so `dist/ts` is the single source of types. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent e87d106 commit 602dfee

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

packages/storybook-dark-mode/tsconfig.cjs.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"module": "commonjs",
55
"moduleResolution": "node",
66
"outDir": "./dist/cjs",
7-
"rootDir": "./src"
7+
"rootDir": "./src",
8+
"declaration": false,
9+
"declarationMap": false
810
},
911
"exclude": ["node_modules", "dist", "**/*.spec.*", "**/*.stories*"]
1012
}

packages/storybook-dark-mode/tsconfig.esm.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"module": "ESNext",
55
"moduleResolution": "bundler",
66
"outDir": "./dist/esm",
7-
"rootDir": "./src"
7+
"rootDir": "./src",
8+
"declaration": false,
9+
"declarationMap": false
810
},
911
"exclude": ["node_modules", "dist", "**/*.spec.*", "**/*.stories*"]
1012
}

0 commit comments

Comments
 (0)