Skip to content

Commit e26fbe9

Browse files
committed
turn off declaration generation and only generate those for npm
1 parent d58d9dc commit e26fbe9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
"backoffice:test:e2e": "npx playwright test",
144144
"build-storybook": "npm run wc-analyze && storybook build",
145145
"build:for:cms": "npm run build && npm run build:workspaces && npm run generate:manifest && npm run package:validate && node ./devops/build/copy-to-cms.js",
146-
"build:for:npm": "npm run build && npm run generate:manifest && npm run package:validate",
146+
"build:for:npm": "tsc --project ./src/tsconfig.build.json --declaration && rollup -c ./src/rollup.config.js && npm run generate:manifest && npm run package:validate",
147147
"build:for:static": "vite build",
148148
"build:vite": "tsc && vite build --mode staging",
149149
"build:workspaces": "npm run build -ws --if-present",

src/tsconfig.build.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
"noEmit": false,
66
"outDir": "../dist-cms",
77
"rootDir": "./",
8-
"composite": true,
98
"sourceMap": false,
10-
"declaration": true,
9+
"declaration": false,
1110
"allowImportingTsExtensions": false
1211
},
1312
"include": ["./**/*.ts", "./**/*.json", "./**/*.js"],

0 commit comments

Comments
 (0)