Skip to content

Commit 302e2f7

Browse files
authored
chore: update yaml to v2.7.0 (#1071)
* chore: update yaml to v2.7.0 * ci: enable npm cache
1 parent 4424de7 commit 302e2f7

File tree

7 files changed

+17
-9
lines changed

7 files changed

+17
-9
lines changed

.github/workflows/dev-publish.yml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
- uses: actions/setup-node@v4
2020
with:
2121
node-version: 22
22+
cache: 'npm'
2223
- run: npm ci
2324
- run: npm test
2425
env:

.github/workflows/npm-publish.yml

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
- uses: actions/setup-node@v4
2222
with:
2323
node-version: 22
24+
cache: 'npm'
2425
- run: npm ci
2526
- run: npm test
2627
env:

.github/workflows/test.yml

+6
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
uses: actions/setup-node@v4
2222
with:
2323
node-version: 22.x
24+
cache: 'npm'
2425

2526
- run: npm ci
2627
- run: |
@@ -48,6 +49,7 @@ jobs:
4849
uses: actions/setup-node@v4
4950
with:
5051
node-version: 22.x
52+
cache: 'npm'
5153

5254
- uses: actions/download-artifact@v4
5355
with:
@@ -84,6 +86,7 @@ jobs:
8486
uses: actions/setup-node@v4
8587
with:
8688
node-version: 22.x
89+
cache: 'npm'
8790

8891
- uses: actions/download-artifact@v4
8992
with:
@@ -109,6 +112,7 @@ jobs:
109112
uses: actions/setup-node@v4
110113
with:
111114
node-version: 16.x
115+
cache: 'npm'
112116

113117
- uses: actions/download-artifact@v4
114118
with:
@@ -176,6 +180,7 @@ jobs:
176180
uses: actions/setup-node@v4
177181
with:
178182
node-version: ${{ matrix.node-version }}
183+
cache: 'npm'
179184
- uses: actions/download-artifact@v4
180185
with:
181186
name: build
@@ -201,6 +206,7 @@ jobs:
201206
uses: actions/setup-node@v4
202207
with:
203208
node-version: 22.x
209+
cache: 'npm'
204210
- name: Install deps
205211
run: npm ci
206212
- name: Install TypeScript ${{ matrix.ts }}

.size-limit.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{
1010
"name": "zx/index",
1111
"path": "build/*.{js,cjs}",
12-
"limit": "808 kB",
12+
"limit": "809 kB",
1313
"brotli": false,
1414
"gzip": false
1515
},
@@ -23,14 +23,14 @@
2323
{
2424
"name": "vendor",
2525
"path": "build/vendor-*",
26-
"limit": "763 kB",
26+
"limit": "765 kB",
2727
"brotli": false,
2828
"gzip": false
2929
},
3030
{
3131
"name": "all",
3232
"path": "build/*",
33-
"limit": "846 kB",
33+
"limit": "847 kB",
3434
"brotli": false,
3535
"gzip": false
3636
}

package-lock.json

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
"typescript": "^5.7.2",
135135
"vitepress": "^1.5.0",
136136
"which": "^5.0.0",
137-
"yaml": "~2.5.1",
137+
"yaml": "~2.7.0",
138138
"zurk": "^0.10.0"
139139
},
140140
"publishConfig": {

src/cli.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export async function main() {
131131
await scriptFromHttp(firstArg, argv.ext)
132132
return
133133
}
134-
const filepath = firstArg.startsWith('file://')
134+
const filepath = firstArg.startsWith('file:')
135135
? url.fileURLToPath(firstArg)
136136
: path.resolve(firstArg)
137137
await importPath(filepath)

0 commit comments

Comments
 (0)