Skip to content

Commit 277715b

Browse files
committed
chore(deno-lint): add version script
1 parent 7cd17ff commit 277715b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

packages/deno-lint/version.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
const { execSync } = require('child_process')
2+
const path = require('path')
3+
4+
const { version } = require('./package.json')
5+
const platforms = require('./platforms')
6+
const updatePackageJson = require('./update-package')
7+
8+
for (const name of [...platforms, 'musl']) {
9+
const pkgDir = path.join(__dirname, 'npm', name)
10+
updatePackageJson(path.join(pkgDir, 'package.json'), {
11+
version,
12+
})
13+
}
14+
15+
execSync('git add .', {
16+
stdio: 'inherit',
17+
})

0 commit comments

Comments
 (0)