Skip to content

Commit

Permalink
chore: up format script
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm committed Dec 4, 2024
1 parent becba9f commit eed89ed
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/updateVersion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ for (const packagePath of packagePaths) {
const jsrFilePath = path.resolve(path.dirname(packagePath), 'jsr.json')
const jsrJson = await Bun.file(jsrFilePath).json()
jsrJson.version = version
Bun.write(jsrFilePath, JSON.stringify(jsrJson, null, 2))
await Bun.write(jsrFilePath, JSON.stringify(jsrJson, null, 2))

if (Bun.env.PKG_PR_NEW) {
packageJson.version = version
await Bun.write(packagePath, JSON.stringify(packageJson, null, 2))
}
}

console.log(
Expand Down

0 comments on commit eed89ed

Please sign in to comment.