weboptimizer 4.0.97-1 → 4.0.98-1

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.
Files changed (2) hide show
  1. package/dist/index.js +9 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -209,7 +209,12 @@ 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
- const childProcess = spawnChildProcess(configuration.commandLine.build.command, commandLineArguments, childProcessOptions);
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);
213
218
  const copyAdditionalFilesAndTidyUp = () => {
214
219
  for (const filePath of configuration.files.additionalPaths) {
215
220
  const sourcePath = join(configuration.path.source.base, filePath);
@@ -282,7 +287,9 @@ environment = eval('process.env')) => {
282
287
  if (evaluated.result) processPromises.push(new Promise((resolve, reject) => {
283
288
  const commandLineArguments = (task.arguments || []).concat(additionalArguments);
284
289
  void log.info('Running "' + (`${task.command} ` + commandLineArguments.join(' ')).trim() + '"');
285
- const childProcess = spawnChildProcess(task.command, commandLineArguments, childProcessOptions);
290
+
291
+ // NOTE: See notice for build process above.
292
+ const childProcess = spawnChildProcess([task.command].concat(commandLineArguments).join(' '), childProcessOptions);
286
293
  const closeHandler = getProcessCloseHandler(resolve, reject);
287
294
  for (const closeEventName of CLOSE_EVENT_NAMES) childProcess.on(closeEventName, closeHandler);
288
295
  childProcesses.push(childProcess);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weboptimizer",
3
- "version": "4.0.97-1",
3
+ "version": "4.0.98-1",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",