chore: rebuild ts files

This commit is contained in:
Todd Bluhm 2020-02-09 21:03:24 -06:00
parent 9a6ff595d0
commit 500cf6ab5f
No known key found for this signature in database
GPG Key ID: 9CF312607477B8AB
3 changed files with 11 additions and 6 deletions

4
dist/parse-args.js vendored
View File

@ -2,6 +2,8 @@
Object.defineProperty(exports, "__esModule", { value: true });
const commander_1 = require("commander");
const utils_1 = require("./utils");
// Use commonjs require to prevent a weird folder hierarchy in dist
const packageJson = require('../package.json'); /* eslint-disable-line */
/**
* Parses the arguments passed into the cli
*/
@ -51,7 +53,7 @@ exports.parseArgs = parseArgs;
function parseArgsUsingCommander(args) {
const program = new commander_1.Command();
return program
.version('9.0.1', '-v, --version')
.version(packageJson.version, '-v, --version')
.usage('[options] <command> [...args]')
.option('-f, --file [path]', 'Custom env file path (default path: ./.env)')
.option('-r, --rc-file [path]', 'Custom rc file path (default path: ./.env-cmdrc(|.js|.json)')

View File

@ -2,7 +2,8 @@ import { Command } from 'commander'
import { EnvCmdOptions } from './types'
import { parseArgList } from './utils'
import packageJson = require('../package.json');
// Use commonjs require to prevent a weird folder hierarchy in dist
const packageJson = require('../package.json') /* eslint-disable-line */
/**
* Parses the arguments passed into the cli

View File

@ -3,14 +3,16 @@
"outDir": "./dist",
"target": "es2017",
"module": "commonjs",
"resolveJsonModule": true,
"strict": true,
"declaration": true,
"lib": [
"es2018"
],
"resolveJsonModule": true
"es2018",
"es2019",
"es2020"
]
},
"include": [
"./src/**/*"
]
}
}