@magnolia/cli-jumpstart-plugin 1.0.1 → 1.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.2 (2024-10-15)
4
+ * use alternative groupId and artifactId for latest magnolia version ([MGNLCLI-303](https://magnolia-cms.atlassian.net/browse/MGNLCLI-303))
5
+
3
6
  ## 1.0.1 (2024-10-15)
4
7
  * use @5 version of @magnolia/cli ([MGNLCLI-302](https://magnolia-cms.atlassian.net/browse/MGNLCLI-302))
5
8
 
@@ -110,10 +110,10 @@ export const getDownloadUrl = (bundle, credentials, options) => __awaiter(void 0
110
110
  }
111
111
  if (options.magnolia) {
112
112
  bundle.version = options.magnolia;
113
- if ((bundle.version.startsWith('6.3') || bundle.version.includes('alpha') || bundle.version.includes('beta') || bundle.version.includes('rc')) && bundle.alternative) {
114
- url.searchParams.set('maven.groupId', bundle.alternative.groupId);
115
- url.searchParams.set('maven.artifactId', bundle.alternative.artifactId);
116
- }
113
+ }
114
+ if ((bundle.version.startsWith('latest') || bundle.version.startsWith('6.3') || bundle.version.includes('alpha') || bundle.version.includes('beta') || bundle.version.includes('rc')) && bundle.alternative) {
115
+ url.searchParams.set('maven.groupId', bundle.alternative.groupId);
116
+ url.searchParams.set('maven.artifactId', bundle.alternative.artifactId);
117
117
  }
118
118
  if (bundle.version.toLowerCase() !== "latest" && bundle.version.toLowerCase() !== "alpha" && bundle.version.toLowerCase() !== "beta" && bundle.version.toLowerCase() !== "rc") {
119
119
  url.searchParams.set('maven.baseVersion', options.snapshot ? bundle.version + "-SNAPSHOT" : bundle.version);
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magnolia/cli-jumpstart-plugin",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "A plugin for Magnolia CLI to download and set up a new headless or freemarker-based project with Magnolia webapp",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magnolia/cli-jumpstart-plugin",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "A plugin for Magnolia CLI to download and set up a new headless or freemarker-based project with Magnolia webapp",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {