Skip to content

Commit 14d3875

Browse files
author
Gonzalo Diaz
committed
[CONFIG] [NPM] "npx --yes" argument added to "npm run" commands taht use "npx" to install called npm tool at first call.
1 parent bafedb0 commit 14d3875

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
"main": "src/problem0000-template.js",
66
"scripts": {
77
"start": "npm run test",
8-
"lint": "npx eslint . --color --max-warnings=0 && echo '✔ Your code looks good.'",
9-
"lint:watch": "npx esw . --color --max-warnings=0 --watch",
8+
"lint": "npx --yes eslint . --color --max-warnings=0 && echo '✔ Your code looks good.'",
9+
"lint:watch": "npx --yes esw . --color --max-warnings=0 --watch",
1010
"jest:ci": "node --experimental-vm-modules ./node_modules/.bin/jest --no-cache --ci --color --detectOpenHandles --forceExit --runInBand --debug",
11-
"jest:clean": "jest --clearCache && watchman watch-del-all",
11+
"jest:clean": "npx --yes jest --clearCache && npx --yes watchman watch-del-all",
1212
"jest:bruteforce": "BRUTEFORCE=true node --experimental-vm-modules ./node_modules/.bin/jest --no-cache --ci --color --detectOpenHandles --forceExit --runInBand --debug",
1313
"jest:watch": "node --experimental-vm-modules ./node_modules/.bin/jest --no-cache --ci --color --detectOpenHandles --forceExit --runInBand --debug --watchAll",
14-
"style:format": "npx prettier --write 'src/**/*.js'",
15-
"style:check": "npx prettier --check 'src/**/*.js'",
14+
"style:format": "npx --yes prettier --write 'src/**/*.js'",
15+
"style:check": "npx --yes prettier --check 'src/**/*.js'",
1616
"test": "jest",
1717
"test:all": "npm run lint && npm run jest && echo 'Done.'",
18-
"test:watch": "concurrently -k -s first --names \"LINT,TEST\" -p \"[{name}]\" \"npm run lint:watch\" \"npm run jest:watch\"",
18+
"test:watch": "npx --yes concurrently -k -s first --names \"LINT,TEST\" -p \"[{name}]\" \"npm run lint:watch\" \"npm run jest:watch\"",
1919
"update-all": "npm install $(npm outdated | cut -d' ' -f 1 | sed '1d' | xargs -I '$' echo '$@latest' | xargs echo)"
2020
},
2121
"author": "Gonzalo Diaz <[email protected]>",

0 commit comments

Comments
 (0)