diff --git a/package.json b/package.json index a6d32ef..2e30df8 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,7 @@ "@types/babel__core": "^7.20.5", "@types/babel__generator": "^7.6.8", "@types/babel__traverse": "^7.20.5", - "@types/node": "~18.0.6", + "@types/node": "~18.19.34", "@types/semver": "^7.5.8", "babel-plugin-here": "^1.0.1", "semver": "^7.6.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e94f623..30df72b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -148,8 +148,8 @@ importers: specifier: ^7.20.5 version: 7.20.5 '@types/node': - specifier: ~18.0.6 - version: 18.0.6 + specifier: ~18.19.34 + version: 18.19.34 '@types/semver': specifier: ^7.5.8 version: 7.5.8 @@ -1081,8 +1081,8 @@ packages: '@types/estree@1.0.5': resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} - '@types/node@18.0.6': - resolution: {integrity: sha512-/xUq6H2aQm261exT6iZTMifUySEt4GR5KX8eYyY+C4MSNPqSh9oNIP7tz2GLKTlFaiBbgZNxffoR3CVRG+cljw==} + '@types/node@18.19.34': + resolution: {integrity: sha512-eXF4pfBNV5DAMKGbI02NnDtWrQ40hAN558/2vvS4gMpMIxaf6JmD7YjnZbq0Q9TDSSkKBamime8ewRoomHdt4g==} '@types/prettier@3.0.0': resolution: {integrity: sha512-mFMBfMOz8QxhYVbuINtswBp9VL2b4Y0QqYHwqLz3YbgtfAcat2Dl6Y1o4e22S/OVE6Ebl9m7wWiMT2lSbAs1wA==} @@ -1476,6 +1476,9 @@ packages: engines: {node: '>=14.17'} hasBin: true + undici-types@5.26.5: + resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} + unicode-canonical-property-names-ecmascript@2.0.0: resolution: {integrity: sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==} engines: {node: '>=4'} @@ -2539,7 +2542,9 @@ snapshots: '@types/estree@1.0.5': {} - '@types/node@18.0.6': {} + '@types/node@18.19.34': + dependencies: + undici-types: 5.26.5 '@types/prettier@3.0.0': dependencies: @@ -2913,6 +2918,8 @@ snapshots: typescript@5.4.5: {} + undici-types@5.26.5: {} + unicode-canonical-property-names-ecmascript@2.0.0: {} unicode-match-property-ecmascript@2.0.0: diff --git a/scripts/emit-package-json.js b/scripts/emit-package-json.js index 4a06809..6a82f58 100755 --- a/scripts/emit-package-json.js +++ b/scripts/emit-package-json.js @@ -1,6 +1,6 @@ #!/usr/bin/env node import { mkdirSync as makeDirectorySync, writeFileSync } from "fs" -import packageJson_ from "../package.json" assert { type: "json" } +import packageJson_ from "../package.json" with { type: "json" } const { private: _, devDependencies, engines: { pnpm, ...engines }, ...packageJson } = packageJson_ diff --git a/scripts/version-dev.js b/scripts/version-dev.js index e559c0f..371ea2b 100755 --- a/scripts/version-dev.js +++ b/scripts/version-dev.js @@ -1,7 +1,7 @@ #!/usr/bin/env node import { spawnSync } from "child_process" import * as semver from "semver" -import packageConfig from "../package.json" assert { type: "json" } +import packageConfig from "../package.json" with { type: "json" } const hash = spawnSync("git", [ "rev-parse", "--short", "HEAD" ], { encoding: "utf8" }).stdout.trim() diff --git a/src/tsconfig.json b/src/tsconfig.json index 340aa2c..0f9a140 100644 --- a/src/tsconfig.json +++ b/src/tsconfig.json @@ -4,7 +4,9 @@ "declaration": true, "outDir": "../dist", "types": [ "node", "@total-typescript/ts-reset", "babel-plugin-here/env" ], - "rootDir": "." + "rootDir": ".", + "module": "es2022", + "moduleResolution": "bundler" }, "include": [ "**/*" ] } diff --git a/tsconfig.json b/tsconfig.json index 59fc164..3a2f472 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,8 +5,8 @@ "lib": [ "es2023" ], "types": [ "node", "@total-typescript/ts-reset" ], "target": "es2022", - "module": "esnext", - "moduleResolution": "bundler", + "module": "nodenext", + "resolveJsonModule": true, "checkJs": true, "skipLibCheck": true, "strict": true,