@nginstack/engine-node 71.0.73 → 71.0.473
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 +13 -6
- package/package.json +2 -2
package/lib/Engine.js
CHANGED
|
@@ -298,7 +298,6 @@ class Engine {
|
|
|
298
298
|
`. Database: ${this.dbName}. Path: "${this.installPath}".`);
|
|
299
299
|
const args = [this.serverUrl, this.dbName,
|
|
300
300
|
'--disableAutoRestart',
|
|
301
|
-
'--disableDBCacheBackup',
|
|
302
301
|
'--disableGui',
|
|
303
302
|
'--httpPort=' + this.httpPort];
|
|
304
303
|
|
|
@@ -476,21 +475,29 @@ class Engine {
|
|
|
476
475
|
*
|
|
477
476
|
* The Engine will be installed on `<root-dir>/.engine/<database-name>` directory. If was not
|
|
478
477
|
* informed the option `jazSearchPath` it will load all JAZ files inside the
|
|
479
|
-
* `<root-dir>/.build` directory
|
|
478
|
+
* `<root-dir>/.build` directory (or "build" directory if ".build" does not exists). The
|
|
479
|
+
* option `disableIdoSyncToDisk` will be enabled by default.
|
|
480
480
|
*
|
|
481
481
|
* See the site https://nginstack.com for the more details about the adopted repository
|
|
482
482
|
* conventions.
|
|
483
|
-
* @param {EngineOptions=}
|
|
483
|
+
* @param {EngineOptions=} options Advanced Engine options.
|
|
484
484
|
*/
|
|
485
|
-
static newUsingWorkspaceConfig(
|
|
486
|
-
|
|
485
|
+
static newUsingWorkspaceConfig(options) {
|
|
486
|
+
options = options || {};
|
|
487
487
|
const workspacePath = getWorkspacePath();
|
|
488
488
|
dotenv.config({
|
|
489
489
|
path: path.resolve(workspacePath, '.env')
|
|
490
490
|
});
|
|
491
491
|
|
|
492
492
|
if (!('jazSearchPath' in options)) {
|
|
493
|
-
|
|
493
|
+
let jazSearchPath = path.resolve(workspacePath, '.build');
|
|
494
|
+
if (!fs.existsSync(jazSearchPath)) {
|
|
495
|
+
// Compatibility with previous build directory name
|
|
496
|
+
jazSearchPath = path.resolve(workspacePath, 'build');
|
|
497
|
+
}
|
|
498
|
+
if (fs.existsSync(jazSearchPath)) {
|
|
499
|
+
options.jazSearchPath = jazSearchPath;
|
|
500
|
+
}
|
|
494
501
|
}
|
|
495
502
|
if (!('disableIdoSyncToDisk' in options)) {
|
|
496
503
|
options.disableIdoSyncToDisk = true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nginstack/engine-node",
|
|
3
|
-
"version": "71.0.
|
|
3
|
+
"version": "71.0.473",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"thread-sleep": "^2.2.0",
|
|
25
25
|
"tmp": "^0.2.1"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "57ed27361c31ae0f6c30fde36408475f9bba9042"
|
|
28
28
|
}
|