weboptimizer 2.0.1503 → 2.0.1505
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/index.js +4 -3
- package/package.json +1 -1
- package/type.d.ts +1 -1
package/index.js
CHANGED
|
@@ -68,7 +68,7 @@ var main = function main(context) {
|
|
|
68
68
|
return _regenerator["default"].wrap(function _callee2$(_context3) {
|
|
69
69
|
while (1) switch (_context3.prev = _context3.next) {
|
|
70
70
|
case 0:
|
|
71
|
-
if (environment.PATH && !environment.PATH.includes(':
|
|
71
|
+
if (environment.PATH && !environment.PATH.includes(':node_modules/.bin')) environment.PATH += ':node_modules/.bin';else environment.PATH = 'node_modules/.bin';
|
|
72
72
|
configuration = (0, _configurator.load)(context, currentWorkingDirectory, commandLineArguments, webOptimizerPath, environment);
|
|
73
73
|
clear = (0, _clientnode.NOOP)();
|
|
74
74
|
_context3.prev = 3;
|
|
@@ -274,7 +274,7 @@ var main = function main(context) {
|
|
|
274
274
|
}).filter(function (filePath) {
|
|
275
275
|
return !configuration.path.context.startsWith(filePath);
|
|
276
276
|
}), configuration["package"].main.fileNames);
|
|
277
|
-
if (!['build', 'document', 'test', 'test:
|
|
277
|
+
if (!['build', 'document', 'test', 'test:coverage', 'test:coverage:report'].includes(commandLineArguments[2])) {
|
|
278
278
|
_context3.next = 75;
|
|
279
279
|
break;
|
|
280
280
|
}
|
|
@@ -510,6 +510,7 @@ var main = function main(context) {
|
|
|
510
510
|
if (evaluated.result) processPromises.push(new Promise(function (resolve, reject) {
|
|
511
511
|
var commandLineArguments = (task.arguments || []).concat(additionalArguments);
|
|
512
512
|
console.info('Running "' + ("".concat(task.command, " ") + commandLineArguments.join(' ')).trim() + '"');
|
|
513
|
+
console.log('A', childProcessOptions);
|
|
513
514
|
var childProcess = (0, _child_process.spawn)(task.command, commandLineArguments, childProcessOptions);
|
|
514
515
|
var closeHandler = (0, _clientnode.getProcessCloseHandler)(resolve, reject);
|
|
515
516
|
var _iterator10 = _createForOfIteratorHelper(_clientnode.CLOSE_EVENT_NAMES),
|
|
@@ -537,7 +538,7 @@ var main = function main(context) {
|
|
|
537
538
|
_iterator9.f();
|
|
538
539
|
}
|
|
539
540
|
}; /// region a-/synchronous
|
|
540
|
-
if (!['document', 'test', 'test:
|
|
541
|
+
if (!['document', 'test', 'test:coverage', 'test:coverage:report'].includes(configuration.givenCommandLineArguments[2])) {
|
|
541
542
|
_context3.next = 117;
|
|
542
543
|
break;
|
|
543
544
|
}
|
package/package.json
CHANGED
package/type.d.ts
CHANGED
|
@@ -182,7 +182,7 @@ export interface CommandLineArguments {
|
|
|
182
182
|
serve: Array<Command> | Command;
|
|
183
183
|
test: Array<Command> | Command;
|
|
184
184
|
'test:browser': Array<Command> | Command;
|
|
185
|
-
'check:
|
|
185
|
+
'check:types': Array<Command> | Command;
|
|
186
186
|
}
|
|
187
187
|
export type NodeEnvironment = BaseWebpackConfiguration['node'] & {
|
|
188
188
|
'#': string;
|