@emarketeer/ts-microservice-commons 10.5.1 → 10.5.2
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/dist/lib/em-commons.js +7 -3
- package/package.json +1 -1
package/dist/lib/em-commons.js
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
+
var fs = require('fs');
|
|
5
6
|
var cp = require('child_process');
|
|
6
7
|
var path = require('path');
|
|
7
|
-
var fs = require('fs');
|
|
8
8
|
|
|
9
9
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
10
|
|
|
11
|
+
var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
|
|
11
12
|
var cp__default = /*#__PURE__*/_interopDefaultLegacy(cp);
|
|
12
13
|
var path__default = /*#__PURE__*/_interopDefaultLegacy(path);
|
|
13
|
-
var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
|
|
14
14
|
|
|
15
15
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
16
16
|
|
|
@@ -666,7 +666,11 @@ if (script === 'jest') {
|
|
|
666
666
|
// --experimental-vm-modules is required so Jest can execute ES-module files
|
|
667
667
|
// in its VM — used by AWS SDK v3's dynamic credential-provider imports and
|
|
668
668
|
// by @mikro-orm/* (and other ESM-only packages) under EM_JEST_ESM_FRIENDLY=true.
|
|
669
|
-
|
|
669
|
+
var baseCommand = 'npx cross-env NODE_OPTIONS="--max_old_space_size=4096 --experimental-vm-modules" jest -w 4 --ci --forceExit';
|
|
670
|
+
var configFlag = fs.existsSync('jest.config.js')
|
|
671
|
+
? ''
|
|
672
|
+
: ' --config node_modules/@emarketeer/ts-microservice-commons/dist/lib/jest.config.js';
|
|
673
|
+
result = runCommand(baseCommand + configFlag, scriptArgs);
|
|
670
674
|
}
|
|
671
675
|
if (!supportedCommands.includes(script)) {
|
|
672
676
|
console.error("Unknown command: ".concat(script));
|