Skip to content

Commit 9a21056

Browse files
authored
feat: read deno.json for version check (#37)
1 parent c2ec526 commit 9a21056

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/get-current-version.ts

+4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ export async function getCurrentVersion(operation: Operation): Promise<Operation
2020
if (!filesToCheck.includes('package.json'))
2121
filesToCheck.push('package.json')
2222

23+
// Always check deno.json
24+
if (!filesToCheck.includes('deno.json'))
25+
filesToCheck.push('deno.json')
26+
2327
// Check each file, in order, and return the first valid version number we find
2428
for (const file of filesToCheck) {
2529
const version = await readVersion(file, cwd)

0 commit comments

Comments
 (0)