Commit 302e2f7
Changed files (7)
.github
workflows
src
.github/workflows/dev-publish.yml
@@ -19,6 +19,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 22
+ cache: 'npm'
- run: npm ci
- run: npm test
env:
.github/workflows/npm-publish.yml
@@ -21,6 +21,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 22
+ cache: 'npm'
- run: npm ci
- run: npm test
env:
.github/workflows/test.yml
@@ -21,6 +21,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 22.x
+ cache: 'npm'
- run: npm ci
- run: |
@@ -48,6 +49,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 22.x
+ cache: 'npm'
- uses: actions/download-artifact@v4
with:
@@ -84,6 +86,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 22.x
+ cache: 'npm'
- uses: actions/download-artifact@v4
with:
@@ -109,6 +112,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 16.x
+ cache: 'npm'
- uses: actions/download-artifact@v4
with:
@@ -176,6 +180,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
+ cache: 'npm'
- uses: actions/download-artifact@v4
with:
name: build
@@ -201,6 +206,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 22.x
+ cache: 'npm'
- name: Install deps
run: npm ci
- name: Install TypeScript ${{ matrix.ts }}
src/cli.ts
@@ -131,7 +131,7 @@ export async function main() {
await scriptFromHttp(firstArg, argv.ext)
return
}
- const filepath = firstArg.startsWith('file://')
+ const filepath = firstArg.startsWith('file:')
? url.fileURLToPath(firstArg)
: path.resolve(firstArg)
await importPath(filepath)
.size-limit.json
@@ -9,7 +9,7 @@
{
"name": "zx/index",
"path": "build/*.{js,cjs}",
- "limit": "808 kB",
+ "limit": "809 kB",
"brotli": false,
"gzip": false
},
@@ -23,14 +23,14 @@
{
"name": "vendor",
"path": "build/vendor-*",
- "limit": "763 kB",
+ "limit": "765 kB",
"brotli": false,
"gzip": false
},
{
"name": "all",
"path": "build/*",
- "limit": "846 kB",
+ "limit": "847 kB",
"brotli": false,
"gzip": false
}
package-lock.json
@@ -49,7 +49,7 @@
"typescript": "^5.7.2",
"vitepress": "^1.5.0",
"which": "^5.0.0",
- "yaml": "~2.5.1",
+ "yaml": "~2.7.0",
"zurk": "^0.10.0"
},
"engines": {
@@ -6717,9 +6717,9 @@
"license": "ISC"
},
"node_modules/yaml": {
- "version": "2.5.1",
- "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.5.1.tgz",
- "integrity": "sha512-bLQOjaX/ADgQ20isPJRvF0iRUHIxVhYvr53Of7wGcWlO2jvtUlH5m87DsmulFVxRpNLOnI4tB6p/oh8D7kpn9Q==",
+ "version": "2.7.0",
+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.7.0.tgz",
+ "integrity": "sha512-+hSoy/QHluxmC9kCIJyL/uyFmLmc+e5CFR5Wa+bpIhIj85LVb9ZH2nVnqrHoSvKogwODv0ClqZkmiSSaIH5LTA==",
"dev": true,
"license": "ISC",
"bin": {
package.json
@@ -134,7 +134,7 @@
"typescript": "^5.7.2",
"vitepress": "^1.5.0",
"which": "^5.0.0",
- "yaml": "~2.5.1",
+ "yaml": "~2.7.0",
"zurk": "^0.10.0"
},
"publishConfig": {