weboptimizer 4.0.98-1 → 4.0.98
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/index.js +2 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -209,12 +209,7 @@ environment = eval('process.env')) => {
|
|
|
209
209
|
if (!childProcessOptions.env) childProcessOptions.env = {};
|
|
210
210
|
if (typeof childProcessOptions.env.PATH !== 'string') childProcessOptions.env.PATH = '';
|
|
211
211
|
childProcessOptions.env.PATH += `: ${webOptimizerPath}/node_modules/.bin`;
|
|
212
|
-
|
|
213
|
-
/*
|
|
214
|
-
NOTE: Passing arguments separately is deprecated in
|
|
215
|
-
shell mode since they would only be concatenated.
|
|
216
|
-
*/
|
|
217
|
-
const childProcess = spawnChildProcess([configuration.commandLine.build.command].concat(commandLineArguments).join(' '), childProcessOptions);
|
|
212
|
+
const childProcess = spawnChildProcess(configuration.commandLine.build.command, commandLineArguments, childProcessOptions);
|
|
218
213
|
const copyAdditionalFilesAndTidyUp = () => {
|
|
219
214
|
for (const filePath of configuration.files.additionalPaths) {
|
|
220
215
|
const sourcePath = join(configuration.path.source.base, filePath);
|
|
@@ -287,9 +282,7 @@ environment = eval('process.env')) => {
|
|
|
287
282
|
if (evaluated.result) processPromises.push(new Promise((resolve, reject) => {
|
|
288
283
|
const commandLineArguments = (task.arguments || []).concat(additionalArguments);
|
|
289
284
|
void log.info('Running "' + (`${task.command} ` + commandLineArguments.join(' ')).trim() + '"');
|
|
290
|
-
|
|
291
|
-
// NOTE: See notice for build process above.
|
|
292
|
-
const childProcess = spawnChildProcess([task.command].concat(commandLineArguments).join(' '), childProcessOptions);
|
|
285
|
+
const childProcess = spawnChildProcess(task.command, commandLineArguments, childProcessOptions);
|
|
293
286
|
const closeHandler = getProcessCloseHandler(resolve, reject);
|
|
294
287
|
for (const closeEventName of CLOSE_EVENT_NAMES) childProcess.on(closeEventName, closeHandler);
|
|
295
288
|
childProcesses.push(childProcess);
|