Skip to content

Commit

Permalink
feat: read deno.jsonc for version check (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoppippi authored Aug 12, 2024
1 parent 0fba664 commit 6f4cb9d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/get-current-version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ export async function getCurrentVersion(operation: Operation): Promise<Operation
if (!filesToCheck.includes('deno.json'))
filesToCheck.push('deno.json')

// Always check deno.jsonc
if (!filesToCheck.includes('deno.jsonc'))
filesToCheck.push('deno.jsonc')

// Check each file, in order, and return the first valid version number we find
for (const file of filesToCheck) {
const version = await readVersion(file, cwd)
Expand Down

0 comments on commit 6f4cb9d

Please sign in to comment.