From 3ff9d81802d0a76e6c43cf69fa3d8f5005db598c Mon Sep 17 00:00:00 2001 From: Jade Pennig Date: Thu, 21 Oct 2021 16:01:24 -0500 Subject: [PATCH] chore(yarn3): revert back to lerna for perf --- package.json | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 4138e0556a..40eac963e5 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ }, "types": "./types/index.d.ts", "scripts": { - "bootstrap": "", + "bootstrap": "lerna bootstrap", "prestart": "yarn prebuild", "start": "yarn prestart && yarn build:tokens && concurrently \"yarn:start:tokens\" \"yarn:start:storybook\"", "start:all": "yarn build:tokens && concurrently \"yarn:start:tokens\" \"yarn:start:storybook:quiet\" \"yarn:start:website\"", @@ -43,22 +43,23 @@ "start:nextjs-template": "yarn workspace @twilio-paste/nextjs-template dev", "start:contrast-checking": "concurrently \"yarn:start:tokens\" \"yarn:start:token-contrast-checker\"", "prebuild": "node ./tools/build/pre-build.js && yarn packages:check", - "build": "yarn prebuild && yarn workspaces foreach -pviR --topological-dev --no-private --from @twilio-paste/core run build && yarn build:codemods", + "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", + "build:js": "yarn prebuild && lerna run build:js --ignore @twilio-paste/website --ignore @twilio-paste/theme-designer", "build:codemods": "yarn workspace @twilio-paste/codemods run build", - "build:js": "yarn prebuild && yarn workspaces foreach -pviR --topological-dev --no-private --from @twilio-paste/core run build:js", "build:tokens": "yarn workspace @twilio-paste/design-tokens tokens", "build:icons": "yarn workspace @twilio-paste/icons build", "build:storybook": "build-storybook -c .storybook -o ./docs -s .storybook/static", "build:website": "yarn workspace @twilio-paste/website build", "build:theme-designer": "yarn workspace @twilio-paste/theme-designer build", "build:nextjs-template": "yarn workspace @twilio-paste/nextjs-template build", - "build:props": "yarn workspaces foreach -pviR --topological-dev --no-private --from @twilio-paste/core run build:props", + "build:props": "lerna run build:props --ignore @twilio-paste/website --concurrency 2", "pre-push": "concurrently \"yarn:lint\" \"yarn:test\" \"yarn:prettier\" \"yarn:type-check\"", "prerelease": "yarn build && yarn lint && yarn test", "release": "yarn prerelease && yarn changeset publish", + "release:next": "yarn lerna publish -m 'chore(release): pre release' --conventional-commits --canary --preid beta --dist-tag next", "version": "node ./tools/build/version.js", - "clean": "node ./tools/build/clean-repo.js && yarn workspaces foreach -pvi run clean && yarn", - "clean:full": "node ./tools/build/clean-repo.js && yarn workspaces foreach -pvi run clean && rm -rf node_modules/ && yarn", + "clean": "node ./tools/build/clean-repo.js && lerna clean --yes && lerna run clean && yarn", + "clean:full": "node ./tools/build/clean-repo.js && lerna clean --yes && lerna run clean && rm -rf node_modules/ && yarn", "clean:core": "yarn workspace @twilio-paste/core clean", "pre-test": "node ./tools/build/pre-test.js", "test": "yarn pre-test && concurrently \"yarn:test:packages\" \"yarn:test:tools\"", @@ -72,7 +73,7 @@ "prettier": "prettier --list-different '{.storybook,packages}/**/*.{ts,tsx}'", "prettier-clean": "prettier --write '{.storybook,packages}/**/*.{ts,tsx}'", "lint": "yarn pre-test && eslint --ext .tsx,.ts ./packages", - "type-check": "yarn workspaces foreach -pviR --topological-dev --no-private --from @twilio-paste/core run tsc", + "type-check": "lerna run tsc", "tsc": "echo Did you mean to run yarn type-check?", "chromatic": "chromatic", "packages:check": "manypkg check",