diff --git a/package.json b/package.json index 66ed6c2f..f3dc8a10 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "np", - "version": "10.1.0", + "version": "10.2.0", "description": "A better `npm publish`", "license": "MIT", "repository": "sindresorhus/np", @@ -33,7 +33,7 @@ "commit" ], "dependencies": { - "chalk": "^5.3.0", + "chalk": "^5.4.1", "chalk-template": "^1.1.0", "cosmiconfig": "^8.3.6", "del": "^8.0.0", @@ -45,7 +45,7 @@ "hosted-git-info": "^8.0.2", "ignore-walk": "^7.0.0", "import-local": "^3.2.0", - "inquirer": "^9.2.15", + "inquirer": "^12.3.2", "is-installed-globally": "^1.0.0", "is-interactive": "^2.0.0", "is-scoped": "^3.0.0", @@ -59,7 +59,7 @@ "onetime": "^7.0.0", "open": "^10.0.4", "p-memoize": "^7.1.1", - "p-timeout": "^6.1.3", + "p-timeout": "^6.1.4", "path-exists": "^5.0.0", "pkg-dir": "^8.0.0", "read-package-up": "^11.0.0", @@ -75,14 +75,14 @@ "@types/semver": "^7.5.8", "ava": "^6.2.0", "common-tags": "^1.8.2", - "esmock": "^2.6.9", - "fs-extra": "^11.2.0", + "esmock": "^2.7.0", + "fs-extra": "^11.3.0", "map-obj": "^5.0.2", "sinon": "^19.0.2", "strip-ansi": "^7.1.0", "tempy": "^3.1.0", "write-package": "^7.1.0", - "xo": "^0.59.3" + "xo": "^0.60.0" }, "ava": { "files": [ diff --git a/readme.md b/readme.md index 22ba1d0e..6dbdd831 100644 --- a/readme.md +++ b/readme.md @@ -25,7 +25,7 @@ - Warns about the possibility of extraneous files being published - See exactly what will be executed with [preview mode](https://github.com/sindresorhus/np/issues/391), without pushing or publishing anything remotely - Supports [GitHub Packages](https://github.com/features/packages) -- Supports npm 9+, Yarn (Classic and Berry), npm 8+, and Bun +- Supports npm 9+, Yarn (Classic and Berry), pnpm 8+, and Bun ### Why not diff --git a/source/package-manager/configs.js b/source/package-manager/configs.js index 93afb59a..2e59f444 100644 --- a/source/package-manager/configs.js +++ b/source/package-manager/configs.js @@ -65,5 +65,5 @@ export const bunConfig = { // TODO: Bun doesn't support config get registry, this should be added in the future. See https://github.com/oven-sh/bun/issues/7140 getRegistryCommand: ['npm', ['config', 'get', 'registry']], tagVersionPrefixCommand: ['npm', ['config', 'get', 'tag-version-prefix']], - lockfiles: ['bun.lockb'], + lockfiles: ['bun.lockb', 'bun.lock'], }; diff --git a/source/ui.js b/source/ui.js index 5d33c671..90a2cc7a 100644 --- a/source/ui.js +++ b/source/ui.js @@ -252,6 +252,7 @@ const ui = async ({packageManager, ...options}, {package_, rootDirectory}) => { type: 'list', message: 'Select SemVer increment or specify new version', pageSize: SEMVER_INCREMENTS.length + 2, + default: 0, choices: [ ...SEMVER_INCREMENTS.map(increment => ({ // TODO: prerelease prefix here too name: `${increment} ${new Version(oldVersion, increment).format()}`,