gdu 4.0.5 → 4.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # gdu
2
2
 
3
+ ## 4.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - GDU: sets octopus var for prod public path
8
+
3
9
  ## 4.0.5
4
10
 
5
11
  ### Patch Changes
@@ -18,7 +18,10 @@ const buildSSR = async (guruConfig) => {
18
18
  cwd: roots_1.PROJECT_ROOT,
19
19
  localDir: roots_1.GDU_ROOT,
20
20
  extendEnv: true,
21
- env: { NODE_ENV: process.env.NODE_ENV || 'production', APP_ENV: process.env.APP_ENV || 'prod' },
21
+ env: {
22
+ NODE_ENV: process.env.NODE_ENV || 'production',
23
+ APP_ENV: process.env.APP_ENV || 'prod',
24
+ },
22
25
  })
23
26
  .then((result) => {
24
27
  console.log(`${kleur_1.dim('SUCCESS!')}`, `${kleur_1.dim('Listening')}: ${kleur_1.blue(result === null || result === void 0 ? void 0 : result.all)}`);
@@ -298,22 +298,21 @@ const baseOptions = (buildEnv, isMultiEnv) => ({
298
298
  ].filter(Boolean),
299
299
  });
300
300
  const { outputPath } = config_1.getGuruConfig();
301
- const makeWebpackConfig = (buildEnv, isMultiEnv) => {
302
- var _a;
303
- return ({
304
- name: buildEnv,
305
- output: {
306
- path: `${outputPath}/${!isMultiEnv && buildEnv === 'prod' ? '' : buildEnv}`,
307
- publicPath: isDev ? '/' : (_a = `https://static-mfe-${buildEnv}.autoguru.io`) !== null && _a !== void 0 ? _a : '/',
308
- filename: `${fileMask}.js`,
309
- chunkFilename: `chunks/${fileMask}.js`,
310
- hashFunction: 'sha256',
311
- crossOriginLoading: 'anonymous',
312
- sourceMapFilename: 'sourceMaps/[file].map',
313
- pathinfo: false,
314
- },
315
- });
316
- };
301
+ const makeWebpackConfig = (buildEnv, isMultiEnv) => ({
302
+ name: buildEnv,
303
+ output: {
304
+ path: `${outputPath}/${!isMultiEnv && buildEnv === 'prod' ? '' : buildEnv}`,
305
+ publicPath: isDev
306
+ ? '/'
307
+ : (buildEnv === 'prod' ? '#{PUBLIC_PATH_BASE}' : `https://static-mfe-${buildEnv}.autoguru.io`),
308
+ filename: `${fileMask}.js`,
309
+ chunkFilename: `chunks/${fileMask}.js`,
310
+ hashFunction: 'sha256',
311
+ crossOriginLoading: 'anonymous',
312
+ sourceMapFilename: 'sourceMaps/[file].map',
313
+ pathinfo: false,
314
+ },
315
+ });
317
316
  const buildConfigs = () => {
318
317
  const buildEnvs = configs_1.getBuildEnvs();
319
318
  return buildEnvs.map((buildEnv) => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gdu",
3
- "version": "4.0.5",
3
+ "version": "4.0.6",
4
4
  "private": false,
5
5
  "description": "AutoGuru's development toolkit",
6
6
  "homepage": "https://github.com/autoguru-au/octane/tree/master/packages/gdu#readme",