Skip to content

Commit 3ff9d81

Browse files
author
Jade Pennig
committed
chore(yarn3): revert back to lerna for perf
1 parent 6fd8ee5 commit 3ff9d81

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

package.json

+8-7
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
"types": "./types/index.d.ts",
3232
"scripts": {
33-
"bootstrap": "",
33+
"bootstrap": "lerna bootstrap",
3434
"prestart": "yarn prebuild",
3535
"start": "yarn prestart && yarn build:tokens && concurrently \"yarn:start:tokens\" \"yarn:start:storybook\"",
3636
"start:all": "yarn build:tokens && concurrently \"yarn:start:tokens\" \"yarn:start:storybook:quiet\" \"yarn:start:website\"",
@@ -43,22 +43,23 @@
4343
"start:nextjs-template": "yarn workspace @twilio-paste/nextjs-template dev",
4444
"start:contrast-checking": "concurrently \"yarn:start:tokens\" \"yarn:start:token-contrast-checker\"",
4545
"prebuild": "node ./tools/build/pre-build.js && yarn packages:check",
46-
"build": "yarn prebuild && yarn workspaces foreach -pviR --topological-dev --no-private --from @twilio-paste/core run build && yarn build:codemods",
46+
"build": "yarn prebuild && lerna run build --ignore @twilio-paste/website --ignore @twilio-paste/theme-designer --ignore @twilio-paste/nextjs-template --ignore @twilio-paste/token-contrast-checker",
47+
"build:js": "yarn prebuild && lerna run build:js --ignore @twilio-paste/website --ignore @twilio-paste/theme-designer",
4748
"build:codemods": "yarn workspace @twilio-paste/codemods run build",
48-
"build:js": "yarn prebuild && yarn workspaces foreach -pviR --topological-dev --no-private --from @twilio-paste/core run build:js",
4949
"build:tokens": "yarn workspace @twilio-paste/design-tokens tokens",
5050
"build:icons": "yarn workspace @twilio-paste/icons build",
5151
"build:storybook": "build-storybook -c .storybook -o ./docs -s .storybook/static",
5252
"build:website": "yarn workspace @twilio-paste/website build",
5353
"build:theme-designer": "yarn workspace @twilio-paste/theme-designer build",
5454
"build:nextjs-template": "yarn workspace @twilio-paste/nextjs-template build",
55-
"build:props": "yarn workspaces foreach -pviR --topological-dev --no-private --from @twilio-paste/core run build:props",
55+
"build:props": "lerna run build:props --ignore @twilio-paste/website --concurrency 2",
5656
"pre-push": "concurrently \"yarn:lint\" \"yarn:test\" \"yarn:prettier\" \"yarn:type-check\"",
5757
"prerelease": "yarn build && yarn lint && yarn test",
5858
"release": "yarn prerelease && yarn changeset publish",
59+
"release:next": "yarn lerna publish -m 'chore(release): pre release' --conventional-commits --canary --preid beta --dist-tag next",
5960
"version": "node ./tools/build/version.js",
60-
"clean": "node ./tools/build/clean-repo.js && yarn workspaces foreach -pvi run clean && yarn",
61-
"clean:full": "node ./tools/build/clean-repo.js && yarn workspaces foreach -pvi run clean && rm -rf node_modules/ && yarn",
61+
"clean": "node ./tools/build/clean-repo.js && lerna clean --yes && lerna run clean && yarn",
62+
"clean:full": "node ./tools/build/clean-repo.js && lerna clean --yes && lerna run clean && rm -rf node_modules/ && yarn",
6263
"clean:core": "yarn workspace @twilio-paste/core clean",
6364
"pre-test": "node ./tools/build/pre-test.js",
6465
"test": "yarn pre-test && concurrently \"yarn:test:packages\" \"yarn:test:tools\"",
@@ -72,7 +73,7 @@
7273
"prettier": "prettier --list-different '{.storybook,packages}/**/*.{ts,tsx}'",
7374
"prettier-clean": "prettier --write '{.storybook,packages}/**/*.{ts,tsx}'",
7475
"lint": "yarn pre-test && eslint --ext .tsx,.ts ./packages",
75-
"type-check": "yarn workspaces foreach -pviR --topological-dev --no-private --from @twilio-paste/core run tsc",
76+
"type-check": "lerna run tsc",
7677
"tsc": "echo Did you mean to run yarn type-check?",
7778
"chromatic": "chromatic",
7879
"packages:check": "manypkg check",

0 commit comments

Comments
 (0)