From a9981b8852a02b3b2640e990275cc880aef595c3 Mon Sep 17 00:00:00 2001 From: Kristjan ESPERANTO <35647502+KristjanESPERANTO@users.noreply.github.com> Date: Sun, 18 May 2025 10:20:11 +0200 Subject: [PATCH] chore: use `node --run` instead of `npm run` to run scripts --- .github/workflows/automated-tests.yaml | 2 +- README.md | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/automated-tests.yaml b/.github/workflows/automated-tests.yaml index 47217f7..b345ffb 100644 --- a/.github/workflows/automated-tests.yaml +++ b/.github/workflows/automated-tests.yaml @@ -23,4 +23,4 @@ jobs: - name: Install dependencies run: npm ci - name: Check linting - run: npm run lint + run: node --run lint diff --git a/README.md b/README.md index 75905c8..a5223e7 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/package.json b/package.json index ef900d7..e539796 100644 --- a/package.json +++ b/package.json @@ -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",