Skip to content

Commit c699208

Browse files
build(package.json): add yarn prefix to all node commands
This is equivilant to prefixing with "./node_modules/.bin/". This ensures that the local version of the command will be run.
1 parent 3a0f5e0 commit c699208

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,28 +37,28 @@
3737
"main": "lib/index.js",
3838
"module": "lib/index.mjs",
3939
"scripts": {
40-
"build": "rimraf lib && yarn compile",
41-
"build-tests": "rimraf build && yarn compile-tests",
42-
"compile": "rollup -c",
43-
"compile-tests": "tsc -p tsconfig.tests.json && cp ./tests/helpers/tsconfig.json ./build/tests/helpers/",
40+
"build": "yarn rimraf lib && yarn compile",
41+
"build-tests": "yarn rimraf build && yarn compile-tests",
42+
"compile": "yarn rollup -c",
43+
"compile-tests": "yarn tsc -p tsconfig.tests.json && cp ./tests/helpers/tsconfig.json ./build/tests/helpers/",
4444
"prelint": "yarn build && yarn link && yarn link 'eslint-plugin-functional'",
4545
"lint": "yarn eslint './{src,tests}/**/*.ts' --ext .ts -f visualstudio",
46-
"report-coverage": "codecov -f coverage/lcov.info",
47-
"test": "jest --testPathIgnorePatterns _work.test",
46+
"report-coverage": "yarn codecov -f coverage/lcov.info",
47+
"test": "yarn jest --testPathIgnorePatterns _work.test",
4848
"test-compiled": "USE_COMPLIED=1 yarn test",
49-
"test-work": "jest tests/rules/_work.test.ts",
49+
"test-work": "yarn jest tests/rules/_work.test.ts",
5050
"verify": "yarn build && yarn lint && yarn build-tests && yarn test-compiled && rimraf build",
5151
"preversion": "yarn verify",
5252
"postversion": "git push --tags && yarn publish --new-version $npm_package_version && git push && echo \"Successfully released version $npm_package_version!\""
5353
},
5454
"husky": {
5555
"hooks": {
56-
"pre-commit": "lint-staged"
56+
"pre-commit": "yarn lint-staged"
5757
}
5858
},
5959
"lint-staged": {
6060
"./{src,tests}/**/*.{ts,json}": [
61-
"prettier --write",
61+
"yarn prettier --write",
6262
"git add"
6363
],
6464
"./{src,tests}/**/*.{ts}": "eslint"

0 commit comments

Comments
 (0)