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 repository_1 = require("./repository");
|
||||||
const upload_lib = __importStar(require("./upload-lib"));
|
const upload_lib = __importStar(require("./upload-lib"));
|
||||||
const util_1 = require("./util");
|
const util_1 = require("./util");
|
||||||
|
// eslint-disable-next-line import/no-commonjs
|
||||||
|
const pkg = require("../package.json");
|
||||||
const program = new commander_1.Command();
|
const program = new commander_1.Command();
|
||||||
program.version("0.0.1");
|
program.version(pkg.version);
|
||||||
function getTempDir(userInput) {
|
function getTempDir(userInput) {
|
||||||
const tempDir = path.join(userInput || process.cwd(), "codeql-runner");
|
const tempDir = path.join(userInput || process.cwd(), "codeql-runner");
|
||||||
if (!fs.existsSync(tempDir)) {
|
if (!fs.existsSync(tempDir)) {
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -24,8 +24,11 @@ import {
|
||||||
getGitHubAuth,
|
getGitHubAuth,
|
||||||
} from "./util";
|
} from "./util";
|
||||||
|
|
||||||
|
// eslint-disable-next-line import/no-commonjs
|
||||||
|
const pkg = require("../package.json");
|
||||||
|
|
||||||
const program = new Command();
|
const program = new Command();
|
||||||
program.version("0.0.1");
|
program.version(pkg.version);
|
||||||
|
|
||||||
function getTempDir(userInput: string | undefined): string {
|
function getTempDir(userInput: string | undefined): string {
|
||||||
const tempDir = path.join(userInput || process.cwd(), "codeql-runner");
|
const tempDir = path.join(userInput || process.cwd(), "codeql-runner");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue