Skip to content

Commit 52c7d41

Browse files
authored
fix: fix build config manager (#1277)
1 parent 8041754 commit 52c7d41

File tree

7 files changed

+304
-124
lines changed

7 files changed

+304
-124
lines changed

CHANGELOG.md

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,132 @@
1+
## [8.8.0](https://github.com/bigcommerce/stencil-cli/compare/8.7.0...8.8.0) (2025-06-27)
2+
3+
4+
### Features
5+
6+
* STRF-13399 If theme doesn't have stencil.conf.js, download it from cornerstone ([#1271](https://github.com/bigcommerce/stencil-cli/issues/1271)) ([8041754](https://github.com/bigcommerce/stencil-cli/commit/80417541f809f4a14cf8b6b2566e58407cbd7cc6))
7+
8+
9+
10+
## [8.7.0](https://github.com/bigcommerce/stencil-cli/compare/8.6.7...8.7.0) (2025-06-27)
11+
12+
13+
### Features
14+
15+
* STRF-13396 Stencil Context Attributes Usage Analyzer ([#1264](https://github.com/bigcommerce/stencil-cli/issues/1264)) ([b329fbc](https://github.com/bigcommerce/stencil-cli/commit/b329fbcb4656bf6c36e6b38bf4f27f29b0271d1b))
16+
17+
18+
19+
## [8.6.7](https://github.com/bigcommerce/stencil-cli/compare/8.6.6...8.6.7) (2025-06-26)
20+
21+
22+
### Bug Fixes
23+
24+
* STRF-12935 Update nodejs Docker version and CI job env var names ([#1269](https://github.com/bigcommerce/stencil-cli/issues/1269)) ([555f58b](https://github.com/bigcommerce/stencil-cli/commit/555f58b6ff63e7d602b7db79625bc722cef1cd78))
25+
26+
27+
28+
## [8.6.6](https://github.com/bigcommerce/stencil-cli/compare/8.6.5...8.6.6) (2025-06-19)
29+
30+
31+
### Bug Fixes
32+
33+
* STRF-12935 Update docker CI actions versions ([#1268](https://github.com/bigcommerce/stencil-cli/issues/1268)) ([ea8e831](https://github.com/bigcommerce/stencil-cli/commit/ea8e831a8168f1f6f60c6b3b12d1ecf8a0b590fa))
34+
35+
36+
37+
## [8.6.5](https://github.com/bigcommerce/stencil-cli/compare/8.6.4...8.6.5) (2025-06-18)
38+
39+
40+
### Bug Fixes
41+
42+
* move release image CI job to relase workflow ([#1266](https://github.com/bigcommerce/stencil-cli/issues/1266)) ([16a4539](https://github.com/bigcommerce/stencil-cli/commit/16a45394d4bfebd9d68076e278f11e22c017f8cd))
43+
44+
45+
46+
## [8.6.4](https://github.com/bigcommerce/stencil-cli/compare/8.6.3...8.6.4) (2025-06-18)
47+
48+
49+
### Bug Fixes
50+
51+
* STRF-12935 Fix docker image publishing ([#1265](https://github.com/bigcommerce/stencil-cli/issues/1265)) ([64afbce](https://github.com/bigcommerce/stencil-cli/commit/64afbcea2d63b6c7ea948fc83a6858623a3916e7))
52+
53+
54+
55+
## [8.6.3](https://github.com/bigcommerce/stencil-cli/compare/8.6.2...8.6.3) (2025-05-28)
56+
57+
58+
### Bug Fixes
59+
60+
* bump paper to 5.1.6; fix chrono-node version ([#1263](https://github.com/bigcommerce/stencil-cli/issues/1263)) ([a32a36b](https://github.com/bigcommerce/stencil-cli/commit/a32a36b4d1343b7d7683ec02d637a941e80f8658))
61+
62+
63+
64+
## [8.6.2](https://github.com/bigcommerce/stencil-cli/compare/8.6.1...8.6.2) (2025-05-14)
65+
66+
67+
### Bug Fixes
68+
69+
* bump paper to 5.1.4 ([#1260](https://github.com/bigcommerce/stencil-cli/issues/1260)) ([1b78b72](https://github.com/bigcommerce/stencil-cli/commit/1b78b725bf431fede0269625d48d722f681480de))
70+
71+
72+
73+
## [8.6.1](https://github.com/bigcommerce/stencil-cli/compare/8.6.0...8.6.1) (2025-04-14)
74+
75+
76+
### Bug Fixes
77+
78+
* Add new stencil config file to zip bundle ([#1259](https://github.com/bigcommerce/stencil-cli/issues/1259)) ([4f66d71](https://github.com/bigcommerce/stencil-cli/commit/4f66d71e0b77ca967e29766751604138733af95b))
79+
80+
81+
82+
# [8.6.0](https://github.com/bigcommerce/stencil-cli/compare/8.5.2...8.6.0) (2025-01-17)
83+
84+
85+
### Features
86+
87+
* STRF-12941 Add channelUrl parameter to stencil start ([#1254](https://github.com/bigcommerce/stencil-cli/issues/1254)) ([988c787](https://github.com/bigcommerce/stencil-cli/commit/988c7878bf8d3838955478b67dd7938ab90fc0eb))
88+
89+
90+
91+
## [8.5.2](https://github.com/bigcommerce/stencil-cli/compare/8.5.1...8.5.2) (2025-01-09)
92+
93+
94+
### Bug Fixes
95+
96+
* STRF-12941 Fix stencil release in case of having .git extension in the remote name ([#1252](https://github.com/bigcommerce/stencil-cli/issues/1252)) ([15195aa](https://github.com/bigcommerce/stencil-cli/commit/15195aaf82644e6680c7859d087f7117fbf5cfd0))
97+
98+
99+
## [8.5.1](https://github.com/bigcommerce/stencil-cli/compare/8.5.0...8.5.1) (2024-12-18)
100+
101+
102+
### Bug Fixes
103+
104+
* STRF-11523 Enable dynamic partials ([#1248](https://github.com/bigcommerce/stencil-cli/issues/1248)) ([4fab613](https://github.com/bigcommerce/stencil-cli/commit/4fab61385b076ffe6105bb1196aace787143ef9b))
105+
106+
107+
108+
# [8.5.0](https://github.com/bigcommerce/stencil-cli/compare/8.4.1...8.5.0) (2024-12-13)
109+
110+
111+
### Features
112+
113+
* Add source maps option to bundle and push process ([#1245](https://github.com/bigcommerce/stencil-cli/issues/1245)) ([2604750](https://github.com/bigcommerce/stencil-cli/commit/2604750209d5784a1117329acacb0df9d860abeb))
114+
115+
116+
# [8.4.0](https://github.com/bigcommerce/stencil-cli/compare/8.3.0...8.4.0) (2024-09-26)
117+
118+
119+
### Bug Fixes
120+
121+
* semantic release deploy to npm ([#1233](https://github.com/bigcommerce/stencil-cli/issues/1233)) ([5ed0cf3](https://github.com/bigcommerce/stencil-cli/commit/5ed0cf359f9f3101898cea075ad98600ad9e320b))
122+
* set node 20 for release ([#1234](https://github.com/bigcommerce/stencil-cli/issues/1234)) ([250bb07](https://github.com/bigcommerce/stencil-cli/commit/250bb076942dfc70b3b6a3f69654a7c4f0a8dfd6))
123+
124+
125+
### Features
126+
127+
* STRF-11903 Migrate to ESM ([#1230](https://github.com/bigcommerce/stencil-cli/issues/1230)) ([9e462ea](https://github.com/bigcommerce/stencil-cli/commit/9e462ea44967e60c8003519154301d1c96a949b0))
128+
129+
1130
# [8.3.0](https://github.com/bigcommerce/stencil-cli/compare/8.2.0...8.3.0) (2024-09-20)
2131

3132

bin/stencil-bundle.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ async function run() {
4747
const rawConfig = await themeConfig.getRawConfig();
4848
const timeout = cliOptions.timeout * 1000; // seconds
4949
const buildConfigManager = new BuildConfigManager({ timeout });
50+
await buildConfigManager.initConfig();
5051
const bundle = new Bundle(
5152
THEME_PATH,
5253
themeConfig,

bin/stencil-start.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ const options = {
3434
cache: cliOptions.cache,
3535
channelUrl: cliOptions.channelUrl,
3636
};
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();

lib/stencil-bundle.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,8 @@ class Bundle {
6868
tasks.schemaTranslations = this.assembleSchemaTranslations.bind(this);
6969
tasks.stencilContext = this.assembleStencilContextTask.bind(this);
7070
if (typeof buildConfigManager.production === 'function') {
71-
tasks.theme = async (callback) => {
71+
tasks.theme = (callback) => {
7272
console.log('Theme task Started...');
73-
await buildConfigManager.initConfig();
7473
buildConfigManager.initWorker().production((err) => {
7574
if (err) {
7675
return callback(err);

lib/stencil-start.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ class StencilStart {
233233
}
234234
});
235235
if (this._buildConfigManager.development) {
236-
await this._buildConfigManager.initConfig();
237236
this._buildConfigManager.initWorker().development(this._browserSync);
238237
}
239238
await this.checkLangFiles(langsPath, this._storeSettingsLocale.default_shopper_language);

0 commit comments

Comments
 (0)