Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.

Commit 81fa293

Browse files
refactor: simplify npm scripts
1 parent ae4fe97 commit 81fa293

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tasks/package.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ module.exports = () => {
8080
'lint:js': 'eslint --cache .',
8181
lint: 'npm-run-all -l -p "lint:**"',
8282
'test:only': 'cross-env NODE_ENV=test jest',
83-
'test:watch': 'cross-env NODE_ENV=test jest --watch',
83+
'test:watch': 'npm run test:only -- --watch',
8484
'test:coverage':
85-
'cross-env NODE_ENV=test jest --collectCoverageFrom="src/**/*.js" --coverage',
85+
'npm run test:only -- --collectCoverageFrom="src/**/*.js" --coverage',
8686
pretest: 'npm run lint',
87-
test: 'cross-env NODE_ENV=test npm run test:coverage',
87+
test: 'npm run test:coverage',
8888
prepare: 'npm run build',
8989
release: 'standard-version',
9090
defaults: existing.scripts.defaults || 'webpack-defaults',

0 commit comments

Comments
 (0)