Merge pull request #4983 from uinstinct/version-when-packaging

fix(package.js): show the version when vsce packages
This commit is contained in:
Tomasz Stefaniak 2025-04-04 12:51:45 -07:00 • committed by GitHub
commit bf6be8440c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,10 @@
const { exec } = require("child_process");
const fs = require("fs");
const version = JSON.parse(
fs.readFileSync("./package.json", { encoding: "utf-8" }),
).version;
const args = process.argv.slice(2);
let target;
@ -27,6 +31,6 @@ exec(command, (error) => {
throw error;
}
console.log(
"vsce package completed - extension created at extensions/vscode/build/continue-{version}.vsix",
`vsce package completed - extension created at extensions/vscode/build/continue-${version}.vsix`,
);
});