Skip to content

Commit 83d0f9e

Browse files
madsrasmusseniOvergaard
authored andcommitted
add workspaces + split npm and cms build scripts
1 parent 419720a commit 83d0f9e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,17 @@
124124
"email": "[email protected]",
125125
"url": "https://umbraco.com"
126126
},
127+
"workspaces": [
128+
"./src/packages/language"
129+
],
127130
"scripts": {
128131
"backoffice:test:e2e": "npx playwright test",
129132
"build-storybook": "npm run wc-analyze && storybook build",
130-
"build:for:cms": "npm run build && node ./devops/build/copy-to-cms.js",
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",
131135
"build:for:static": "vite build",
132136
"build:vite": "tsc && vite build --mode staging",
137+
"build:workspaces": "npm run build -ws --if-present",
133138
"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",
134139
"check": "npm run lint:errors && npm run compile && npm run build-storybook && npm run generate:jsonschema:dist",
135140
"check:paths": "node ./devops/build/check-path-length.js src 140",

0 commit comments

Comments
 (0)