Skip to content

Commit

Permalink
Only clean types on publish
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Mar 25, 2020
1 parent 88856a5 commit 12302c0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@
},
"scripts": {
"prebuild": "npm run check-engines",
"clean:packages": "rimraf \"./packages/*/@(build|build-module|build-style)\" && tsc --build --clean",
"clean:packages": "rimraf \"./packages/*/@(build|build-module|build-style)\"",
"clean:package-types": "tsc --build --clean",
"prebuild:packages": "npm run clean:packages && lerna run build",
"build:packages": "npm run build:package-types && node ./bin/packages/build.js",
"build:package-types": "tsc --build --verbose",
Expand Down Expand Up @@ -207,9 +208,9 @@
"package-plugin": "./bin/build-plugin-zip.sh",
"pot-to-php": "./bin/pot-to-php.js",
"publish:check": "lerna updated",
"publish:dev": "npm run build:packages && lerna publish --dist-tag next",
"publish:legacy": "npm run build:packages && lerna publish --dist-tag legacy",
"publish:prod": "npm run build:packages && lerna publish",
"publish:dev": "npm run clean:package-types && npm run build:packages && lerna publish --dist-tag next",
"publish:legacy": "npm run clean:package-types && npm run build:packages && lerna publish --dist-tag legacy",
"publish:prod": "npm run clean:package-types && npm run build:packages && lerna publish",
"test": "npm run lint && npm run test-unit",
"test-e2e": "wp-scripts test-e2e --config packages/e2e-tests/jest.config.js",
"test-e2e:watch": "npm run test-e2e -- --watch",
Expand Down

0 comments on commit 12302c0

Please sign in to comment.