Skip to content

Commit e4507cd

Browse files
authored
build: fix script/update-version.js for Yarn v4 (#145)
1 parent 2f880b4 commit e4507cd

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

script/update-version.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,10 @@ async function updateVersion() {
1919
const PJ_PATH = path.join(__dirname, '..', 'package.json')
2020
const pj = require(PJ_PATH)
2121

22-
const PJLOCK_PATH = path.join(__dirname, '..', 'package-lock.json')
23-
const pjLock = require(PJLOCK_PATH)
24-
2522
try {
2623
pj.version = version
2724
await fs.writeFile(PJ_PATH, JSON.stringify(pj, null, 2))
2825
console.log(`Updated package.json version to ${version}`)
29-
30-
pjLock.version = version
31-
await fs.writeFile(PJLOCK_PATH, JSON.stringify(pjLock, null, 2))
32-
console.log(`Updated package-lock.json version to ${version}`)
3326
} catch (e) {
3427
console.error('Failed to update mksnapshot version: ', e)
3528
process.exit(1)

0 commit comments

Comments
 (0)