Skip to content

Commit d23b3a4

Browse files
authored
fix: node --run is faster than npm run. (#38)
1 parent 432496a commit d23b3a4

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.github/workflows/diff-dependencies.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Install Dependencies
1919
run: npm ci --ignore-scripts
2020
- name: Build
21-
run: npm run build
21+
run: node --run build
2222
- name: Pack
2323
run: npm pack
2424
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
@@ -37,7 +37,7 @@ jobs:
3737
- name: Install Dependencies
3838
run: npm ci --ignore-scripts
3939
- name: Build
40-
run: npm run build
40+
run: node --run build
4141
- name: Pack
4242
run: npm pack
4343
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
- name: Install Dependencies
2323
run: npm ci
2424
- name: Build
25-
run: npm run build
25+
run: node --run build
2626
- name: Lint
27-
run: npm run lint
27+
run: node --run lint
2828
- name: Test
29-
run: npm run test
29+
run: node --run test

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"scripts": {
3232
"build": "node scripts/build.mjs",
3333
"format": "prettier --write src test",
34-
"lint": "npm run lint:format && npm run lint:js && npm run lint:types",
34+
"lint": "node --run lint:format && node --run lint:js && node --run lint:types",
3535
"lint:format": "prettier --check src test",
3636
"lint:js": "eslint src test",
3737
"lint:types": "tsc --noEmit",

recipes/bundle-diff.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Install Dependencies
2222
run: npm ci --ignore-scripts
2323
- name: Build
24-
run: npm run build
24+
run: node --run build
2525
- name: Pack
2626
run: npm pack
2727

@@ -44,7 +44,7 @@ jobs:
4444
- name: Install Dependencies
4545
run: npm ci --ignore-scripts
4646
- name: Build
47-
run: npm run build
47+
run: node --run build
4848
- name: Pack
4949
run: npm pack
5050

0 commit comments

Comments
 (0)