Skip to content

Commit e6d0253

Browse files
chore: Change atoms build command to build-npm (calcom#25996)
* chore: Change atoms build command to build-npm to avoid turbo compilations * Updated turbo.json atoms#build reference * Updated atoms production build for CI
1 parent 471d1ca commit e6d0253

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/atoms-production-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ jobs:
3737
export NODE_OPTIONS="--max_old_space_size=8192"
3838
rm -rf packages/platform/atoms/node_modules
3939
yarn install
40-
yarn workspace @calcom/atoms run build
40+
yarn workspace @calcom/atoms run build-npm
4141
shell: bash

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"web": "yarn workspace @calcom/web",
8282
"changesets-add": "yarn changeset add",
8383
"changesets-version": "yarn changeset version",
84-
"changesets-release": "NODE_OPTIONS='--max_old_space_size=12288' turbo run build --filter=@calcom/atoms && yarn changeset publish",
84+
"changesets-release": "NODE_OPTIONS='--max_old_space_size=12288' turbo run build-npm --filter=@calcom/atoms && yarn changeset publish",
8585
"lint-staged": "lint-staged"
8686
},
8787
"devDependencies": {

packages/platform/atoms/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
},
1212
"scripts": {
1313
"dev": "yarn vite build --watch & npx postcss ./globals.css -o ./globals.min.css",
14-
"build": "NODE_OPTIONS='--max_old_space_size=12288' rm -rf dist && yarn vite build && npx postcss ./globals.css -o ./globals.min.css",
15-
"publish-npm": "yarn build && npm publish --access public",
14+
"build-npm": "NODE_OPTIONS='--max_old_space_size=12288' rm -rf dist && yarn vite build && npx postcss ./globals.css -o ./globals.min.css",
15+
"publish-npm": "yarn build-npm && npm publish --access public",
1616
"test": "jest",
1717
"dev-on": "node scripts/dev-on.js",
1818
"dev-off": "git checkout -- package.json vite.config.ts"

turbo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@
373373
"cache": false,
374374
"dependsOn": []
375375
},
376-
"@calcom/atoms#build": {
376+
"@calcom/atoms#build-npm": {
377377
"outputs": ["dist/**", "globals.min.css"]
378378
},
379379
"@calcom/api-v2#build": {

0 commit comments

Comments
 (0)