We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a94b80 commit eedb7c6Copy full SHA for eedb7c6
.github/utils/update-version.cjs
@@ -14,9 +14,9 @@ const { execSync } = require("node:child_process");
14
const assert = require("node:assert");
15
16
try {
17
- const packagePath = getArgs()[0];
18
- assert(packagePath, "Required package path missing.");
19
- const packageJsonPath = `packages/${packagePath}/package.json`;
+ const packageName = getArgs()[0];
+ assert(packageName, "Required package name missing.");
+ const packageJsonPath = `packages/${packageName}/package.json`;
20
const pkg = JSON.parse(readFileSync(packageJsonPath));
21
const stdout = execSync("git rev-parse --short HEAD", { encoding: "utf8" });
22
pkg.version = "0.0.0-" + stdout.trim();
0 commit comments