Skip to content

Commit 1480d6e

Browse files
authored
feat: bump deno.json & deno.jsonc by default (#35)
1 parent 9ea85dd commit 1480d6e

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/normalize-options.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ export async function normalizeOptions(raw: VersionBumpOptions): Promise<Normali
111111
'packages/**/package.json',
112112
'jsr.json',
113113
'jsr.jsonc',
114+
'deno.json',
115+
'deno.jsonc',
114116
]
115117

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

136138
const files = await fg(

src/types/version-bump-options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export interface VersionBumpOptions {
8484
* (ReadMe files, config files, source code, etc.) it will simply do a global replacement
8585
* of the old version number with the new version number.
8686
*
87-
* Defaults to ["package.json", "package-lock.json", "jsr.json", "jsr.jsonc"]
87+
* Defaults to ["package.json", "package-lock.json", "jsr.json", "jsr.jsonc", "deno.json", "deno.jsonc"].
8888
*/
8989
files?: string[]
9090

src/update-files.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ async function updateFile(relPath: string, operation: Operation): Promise<boolea
4444
case 'bower.json':
4545
case 'component.json':
4646
case 'jsr.json':
47+
case 'deno.json':
4748
return updateManifestFile(relPath, operation)
4849

4950
default:

0 commit comments

Comments
 (0)