@bigcommerce/stencil-cli 8.8.0 → 8.8.2

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.
@@ -47,6 +47,7 @@ async function run() {
47
47
  const rawConfig = await themeConfig.getRawConfig();
48
48
  const timeout = cliOptions.timeout * 1000; // seconds
49
49
  const buildConfigManager = new BuildConfigManager({ timeout });
50
+ await buildConfigManager.initConfig();
50
51
  const bundle = new Bundle(
51
52
  THEME_PATH,
52
53
  themeConfig,
@@ -34,6 +34,12 @@ const options = {
34
34
  cache: cliOptions.cache,
35
35
  channelUrl: cliOptions.channelUrl,
36
36
  };
37
- const timeout = cliOptions.timeout * 1000; // seconds
38
- const buildConfigManager = new BuildConfigManager({ timeout });
39
- new StencilStart({ buildConfigManager }).run(options).catch(printCliResultErrorAndExit);
37
+
38
+ async function run() {
39
+ const timeout = cliOptions.timeout * 1000; // seconds
40
+ const buildConfigManager = new BuildConfigManager({ timeout });
41
+ await buildConfigManager.initConfig();
42
+ new StencilStart({ buildConfigManager }).run(options).catch(printCliResultErrorAndExit);
43
+ }
44
+
45
+ run();
@@ -68,9 +68,8 @@ class Bundle {
68
68
  tasks.schemaTranslations = this.assembleSchemaTranslations.bind(this);
69
69
  tasks.stencilContext = this.assembleStencilContextTask.bind(this);
70
70
  if (typeof buildConfigManager.production === 'function') {
71
- tasks.theme = async (callback) => {
71
+ tasks.theme = (callback) => {
72
72
  console.log('Theme task Started...');
73
- await buildConfigManager.initConfig();
74
73
  buildConfigManager.initWorker().production((err) => {
75
74
  if (err) {
76
75
  return callback(err);
@@ -233,7 +233,6 @@ class StencilStart {
233
233
  }
234
234
  });
235
235
  if (this._buildConfigManager.development) {
236
- await this._buildConfigManager.initConfig();
237
236
  this._buildConfigManager.initWorker().development(this._browserSync);
238
237
  }
239
238
  await this.checkLangFiles(langsPath, this._storeSettingsLocale.default_shopper_language);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigcommerce/stencil-cli",
3
- "version": "8.8.0",
3
+ "version": "8.8.2",
4
4
  "type": "module",
5
5
  "description": "CLI tool to run BigCommerce Stores locally for theme development.",
6
6
  "main": "index.js",