14 lines
577 B
JavaScript
14 lines
577 B
JavaScript
// Run after `yarn workspace debug-visualizer package` -- vsce's own stdout
|
|
// ("DONE Packaged: ...") isn't meant to be parsed programmatically, so this
|
|
// just checks the fixed -o path that extension/package.json's own "package"
|
|
// script passes to vsce, and prints it (or fails loudly if it's missing).
|
|
const fs = require("fs");
|
|
const path = require("path");
|
|
|
|
const vsixPath = path.resolve(__dirname, "extension", "dist", "extension.vsix");
|
|
if (!fs.existsSync(vsixPath)) {
|
|
console.error("Expected .vsix not found at " + vsixPath);
|
|
process.exit(1);
|
|
}
|
|
console.log(vsixPath);
|