@bigcommerce/stencil-cli 8.8.4 → 8.8.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/lib/stencil-push.utils.js +10 -1
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ import Bundle from './stencil-bundle.js';
|
|
|
9
9
|
import themeApiClient from './theme-api-client.js';
|
|
10
10
|
import ThemeConfig from './theme-config.js';
|
|
11
11
|
import StencilConfigManager from './StencilConfigManager.js';
|
|
12
|
+
import BuildConfigManager from './BuildConfigManager.js';
|
|
12
13
|
|
|
13
14
|
const themeConfigManager = ThemeConfig.getInstance(THEME_PATH);
|
|
14
15
|
const stencilConfigManager = new StencilConfigManager();
|
|
@@ -58,8 +59,16 @@ utils.generateBundle = async (options) => {
|
|
|
58
59
|
? { dest: THEME_PATH, name: options.saveBundleName }
|
|
59
60
|
: { dest: os.tmpdir(), name: uuid() };
|
|
60
61
|
const rawConfig = await themeConfigManager.getRawConfig();
|
|
61
|
-
const
|
|
62
|
+
const buildConfigManager = new BuildConfigManager();
|
|
62
63
|
try {
|
|
64
|
+
await buildConfigManager.initConfig();
|
|
65
|
+
const bundle = new Bundle(
|
|
66
|
+
THEME_PATH,
|
|
67
|
+
themeConfigManager,
|
|
68
|
+
rawConfig,
|
|
69
|
+
output,
|
|
70
|
+
buildConfigManager,
|
|
71
|
+
);
|
|
63
72
|
const bundleZipPath = await bundle.initBundle();
|
|
64
73
|
return { ...options, bundleZipPath };
|
|
65
74
|
} catch (err) {
|