chore: Replace npm run with node --run inside package.json scripts

Follow up to commit 042750c which only converted workflow-level
invocations. With Node.js 22 as the floor, the chained scripts inside
each package.json can also use `node --run` directly, dropping the
intermediate npm process when these scripts run.

- root `prepare`
- browser `build-all`, `lint`
- website/client `lint`
- website/server `lint`
This commit is contained in:
Kazuki Yamada
2026-05-09 19:55:06 +09:00
parent df881a7c57
commit 5a1423e118
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -10,13 +10,13 @@
"build:chrome": "wxt build -b chrome",
"build:firefox": "wxt build -b firefox",
"build:edge": "wxt build -b edge",
"build-all": "npm run build:chrome && npm run build:firefox && npm run build:edge",
"build-all": "node --run build:chrome && node --run build:firefox && node --run build:edge",
"zip": "wxt zip",
"zip:chrome": "wxt zip -b chrome",
"zip:firefox": "wxt zip -b firefox",
"zip:edge": "wxt zip -b edge",
"generate-icons": "tsx scripts/generate-icons.ts",
"lint": "npm run lint-tsc",
"lint": "node --run lint-tsc",
"lint-tsc": "tsgo --noEmit",
"test": "vitest",
"archive": "git archive HEAD -o ./storage/source.zip"
+1 -1
View File
@@ -19,7 +19,7 @@
},
"bin": "./bin/repomix.cjs",
"scripts": {
"prepare": "npm run build",
"prepare": "node --run build",
"build": "rimraf lib && tsc -p tsconfig.build.json",
"build-bun": "bun run build",
"lint": "node --run lint-biome && node --run lint-oxlint && node --run lint-ts && node --run lint-secretlint",
+1 -1
View File
@@ -6,7 +6,7 @@
"docs:dev": "vitepress dev",
"docs:build": "vitepress build",
"docs:preview": "vitepress preview",
"lint": "npm run lint-tsc",
"lint": "node --run lint-tsc",
"lint-tsc": "tsgo --noEmit"
},
"dependencies": {
+1 -1
View File
@@ -6,7 +6,7 @@
"dev": "PORT=8080 tsx watch src/index.ts",
"build": "tsc",
"bundle": "node scripts/bundle.mjs",
"lint": "npm run lint-tsc",
"lint": "node --run lint-tsc",
"lint-tsc": "tsgo --noEmit -p tsconfig.test.json",
"test": "vitest",
"start": "node dist/index.js",