Skip to content

Commit

Permalink
feat: bump deno.json & deno.jsonc by default (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoppippi authored Aug 1, 2024
1 parent 9ea85dd commit 1480d6e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/normalize-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ export async function normalizeOptions(raw: VersionBumpOptions): Promise<Normali
'packages/**/package.json',
'jsr.json',
'jsr.jsonc',
'deno.json',
'deno.jsonc',
]

// check if pnpm-workspace.yaml exists, if so, add all workspaces to files
Expand All @@ -130,7 +132,7 @@ export async function normalizeOptions(raw: VersionBumpOptions): Promise<Normali
else {
raw.files = raw.files?.length
? raw.files
: ['package.json', 'package-lock.json', 'jsr.json', 'jsr.jsonc']
: ['package.json', 'package-lock.json', 'jsr.json', 'jsr.jsonc', 'deno.json', 'deno.jsonc']
}

const files = await fg(
Expand Down
2 changes: 1 addition & 1 deletion src/types/version-bump-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export interface VersionBumpOptions {
* (ReadMe files, config files, source code, etc.) it will simply do a global replacement
* of the old version number with the new version number.
*
* Defaults to ["package.json", "package-lock.json", "jsr.json", "jsr.jsonc"]
* Defaults to ["package.json", "package-lock.json", "jsr.json", "jsr.jsonc", "deno.json", "deno.jsonc"].
*/
files?: string[]

Expand Down
1 change: 1 addition & 0 deletions src/update-files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ async function updateFile(relPath: string, operation: Operation): Promise<boolea
case 'bower.json':
case 'component.json':
case 'jsr.json':
case 'deno.json':
return updateManifestFile(relPath, operation)

default:
Expand Down

0 comments on commit 1480d6e

Please sign in to comment.