@redhat-cloud-services/frontend-components-config 4.6.3 → 4.6.6

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/README.md CHANGED
@@ -374,7 +374,7 @@ index f7513bb..d8c9008 100644
374
374
  "prod": "NODE_ENV=production webpack serve --config config/dev.webpack.config.js",
375
375
  "server:ctr": "node src/server/generateServerKey.js",
376
376
  "start": "NODE_ENV=development webpack serve --config config/dev.webpack.config.js",
377
- + "start:federated": "fec static --config config/dev.webpack.config.js",
377
+ + "start:federated": "fec static",
378
378
  "start:proxy": "PROXY=true NODE_ENV=development webpack serve --config config/dev.webpack.config.js",
379
379
  "travis:build": "NODE_ENV=production webpack --config config/prod.webpack.config.js",
380
380
  "travis:verify": "npm-run-all travis:build lint test",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redhat-cloud-services/frontend-components-config",
3
- "version": "4.6.3",
3
+ "version": "4.6.6",
4
4
  "description": "Config plugins and settings for RedHat Cloud Services project.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "homepage": "https://github.com/RedHatInsights/frontend-components/tree/master/packages/config#readme",
22
22
  "dependencies": {
23
- "@redhat-cloud-services/frontend-components-config-utilities": "^1.5.11",
23
+ "@redhat-cloud-services/frontend-components-config-utilities": "^1.5.17",
24
24
  "assert": "^2.0.0",
25
25
  "axios": "^0.25.0",
26
26
  "babel-loader": "^8.2.2",
@@ -1,5 +1,6 @@
1
1
  const { logError, getWebpackConfigPath } = require('./common');
2
2
  const { resolve } = require('path');
3
+ const { spawn } = require('child_process');
3
4
 
4
5
  function buildScript(argv, cwd) {
5
6
  try {
@@ -11,6 +12,12 @@ function buildScript(argv, cwd) {
11
12
  configPath = resolve(__dirname, './prod.webpack.config.js');
12
13
  }
13
14
  processArgs.push(`node_modules/.bin/webpack -c ${configPath}`);
15
+ process.env.NODE_ENV = 'production';
16
+ spawn('node', processArgs, {
17
+ stdio: [process.stdout, process.stdout, process.stdout],
18
+ cwd,
19
+ shell: true,
20
+ });
14
21
  } catch (error) {
15
22
  logError(error);
16
23
  process.exit(1);