Skip to content

Commit 0c12d71

Browse files
authored
Cleanup npm scripts (#550)
1 parent 3d663c5 commit 0c12d71

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,19 @@
2828
},
2929
"scripts": {
3030
"build": "run-p -c --aggregate-output build:*",
31-
"build:dist": "run-s build:dist:no_fix build:dist:types lint:dist:fix lint:external:fix",
32-
"build:dist:no_fix": "run-p -c clean:dist clean:external && dotenvx -q run -f .env.local -- rollup -c .config/rollup.dist.config.mjs",
33-
"build:dist:types": "dotenvx -q run -f .env.local -- tsc --project .config/tsconfig.dts.json",
31+
"build:dist": "run-s build:dist:src build:dist:types lint:dist:fix lint:external:fix",
32+
"build:dist:src": "run-p -c clean:dist clean:external && dotenvx -q run -f .env.local -- rollup -c .config/rollup.dist.config.mjs",
33+
"build:dist:types": "npm run clean:dist:types && dotenvx -q run -f .env.local -- tsc --project .config/tsconfig.dts.json",
3434
"check": "run-p -c --aggregate-output check:*",
35-
"check:lint": "eslint --report-unused-disable-directives .",
35+
"check:lint": "dotenvx -q run -f .env.local -- eslint --report-unused-disable-directives .",
3636
"check:tsc": "dotenvx -q run -f .env.local -- tsc",
3737
"coverage": "run-s coverage:*",
3838
"coverage:test": "run-s test:prepare test:unit:coverage",
3939
"coverage:type": "dotenvx -q run -f .env.local -- type-coverage --detail",
4040
"clean": "run-p -c --aggregate-output clean:*",
4141
"clean:cache": "del-cli '.cache'",
4242
"clean:dist": "del-cli 'dist'",
43+
"clean:dist:types": "del-cli 'dist/types'",
4344
"clean:external": "del-cli 'external'",
4445
"clean:node_modules": "del-cli '**/node_modules'",
4546
"fix": "npm run lint:fix",
@@ -61,7 +62,7 @@
6162
"lint-staged": "dotenvx -q run -f .env.local -- lint-staged",
6263
"precommit": "dotenvx -q run -f .env.local -- lint-staged",
6364
"prepare": "dotenvx -q run -f .env.local -- husky && custompatch",
64-
"bs": "dotenvx -q run -f .env.local -- npm run build:dist:no_fix; npm exec socket --",
65+
"bs": "dotenvx -q run -f .env.local -- npm run build:dist:src; npm exec socket --",
6566
"s": "dotenvx -q run -f .env.local -- npm exec socket --",
6667
"test": "run-s check test:*",
6768
"test:prepare": "dotenvx -q run -f .env.test -- npm run build && del-cli 'test/**/node_modules'",

0 commit comments

Comments
 (0)