Merge pull request #4983 from uinstinct/version-when-packaging
fix(package.js): show the version when vsce packages
This commit is contained in:
commit
bf6be8440c
1 changed files with 5 additions and 1 deletions
|
|
@ -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`,
|
||||
);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue