@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.
- package/bin/stencil-bundle.js +1 -0
- package/bin/stencil-start.js +9 -3
- package/lib/stencil-bundle.js +1 -2
- package/lib/stencil-start.js +0 -1
- package/package.json +1 -1
package/bin/stencil-bundle.js
CHANGED
|
@@ -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,
|
package/bin/stencil-start.js
CHANGED
|
@@ -34,6 +34,12 @@ const options = {
|
|
|
34
34
|
cache: cliOptions.cache,
|
|
35
35
|
channelUrl: cliOptions.channelUrl,
|
|
36
36
|
};
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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();
|
package/lib/stencil-bundle.js
CHANGED
|
@@ -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 =
|
|
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);
|
package/lib/stencil-start.js
CHANGED
|
@@ -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);
|