From ae64720a783017d60bd02708809e10b7868ce412 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Mon, 4 Mar 2024 04:17:26 +0800 Subject: [PATCH] feat: bump jsr.json & jsr.jsonc by default (#27) --- src/cli/parse-args.ts | 8 +++++++- src/normalize-options.ts | 2 +- src/types/version-bump-options.ts | 2 +- src/update-files.ts | 1 + 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/cli/parse-args.ts b/src/cli/parse-args.ts index b3be964..cfe773c 100644 --- a/src/cli/parse-args.ts +++ b/src/cli/parse-args.ts @@ -84,7 +84,13 @@ export async function parseArgs(): Promise { console.log(c.yellow('The --recursive option is ignored when files are specified')) } else { - parsedArgs.options.files = ['package.json', 'package-lock.json', 'packages/**/package.json'] + parsedArgs.options.files = [ + 'package.json', + 'package-lock.json', + 'packages/**/package.json', + 'jsr.json', + 'jsr.jsonc', + ] // check if pnpm-workspace.yaml exists, if so, add all workspaces to files if (fsSync.existsSync('pnpm-workspace.yaml')) { diff --git a/src/normalize-options.ts b/src/normalize-options.ts index 8582878..06964fc 100644 --- a/src/normalize-options.ts +++ b/src/normalize-options.ts @@ -102,7 +102,7 @@ export async function normalizeOptions(raw: VersionBumpOptions): Promise