Use the version from package.json in the runner
This commit is contained in:
parent
4164096c0d
commit
1a4cdd35b9
3 changed files with 8 additions and 3 deletions
4
lib/runner.js
generated
4
lib/runner.js
generated
|
|
@ -22,8 +22,10 @@ const logging_1 = require("./logging");
|
|||
const repository_1 = require("./repository");
|
||||
const upload_lib = __importStar(require("./upload-lib"));
|
||||
const util_1 = require("./util");
|
||||
// eslint-disable-next-line import/no-commonjs
|
||||
const pkg = require("../package.json");
|
||||
const program = new commander_1.Command();
|
||||
program.version("0.0.1");
|
||||
program.version(pkg.version);
|
||||
function getTempDir(userInput) {
|
||||
const tempDir = path.join(userInput || process.cwd(), "codeql-runner");
|
||||
if (!fs.existsSync(tempDir)) {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue