Skip to content

Commit 257375b

Browse files
madsrasmusseniOvergaard
authored andcommitted
validate cms package after workspace builds
1 parent 83d0f9e commit 257375b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,12 @@
130130
"scripts": {
131131
"backoffice:test:e2e": "npx playwright test",
132132
"build-storybook": "npm run wc-analyze && storybook build",
133-
"build:for:cms": "npm run build && npm run build:workspaces && node ./devops/build/copy-to-cms.js",
134-
"build:for:npm": "npm run build",
133+
"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",
134+
"build:for:npm": "npm run build && npm run generate:manifest && npm run package:validate",
135135
"build:for:static": "vite build",
136136
"build:vite": "tsc && vite build --mode staging",
137137
"build:workspaces": "npm run build -ws --if-present",
138-
"build": "tsc --project ./src/tsconfig.build.json && rollup -c ./src/rollup.config.js && npm run package:validate && npm run generate:manifest && npm run check:paths",
138+
"build": "tsc --project ./src/tsconfig.build.json && rollup -c ./src/rollup.config.js",
139139
"check": "npm run lint:errors && npm run compile && npm run build-storybook && npm run generate:jsonschema:dist",
140140
"check:paths": "node ./devops/build/check-path-length.js src 140",
141141
"compile": "tsc",
@@ -168,7 +168,7 @@
168168
"wc-analyze": "wca **/*.element.ts --outFile dist-cms/custom-elements.json",
169169
"generate:tsconfig": "node ./devops/tsconfig/index.js",
170170
"generate:manifest": "node ./devops/build/create-umbraco-package.js",
171-
"package:validate": "node ./devops/package/validate-exports.js",
171+
"package:validate": "node ./devops/package/validate-exports.js && npm run check:paths",
172172
"generate:ui-api-docs": "typedoc --options typedoc.config.js"
173173
},
174174
"engines": {

0 commit comments

Comments
 (0)