Skip to content

Commit d45f55b

Browse files
committed
cosmetic
1 parent 80eadcf commit d45f55b

File tree

3 files changed

+556
-598
lines changed

3 files changed

+556
-598
lines changed

npm-scripts.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import * as process from 'node:process';
22
import * as fs from 'node:fs';
33
import { execSync } from 'node:child_process';
4+
import pkg from './package.json' with { type: 'json' };
45

5-
const PKG = JSON.parse(fs.readFileSync('./package.json').toString());
66
const RELEASE_BRANCH = 'master';
77

88
// Paths for ESLint to check. Converted to string for convenience.
@@ -103,10 +103,10 @@ async function run() {
103103

104104
case 'release': {
105105
checkRelease();
106-
executeCmd(`git commit -am '${PKG.version}'`);
107-
executeCmd(`git tag -a ${PKG.version} -m '${PKG.version}'`);
106+
executeCmd(`git commit -am '${pkg.version}'`);
107+
executeCmd(`git tag -a ${pkg.version} -m '${pkg.version}'`);
108108
executeCmd(`git push origin ${RELEASE_BRANCH}`);
109-
executeCmd(`git push origin '${PKG.version}'`);
109+
executeCmd(`git push origin '${pkg.version}'`);
110110
executeInteractiveCmd('npm publish');
111111

112112
break;

0 commit comments

Comments
 (0)