Skip to content

Commit e729ef4

Browse files
authored
fix: fix stencil push command from skipping theme task (#1286)
1 parent e005504 commit e729ef4

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

lib/stencil-push.utils.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import Bundle from './stencil-bundle.js';
99
import themeApiClient from './theme-api-client.js';
1010
import ThemeConfig from './theme-config.js';
1111
import StencilConfigManager from './StencilConfigManager.js';
12+
import BuildConfigManager from './BuildConfigManager.js';
1213

1314
const themeConfigManager = ThemeConfig.getInstance(THEME_PATH);
1415
const stencilConfigManager = new StencilConfigManager();
@@ -58,8 +59,16 @@ utils.generateBundle = async (options) => {
5859
? { dest: THEME_PATH, name: options.saveBundleName }
5960
: { dest: os.tmpdir(), name: uuid() };
6061
const rawConfig = await themeConfigManager.getRawConfig();
61-
const bundle = new Bundle(THEME_PATH, themeConfigManager, rawConfig, output);
62+
const buildConfigManager = new BuildConfigManager();
6263
try {
64+
await buildConfigManager.initConfig();
65+
const bundle = new Bundle(
66+
THEME_PATH,
67+
themeConfigManager,
68+
rawConfig,
69+
output,
70+
buildConfigManager,
71+
);
6372
const bundleZipPath = await bundle.initBundle();
6473
return { ...options, bundleZipPath };
6574
} catch (err) {

0 commit comments

Comments
 (0)