chore: use node --run instead of npm run to run scripts

This commit is contained in:
Kristjan ESPERANTO 2025-05-18 10:20:11 +02:00
parent 516e78ceb9
commit a9981b8852
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View file

@ -23,4 +23,4 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Check linting
run: npm run lint
run: node --run lint

View file

@ -285,8 +285,8 @@ See also FAQ below.
If you want to contribute to this project, pleases use the following commands to maintain code quality:
- `npm install` - Install development dependencies for linting.
- `npm run lint` - Run linting checks.
- `npm run lint:fix` - Fix linting issues. Please run this before committing.
- `node --run lint` - Run linting checks.
- `node --run lint:fix` - Fix linting issues. Please run this before committing.
[mm]: https://github.com/MagicMirrorOrg/MagicMirror
[page indicator]: https://github.com/edward-shen/MMM-page-indicator

View file

@ -21,7 +21,7 @@
"scripts": {
"lint": "eslint",
"lint:fix": "eslint --fix",
"test": "npm run lint"
"test": "node --run lint"
},
"devDependencies": {
"@eslint/js": "^9.27.0",