diff --git a/.github/workflows/dev-publish.yml b/.github/workflows/dev-publish.yml index 93736370f6..eb6c742538 100644 --- a/.github/workflows/dev-publish.yml +++ b/.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: diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index c03e26c177..a80f410ee3 100644 --- a/.github/workflows/npm-publish.yml +++ b/.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: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d36e35e726..e09dfdf25f 100644 --- a/.github/workflows/test.yml +++ b/.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 }} diff --git a/.size-limit.json b/.size-limit.json index e32be11e27..baa3027091 100644 --- a/.size-limit.json +++ b/.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 } diff --git a/package-lock.json b/package-lock.json index 9e819872fa..1a0aa444a7 100644 --- a/package-lock.json +++ b/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": { diff --git a/package.json b/package.json index 2de575b03a..eba6759b10 100644 --- a/package.json +++ b/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": { diff --git a/src/cli.ts b/src/cli.ts index 855c4df226..b6564ae26c 100644 --- a/src/cli.ts +++ b/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)