@bigcommerce/stencil-cli 8.9.0 → 8.9.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.
@@ -65,6 +65,7 @@ class StencilStart {
65
65
  const updatedStencilConfig = this.updateStencilConfig(
66
66
  initialStencilConfig,
67
67
  storeInfoFromAPI,
68
+ browserSyncPort,
68
69
  );
69
70
  this._storeSettingsLocale = await this.getStoreSettingsLocale(
70
71
  cliOptions,
@@ -126,11 +127,12 @@ class StencilStart {
126
127
  }
127
128
  }
128
129
 
129
- updateStencilConfig(stencilConfig, storeInfoFromAPI) {
130
+ updateStencilConfig(stencilConfig, storeInfoFromAPI, browserSyncPort) {
130
131
  return {
131
132
  ...stencilConfig,
132
133
  storeUrl: storeInfoFromAPI.sslUrl,
133
134
  normalStoreUrl: storeInfoFromAPI.baseUrl,
135
+ port: browserSyncPort,
134
136
  };
135
137
  }
136
138
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigcommerce/stencil-cli",
3
- "version": "8.9.0",
3
+ "version": "8.9.2",
4
4
  "type": "module",
5
5
  "description": "CLI tool to run BigCommerce Stores locally for theme development.",
6
6
  "main": "index.js",
@@ -62,7 +62,8 @@
62
62
  "ajv": "^6.12.5",
63
63
  "archiver": "^5.0.2",
64
64
  "async": "^3.2.3",
65
- "axios": "^0.28.0",
65
+ "axios": "^1.11.0",
66
+ "axios-mock-adapter": "^2.1.0",
66
67
  "browser-sync": "^2.27.9",
67
68
  "cheerio": "^1.0.0",
68
69
  "colors": "1.4.0",
@@ -98,15 +99,13 @@
98
99
  "yauzl": "^2.10.0"
99
100
  },
100
101
  "devDependencies": {
101
- "@commitlint/cli": "^17.1.2",
102
- "@commitlint/config-conventional": "^17.1.0",
103
- "@semantic-release/changelog": "^6.0.1",
104
- "@semantic-release/commit-analyzer": "^9.0.2",
105
- "@semantic-release/git": "^10.0.1",
106
- "@semantic-release/github": "^11.0.0",
107
- "@semantic-release/npm": "^9.0.1",
108
- "@semantic-release/release-notes-generator": "^10.0.3",
109
- "axios-mock-adapter": "^1.21.2",
102
+ "@commitlint/cli": "^19.8.1",
103
+ "@commitlint/config-conventional": "^19.8.1",
104
+ "@semantic-release/changelog": "^6.0.3",
105
+ "@semantic-release/commit-analyzer": "^13.0.1",
106
+ "@semantic-release/github": "^11.0.3",
107
+ "@semantic-release/npm": "^12.0.2",
108
+ "@semantic-release/release-notes-generator": "^14.0.3",
110
109
  "conventional-changelog-cli": "^2.2.2",
111
110
  "eslint": "^7.10.0",
112
111
  "eslint-config-airbnb-base": "^14.2.0",
package/server/index.js CHANGED
@@ -14,7 +14,7 @@ function buildManifest(srcManifest, options) {
14
14
  const parsedSecureUrl = new URL(options.dotStencilFile.storeUrl); // The url to a secure page (prompted as login page)
15
15
  const parsedNormalUrl = new URL(options.dotStencilFile.normalStoreUrl); // The host url of the homepage;
16
16
  const storeUrl = parsedSecureUrl.protocol + '//' + parsedSecureUrl.host;
17
- resManifest.server.port = options.dotStencilFile.port;
17
+ resManifest.server.port = parseInt(options.dotStencilFile.port, 10) + 1;
18
18
  pluginsByName['./plugins/router/router.module.js'].storeUrl = storeUrl;
19
19
  pluginsByName['./plugins/router/router.module.js'].normalStoreUrl =
20
20
  parsedNormalUrl.protocol + '//' + parsedNormalUrl.host;