mirror of
https://github.com/toddbluhm/env-cmd.git
synced 2025-12-08 18:23:33 +00:00
chore: rebuild ts files
This commit is contained in:
parent
9a6ff595d0
commit
500cf6ab5f
4
dist/parse-args.js
vendored
4
dist/parse-args.js
vendored
@ -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)')
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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/**/*"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user