Skip to content

Commit 21303cb

Browse files
authored
Merge pull request #970 from spotify/kaimallea-patch-1
fix: do not output type declarations for cjs/esm
2 parents 5408ad4 + 262a174 commit 21303cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/web-scripts/src/Tasks/BuildTask.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ async function buildCJS(task: BuildTaskDesc): Promise<string> {
6969
const cmd = 'npx';
7070
const args = [
7171
'tsc',
72+
'--declaration',
73+
'false',
7274
'--allowJs',
7375
'--outDir',
7476
'cjs',
@@ -86,6 +88,8 @@ async function buildESM(task: BuildTaskDesc): Promise<string> {
8688
const cmd = 'npx';
8789
const args = [
8890
'tsc',
91+
'--declaration',
92+
'false',
8993
'--allowJs',
9094
'--outDir',
9195
'esm',

0 commit comments

Comments
 (0)