Skip to content

Commit 9fd7850

Browse files
authored
Backport Bug Fixes to 1.5.x Branch (#474)
* Port bug fixes
1 parent a1df0cb commit 9fd7850

File tree

18 files changed

+123
-107
lines changed

18 files changed

+123
-107
lines changed

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"packages": [
44
"packages/*"
55
],
6-
"version": "1.5.0",
6+
"version": "1.5.1-alpha.0",
77
"publish": {
88
"allowBranch": [
99
"master"

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mobify-platform-sdks",
3-
"version": "1.5.0",
3+
"version": "1.5.1-alpha.0",
44
"engines": {
55
"node": "^12.0.0 || ^14.0.0",
66
"npm": "^6.14.4 || ^7.0.0 || ^8.0.0"

packages/hello-world/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/hello-world/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hello-world",
3-
"version": "1.5.0",
3+
"version": "1.5.1-alpha.0",
44
"license": "See license in LICENSE",
55
"private": true,
66
"dependencies": {
@@ -21,7 +21,7 @@
2121
"eslint-plugin-prettier": "3.0.1",
2222
"eslint-plugin-react": "7.24.0",
2323
"prettier": "1.18.2",
24-
"pwa-kit-react-sdk": "^1.5.0"
24+
"pwa-kit-react-sdk": "^1.5.1-alpha.0"
2525
},
2626
"scripts": {
2727
"format": "prettier --write \"**/*.{js,jsx}\"",

packages/pwa-kit-create-app/CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
## v1.5.0-dev (Jan 28, 2022)
1+
## v1.5.1-alpha.0 (Mar 31, 2022)
2+
- Fix incorrect site related values when generating without use of a preset [#470](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/470)
3+
4+
## v1.5.0 (Jan 28, 2022)
25
- Fix project generation on Windows when using WSL [#385](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/385)
36

47
## v1.4.0 (Jan 27, 2022)

packages/pwa-kit-create-app/assets/pwa/default.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = {
1717
// showDefaults: true
1818
},
1919
// The default site for your app. This value will be used when a siteRef could not be determined from the url
20-
defaultSite: 'RefArch',
20+
defaultSite: '${commerceApi.siteId}',
2121
// Provide aliases for your sites. These will be used in place of your site id when generating paths throughout the application.
2222
// siteAliases: {
2323
// RefArch: 'us'
@@ -64,7 +64,7 @@ module.exports = {
6464
ssrFunctionNodeVersion: '14.x',
6565
proxyConfigs: [
6666
{
67-
host: 'kv7kzm78.api.commercecloud.salesforce.com',
67+
host: '${commerceApi.shortCode}.api.commercecloud.salesforce.com',
6868
path: 'api'
6969
},
7070
{

packages/pwa-kit-create-app/assets/pwa/sites.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
* SPDX-License-Identifier: BSD-3-Clause
55
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
7-
exports.template = () => `// Provide the sites for your app. Each site includes site id, and its localization configuration.
7+
exports.template = (
8+
answers
9+
) => `// Provide the sites for your app. Each site includes site id, and its localization configuration.
810
// You can also provide aliases for your locale. They will be used in place of your locale id when generating paths across the app
911
module.exports = [
1012
{
11-
id: 'RefArch',
13+
id: '${answers['commerce-api'].siteId}',
1214
l10n: {
1315
supportedCurrencies: ['USD'],
1416
defaultCurrency: 'USD',

packages/pwa-kit-create-app/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/pwa-kit-create-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pwa-kit-create-app",
3-
"version": "1.5.0",
3+
"version": "1.5.1-alpha.0",
44
"description": "Salesforce's project generator tool",
55
"author": "dev@mobify.com",
66
"license": "See license in LICENSE",

0 commit comments

Comments
 (0)