diff --git a/package.json b/package.json index 44e0891..3acdd69 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "vite": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0" }, "devDependencies": { + "@types/node": "^22.10.0", "conventional-changelog-cli": "^5.0.0", "enquirer": "^2.4.1", "execa": "^9.5.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4c2c745..f040013 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,6 +8,9 @@ importers: .: devDependencies: + '@types/node': + specifier: ^22.10.0 + version: 22.10.0 conventional-changelog-cli: specifier: ^5.0.0 version: 5.0.0(conventional-commits-filter@5.0.0) @@ -40,10 +43,10 @@ importers: version: 2.0.0(typescript@5.4.3) vite: specifier: ^6.0.1 - version: 6.0.1(jiti@2.4.0)(tsx@4.19.2) + version: 6.0.1(@types/node@22.10.0)(jiti@2.4.0)(tsx@4.19.2) vitest: specifier: ^2.1.6 - version: 2.1.6(jiti@2.4.0)(tsx@4.19.2) + version: 2.1.6(@types/node@22.10.0)(jiti@2.4.0)(tsx@4.19.2) playground: {} @@ -750,6 +753,9 @@ packages: '@types/estree@1.0.6': resolution: {integrity: sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==} + '@types/node@22.10.0': + resolution: {integrity: sha512-XC70cRZVElFHfIUB40FgZOBbgJYFKKMa5nb9lxcwYstFG/Mi+/Y0bGS+rs6Dmhmkpq4pnNiLiuZAbc02YCOnmA==} + '@types/normalize-package-data@2.4.4': resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==} @@ -1795,6 +1801,9 @@ packages: typescript: optional: true + undici-types@6.20.0: + resolution: {integrity: sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==} + unicorn-magic@0.1.0: resolution: {integrity: sha512-lRfVq8fE8gz6QMBuDM6a+LO3IAzTi05H6gCVaUpir2E1Rwpo4ZUog45KpNXKC/Mn3Yb9UDuHumeFTo9iV/D9FQ==} engines: {node: '>=18'} @@ -2379,6 +2388,10 @@ snapshots: '@types/estree@1.0.6': {} + '@types/node@22.10.0': + dependencies: + undici-types: 6.20.0 + '@types/normalize-package-data@2.4.4': {} '@types/resolve@1.20.2': {} @@ -2392,13 +2405,13 @@ snapshots: chai: 5.1.2 tinyrainbow: 1.2.0 - '@vitest/mocker@2.1.6(vite@6.0.1(jiti@2.4.0)(tsx@4.19.2))': + '@vitest/mocker@2.1.6(vite@6.0.1(@types/node@22.10.0)(jiti@2.4.0)(tsx@4.19.2))': dependencies: '@vitest/spy': 2.1.6 estree-walker: 3.0.3 magic-string: 0.30.14 optionalDependencies: - vite: 6.0.1(jiti@2.4.0)(tsx@4.19.2) + vite: 6.0.1(@types/node@22.10.0)(jiti@2.4.0)(tsx@4.19.2) '@vitest/pretty-format@2.1.6': dependencies: @@ -3482,6 +3495,8 @@ snapshots: - supports-color - vue-tsc + undici-types@6.20.0: {} + unicorn-magic@0.1.0: {} unicorn-magic@0.3.0: {} @@ -3511,13 +3526,13 @@ snapshots: spdx-correct: 3.2.0 spdx-expression-parse: 3.0.1 - vite-node@2.1.6(jiti@2.4.0)(tsx@4.19.2): + vite-node@2.1.6(@types/node@22.10.0)(jiti@2.4.0)(tsx@4.19.2): dependencies: cac: 6.7.14 debug: 4.3.7 es-module-lexer: 1.5.4 pathe: 1.1.2 - vite: 6.0.1(jiti@2.4.0)(tsx@4.19.2) + vite: 6.0.1(@types/node@22.10.0)(jiti@2.4.0)(tsx@4.19.2) transitivePeerDependencies: - '@types/node' - jiti @@ -3532,20 +3547,21 @@ snapshots: - tsx - yaml - vite@6.0.1(jiti@2.4.0)(tsx@4.19.2): + vite@6.0.1(@types/node@22.10.0)(jiti@2.4.0)(tsx@4.19.2): dependencies: esbuild: 0.24.0 postcss: 8.4.49 rollup: 4.27.4 optionalDependencies: + '@types/node': 22.10.0 fsevents: 2.3.3 jiti: 2.4.0 tsx: 4.19.2 - vitest@2.1.6(jiti@2.4.0)(tsx@4.19.2): + vitest@2.1.6(@types/node@22.10.0)(jiti@2.4.0)(tsx@4.19.2): dependencies: '@vitest/expect': 2.1.6 - '@vitest/mocker': 2.1.6(vite@6.0.1(jiti@2.4.0)(tsx@4.19.2)) + '@vitest/mocker': 2.1.6(vite@6.0.1(@types/node@22.10.0)(jiti@2.4.0)(tsx@4.19.2)) '@vitest/pretty-format': 2.1.6 '@vitest/runner': 2.1.6 '@vitest/snapshot': 2.1.6 @@ -3561,9 +3577,11 @@ snapshots: tinyexec: 0.3.1 tinypool: 1.0.2 tinyrainbow: 1.2.0 - vite: 6.0.1(jiti@2.4.0)(tsx@4.19.2) - vite-node: 2.1.6(jiti@2.4.0)(tsx@4.19.2) + vite: 6.0.1(@types/node@22.10.0)(jiti@2.4.0)(tsx@4.19.2) + vite-node: 2.1.6(@types/node@22.10.0)(jiti@2.4.0)(tsx@4.19.2) why-is-node-running: 2.3.0 + optionalDependencies: + '@types/node': 22.10.0 transitivePeerDependencies: - jiti - less diff --git a/scripts/release.ts b/scripts/release.ts index d8c3f42..f724c3e 100644 --- a/scripts/release.ts +++ b/scripts/release.ts @@ -4,7 +4,7 @@ import path from 'path' import colors from 'picocolors' import semver from 'semver' import { prompt } from 'enquirer' -import execa from 'execa' +import { execa } from 'execa' const packageJson = JSON.parse(fs.readFileSync('./package.json', 'utf-8')) const currentVersion: string = packageJson.version