Skip to content

Commit a5065c8

Browse files
committed
fix(dev): Standardize yarn clean scripts (#4909)
Now that we have files like `rollup.config.js` and `jest.config.js` at the package root level, it's helpful if running `yarn clean` doesn't delete them. This fixes that problem, and also fixes a spot where the now-defunct package-top-level `esm` directory was still included in a `clean` script.
1 parent 050a92d commit a5065c8

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

packages/nextjs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"build:types:watch": "tsc -p tsconfig.types.json --watch",
5858
"build:npm": "ts-node ../../scripts/prepack.ts && npm pack ./build",
5959
"circularDepCheck": "madge --circular src/index.client.ts && madge --circular --exclude 'config/types\\.ts' src/index.server.ts # see https://github.com/pahen/madge/issues/306",
60-
"clean": "rimraf build coverage *.js *.js.map *.d.ts",
60+
"clean": "rimraf build coverage",
6161
"fix": "run-s fix:eslint fix:prettier",
6262
"fix:eslint": "eslint . --format stylish --fix",
6363
"fix:prettier": "prettier --write \"{src,test,scripts}/**/*.ts\"",

packages/utils/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"build:types:watch": "tsc -p tsconfig.types.json --watch",
3939
"build:npm": "ts-node ../../scripts/prepack.ts && npm pack ./build",
4040
"circularDepCheck": "madge --circular src/index.ts",
41-
"clean": "rimraf build coverage *.js *.js.map *.d.ts",
41+
"clean": "rimraf build coverage",
4242
"fix": "run-s fix:eslint fix:prettier",
4343
"fix:eslint": "eslint . --format stylish --fix",
4444
"fix:prettier": "prettier --write \"{src,test,scripts}/**/*.ts\"",

packages/vue/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"build:types:watch": "tsc -p tsconfig.types.json --watch",
4747
"build:npm": "ts-node ../../scripts/prepack.ts && npm pack ./build",
4848
"circularDepCheck": "madge --circular src/index.ts",
49-
"clean": "rimraf esm build coverage",
49+
"clean": "rimraf build coverage",
5050
"fix": "run-s fix:eslint fix:prettier",
5151
"fix:eslint": "eslint . --format stylish --fix",
5252
"fix:prettier": "prettier --write \"{src,test,scripts}/**/*.ts\"",

packages/wasm/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"build:types:watch": "tsc -p tsconfig.types.json --watch",
4646
"build:npm": "ts-node ../../scripts/prepack.ts --bundles && npm pack ./build/npm",
4747
"circularDepCheck": "madge --circular src/index.ts",
48-
"clean": "rimraf build coverage *.js.map *.d.ts",
48+
"clean": "rimraf build coverage",
4949
"fix": "run-s fix:eslint fix:prettier",
5050
"fix:eslint": "eslint . --format stylish --fix",
5151
"fix:prettier": "prettier --write \"{src,test,scripts}/**/*.ts\"",

0 commit comments

Comments
 (0)