Skip to content

Commit b8ad38e

Browse files
refactor: update scripts to use node --run
1 parent 564319c commit b8ad38e

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/automated-tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Install dependencies
2929
run: npm ci
3030
- name: Check spelling
31-
run: npm run test:spelling
31+
run: node --run test:spelling
3232
- name: Check linting
33-
run: npm run lint
33+
run: node --run lint
3434
- run: echo "🍏 This job's status is ${{ job.status }}."

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ Please note that this project is released with a [Contributor Code of Conduct](C
185185
### Developer commands
186186

187187
- `npm install` - Install development dependencies.
188-
- `npm run lint` - Run linting and formatter checks.
189-
- `npm run lint:fix` - Fix linting and formatter issues.
190-
- `npm run test` - Run linting and formatter checks + run spelling check.
191-
- `npm run test:spelling` - Run spelling check.
188+
- `node --run lint` - Run linting and formatter checks.
189+
- `node --run lint:fix` - Fix linting and formatter issues.
190+
- `node --run test` - Run linting and formatter checks + run spelling check.
191+
- `node --run test:spelling` - Run spelling check.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"lint": "eslint && prettier . --check",
2727
"lint:fix": "eslint --fix && prettier . --write",
2828
"prepare": "husky",
29-
"test": "npm run lint && npm run test:spelling",
29+
"test": "node --run lint && node --run test:spelling",
3030
"test:spelling": "cspell ."
3131
},
3232
"lint-staged": {

0 commit comments

Comments
 (0)