@nginstack/engine-node 69.0.40 → 70.0.19
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/Engine.js +3 -5
- package/lib/Engine.spec.js +3 -5
- package/package.json +3 -3
package/lib/Engine.js
CHANGED
|
@@ -6,7 +6,7 @@ const request = require('request');
|
|
|
6
6
|
const getPort = require('get-port');
|
|
7
7
|
const sleep = require('thread-sleep');
|
|
8
8
|
const findUp = require('find-up');
|
|
9
|
-
const
|
|
9
|
+
const dotenv = require('dotenv');
|
|
10
10
|
const crypto = require('crypto');
|
|
11
11
|
const os = require('os');
|
|
12
12
|
const tmp = require('tmp');
|
|
@@ -485,10 +485,8 @@ class Engine {
|
|
|
485
485
|
static newUsingWorkspaceConfig(opt_options) {
|
|
486
486
|
const options = opt_options || {};
|
|
487
487
|
const workspacePath = getWorkspacePath();
|
|
488
|
-
|
|
489
|
-
path: path.resolve(workspacePath, '.env')
|
|
490
|
-
example: path.resolve(workspacePath, '.env.example'),
|
|
491
|
-
allowEmptyValues: true
|
|
488
|
+
dotenv.config({
|
|
489
|
+
path: path.resolve(workspacePath, '.env')
|
|
492
490
|
});
|
|
493
491
|
|
|
494
492
|
if (!('jazSearchPath' in options)) {
|
package/lib/Engine.spec.js
CHANGED
|
@@ -5,7 +5,7 @@ const del = require('del');
|
|
|
5
5
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
6
6
|
const expect = require('chai').expect;
|
|
7
7
|
const findUp = require('find-up');
|
|
8
|
-
const
|
|
8
|
+
const dotenv = require('dotenv');
|
|
9
9
|
|
|
10
10
|
let workspaceRoot = findUp.sync('.git', { type: 'directory' });
|
|
11
11
|
if (!workspaceRoot) {
|
|
@@ -13,10 +13,8 @@ if (!workspaceRoot) {
|
|
|
13
13
|
}
|
|
14
14
|
workspaceRoot = path.dirname(workspaceRoot);
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
path: path.resolve(workspaceRoot, '.env')
|
|
18
|
-
example: path.resolve(workspaceRoot, '.env.example'),
|
|
19
|
-
allowEmptyValues: true
|
|
16
|
+
dotenv.config({
|
|
17
|
+
path: path.resolve(workspaceRoot, '.env')
|
|
20
18
|
});
|
|
21
19
|
|
|
22
20
|
describe('Engine', function () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nginstack/engine-node",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "70.0.19",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"del": "^6.0.0",
|
|
19
|
-
"dotenv
|
|
19
|
+
"dotenv": "^16.0.3",
|
|
20
20
|
"find-up": "^5.0.0",
|
|
21
21
|
"get-port": "^5.1.1",
|
|
22
22
|
"iconv-lite": "^0.6.3",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"thread-sleep": "^2.2.0",
|
|
25
25
|
"tmp": "^0.2.1"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "37fc5bc2aada90ca6aa4c27f6faf4c5046fea29e"
|
|
28
28
|
}
|