diff --git a/package-lock.json b/package-lock.json index 5de18110..dee1bdd4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "lodash-es": "^4.17.21", "mem-fs-editor": "^11.0.0", "minimist": "^1.2.8", - "read-pkg-up": "^11.0.0", + "read-package-up": "^11.0.0", "semver": "^7.5.4", "simple-git": "^3.20.0", "sort-keys": "^5.0.0", @@ -12471,14 +12471,13 @@ "node": "^16.14.0 || >=18.0.0" } }, - "node_modules/read-pkg": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-9.0.0.tgz", - "integrity": "sha512-SBoBio4xhJmlF4xs9IBliWZGSbDAnrOfQkLGL7xB+RYEUZNAN2LlNkzO45B7gc7c2dLMX987bhHAaJ/LG3efeQ==", + "node_modules/read-package-up": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/read-package-up/-/read-package-up-11.0.0.tgz", + "integrity": "sha512-MbgfoNPANMdb4oRBNg5eqLbB2t2r+o5Ua1pNt8BqGp4I0FJZhuVSOj3PaBPni4azWuSzEdNn2evevzVmEk1ohQ==", "dependencies": { - "@types/normalize-package-data": "^2.4.3", - "normalize-package-data": "^6.0.0", - "parse-json": "^8.0.0", + "find-up-simple": "^1.0.0", + "read-pkg": "^9.0.0", "type-fest": "^4.6.0" }, "engines": { @@ -12488,29 +12487,29 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/read-pkg-up": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-11.0.0.tgz", - "integrity": "sha512-LOVbvF1Q0SZdjClSefZ0Nz5z8u+tIE7mV5NibzmE9VYmDe9CaBbAVtz1veOSZbofrdsilxuDAYnFenukZVp8/Q==", - "deprecated": "Renamed to read-package-up", - "dependencies": { - "find-up-simple": "^1.0.0", - "read-pkg": "^9.0.0", - "type-fest": "^4.6.0" - }, + "node_modules/read-package-up/node_modules/type-fest": { + "version": "4.7.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.7.1.tgz", + "integrity": "sha512-iWr8RUmzAJRfhZugX9O7nZE6pCxDU8CZ3QxsLuTnGcBLJpCaP2ll3s4eMTBoFnU/CeXY/5rfQSuAEsTGJO4y8A==", "engines": { - "node": ">=18" + "node": ">=16" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/read-pkg-up/node_modules/type-fest": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.6.0.tgz", - "integrity": "sha512-rLjWJzQFOq4xw7MgJrCZ6T1jIOvvYElXT12r+y0CC6u67hegDHaxcPqb2fZHOGlqxugGQPNB1EnTezjBetkwkw==", + "node_modules/read-pkg": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-9.0.0.tgz", + "integrity": "sha512-SBoBio4xhJmlF4xs9IBliWZGSbDAnrOfQkLGL7xB+RYEUZNAN2LlNkzO45B7gc7c2dLMX987bhHAaJ/LG3efeQ==", + "dependencies": { + "@types/normalize-package-data": "^2.4.3", + "normalize-package-data": "^6.0.0", + "parse-json": "^8.0.0", + "type-fest": "^4.6.0" + }, "engines": { - "node": ">=16" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" diff --git a/package.json b/package.json index 74928b45..1cb78f49 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "lodash-es": "^4.17.21", "mem-fs-editor": "^11.0.0", "minimist": "^1.2.8", - "read-pkg-up": "^11.0.0", + "read-package-up": "^11.0.0", "semver": "^7.5.4", "simple-git": "^3.20.0", "sort-keys": "^5.0.0", diff --git a/src/generator.ts b/src/generator.ts index bf1c79b0..99503e7e 100644 --- a/src/generator.ts +++ b/src/generator.ts @@ -5,7 +5,7 @@ import EventEmitter from 'node:events'; import { fileURLToPath } from 'node:url'; import * as _ from 'lodash-es'; import semver from 'semver'; -import { readPackageUpSync } from 'read-pkg-up'; +import { readPackageUpSync } from 'read-package-up'; import chalk from 'chalk'; import minimist from 'minimist'; import createDebug from 'debug';