@incanta/config 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/config-env.d.ts +1 -0
- package/lib/config-env.js +2 -4
- package/lib/config-env.js.map +1 -1
- package/package.json +1 -1
- package/src/config-env.ts +3 -4
package/lib/config-env.d.ts
CHANGED
package/lib/config-env.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
1
2
|
"use strict";
|
|
2
3
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
4
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -6,10 +7,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
7
|
const child_process_1 = require("child_process");
|
|
7
8
|
const lodash_merge_1 = __importDefault(require("lodash.merge"));
|
|
8
9
|
const index_1 = __importDefault(require("./index"));
|
|
9
|
-
const command = process.argv
|
|
10
|
-
.slice(2)
|
|
11
|
-
.map((arg) => `"${arg}"`)
|
|
12
|
-
.join(" ");
|
|
10
|
+
const command = process.argv.slice(2).join(" ");
|
|
13
11
|
const env = {};
|
|
14
12
|
(0, lodash_merge_1.default)(env, process.env, index_1.default.getConfiguredEnv());
|
|
15
13
|
(0, child_process_1.execSync)(command, {
|
package/lib/config-env.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-env.js","sourceRoot":"","sources":["../src/config-env.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config-env.js","sourceRoot":"","sources":["../src/config-env.ts"],"names":[],"mappings":";;;;;;AAEA,iDAAyC;AACzC,gEAAiC;AACjC,oDAA6B;AAE7B,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEhD,MAAM,GAAG,GAAQ,EAAE,CAAC;AAEpB,IAAA,sBAAK,EAAC,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,eAAM,CAAC,gBAAgB,EAAE,CAAC,CAAC;AAEnD,IAAA,wBAAQ,EAAC,OAAO,EAAE;IAChB,GAAG;IACH,KAAK,EAAE,SAAS;CACjB,CAAC,CAAC"}
|
package/package.json
CHANGED
package/src/config-env.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
1
3
|
import { execSync } from "child_process";
|
|
2
4
|
import merge from "lodash.merge";
|
|
3
5
|
import config from "./index";
|
|
4
6
|
|
|
5
|
-
const command = process.argv
|
|
6
|
-
.slice(2)
|
|
7
|
-
.map((arg) => `"${arg}"`)
|
|
8
|
-
.join(" ");
|
|
7
|
+
const command = process.argv.slice(2).join(" ");
|
|
9
8
|
|
|
10
9
|
const env: any = {};
|
|
11
10
|
|