Skip to content

Commit

Permalink
remove clean from turbo build (#3939)
Browse files Browse the repository at this point in the history
* remove clean from turbo build

* add clean to build commands

* empty changeset
  • Loading branch information
gyfchong authored Aug 2, 2023
1 parent 4e7d27a commit 0f40bff
Show file tree
Hide file tree
Showing 51 changed files with 59 additions and 64 deletions.
2 changes: 2 additions & 0 deletions .changeset/sixty-plants-wonder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
3 changes: 1 addition & 2 deletions docs/package-structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ The base package.json will look like this, where:
"description": "The {{ COMPONENT_NAME }} component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",

"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion draft-packages/avatar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The draft avatar component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion draft-packages/badge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The draft badge component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion draft-packages/card/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The draft card component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion draft-packages/collapsible/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The draft Collapsible component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion draft-packages/divider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The draft divider component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion draft-packages/empty-state/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The draft Empty state component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion draft-packages/filter-menu-button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The draft filter-menu-button component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion draft-packages/form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The draft Form component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion draft-packages/guidance-block/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The draft Guidance block component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion draft-packages/hero-card/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The draft Hero card component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion draft-packages/illustration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The draft illustration component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion draft-packages/likert-scale-legacy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The draft likert-scale component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion draft-packages/menu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The draft Menu component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion draft-packages/modal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The draft Modal component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion draft-packages/page-layout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The draft content block component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion draft-packages/popover/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The draft Popover component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion draft-packages/select/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The draft Select component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion draft-packages/table/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The draft Table component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion draft-packages/tabs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The draft Tabs component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion draft-packages/tag/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The draft Tag component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion draft-packages/tile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The draft tile component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion draft-packages/title-block-zen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The draft Title Block (Zen) component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion draft-packages/tooltip/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The draft Tooltip component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion draft-packages/well/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The draft well component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"node": ">=v18.16.0"
},
"scripts": {
"build": "yarn turbo prepublish",
"build": "yarn turbo build",
"clean": "yarn turbo clean && yarn storybook:clean && rimraf node_modules",
"test": "jest && yarn test:pkg:aio",
"test:pkg:aio": "yarn pkg:aio test && yarn pkg:aio build",
Expand Down
2 changes: 1 addition & 1 deletion packages/a11y/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "A collection of accessibility utils",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/brand-moment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The brand moment component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/brand/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The brand component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The Button component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/component-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Base setup and shared helpers for components",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/component-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"test-scss-compile": "webpack build --config ./styles/__test/webpack.config.js",
"clean": "rimraf -g '**/*.js.map' 'index.js*' 'index.d.ts' 'components/**/*.js' 'components/**/*.js.map' 'components/**/*.d.ts' 'util/**/*.js' 'util/**/*.js.map' 'util/**/*.d.ts'"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"types": "dist/index.d.ts",
"scripts": {
"prepublish": "yarn build:components && yarn postBuild && yarn dist:clean",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"test": "jest",
"clean": "rimraf dist",
"build:components": "rollup -c",
Expand Down
2 changes: 1 addition & 1 deletion packages/date-picker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Date Picker component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/design-tokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"sideEffects": false,
"scripts": {
"test": "cd ../../ && yarn jest ./packages/design-tokens",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"build:json": "yarn ts-node --files ./bin/buildCssVarTokens.ts",
"build:ts": "tsc --project tsconfig.dist.json",
"build:less": "json-to-flat-sass './tokens/*.json' 'less' --extension 'less' --caseType 'kebab' && prettier less/* --write",
Expand Down
2 changes: 1 addition & 1 deletion packages/hosted-assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
],
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rm -rf dist && rimraf '*.d.ts' '*.js'"
}
}
2 changes: 1 addition & 1 deletion packages/loading-skeleton/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "A collection of loading placeholders that display a non-interactive preview of the app’s actual UI",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/loading-spinner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The loading-spinner component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/notification/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Collection of notification components",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/pagination/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The pagination component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/progress-bar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The progress bar component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/responsive/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "A collection of helpers for responsive UIs",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/rich-text-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "The RichTextEditor component",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/select/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Select components",
"scripts": {
"prepublish": "tsc --project tsconfig.dist.json",
"build": "yarn prepublish",
"build": "yarn clean && yarn prepublish",
"clean": "rimraf -g '**/*.d.ts' '**/*.js' '**/*.map'"
},
"repository": {
Expand Down
Loading

0 comments on commit 0f40bff

Please sign in to comment.