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 });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
const commander_1 = require("commander");
|
const commander_1 = require("commander");
|
||||||
const utils_1 = require("./utils");
|
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
|
* Parses the arguments passed into the cli
|
||||||
*/
|
*/
|
||||||
@ -51,7 +53,7 @@ exports.parseArgs = parseArgs;
|
|||||||
function parseArgsUsingCommander(args) {
|
function parseArgsUsingCommander(args) {
|
||||||
const program = new commander_1.Command();
|
const program = new commander_1.Command();
|
||||||
return program
|
return program
|
||||||
.version('9.0.1', '-v, --version')
|
.version(packageJson.version, '-v, --version')
|
||||||
.usage('[options] <command> [...args]')
|
.usage('[options] <command> [...args]')
|
||||||
.option('-f, --file [path]', 'Custom env file path (default path: ./.env)')
|
.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)')
|
.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 { EnvCmdOptions } from './types'
|
||||||
import { parseArgList } from './utils'
|
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
|
* Parses the arguments passed into the cli
|
||||||
|
|||||||
@ -3,12 +3,14 @@
|
|||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
"target": "es2017",
|
"target": "es2017",
|
||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
|
"resolveJsonModule": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"lib": [
|
"lib": [
|
||||||
"es2018"
|
"es2018",
|
||||||
],
|
"es2019",
|
||||||
"resolveJsonModule": true
|
"es2020"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"./src/**/*"
|
"./src/**/*"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user