Skip to content

Commit

Permalink
feat: read deno.json for version check (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoppippi authored Aug 7, 2024
1 parent c2ec526 commit 9a21056
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 @@ -20,6 +20,10 @@ export async function getCurrentVersion(operation: Operation): Promise<Operation
if (!filesToCheck.includes('package.json'))
filesToCheck.push('package.json')

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

// 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 9a21056

Please sign in to comment.