create-unisphere-project 2.3.0 → 2.3.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/dist/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # create-unisphere-project
2
2
 
3
+ ## 2.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - ensure upgrading all libraries to their latest major
8
+
9
+ ## 2.3.1
10
+
11
+ ### Patch Changes
12
+
13
+ - ensure cli is major 1
14
+
3
15
  ## 2.3.0
4
16
 
5
17
  ### Minor Changes
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-unisphere-project",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
4
4
  "private": false,
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
@@ -1 +1 @@
1
- {"version":3,"file":"create-unisphere-repo-command.d.ts","sourceRoot":"","sources":["../../../src/lib/create-unisphere-repo-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAsC5C,eAAO,MAAM,gCAAgC,GAC3C,eAAe,OAAO,KACrB,OAiUF,CAAC"}
1
+ {"version":3,"file":"create-unisphere-repo-command.d.ts","sourceRoot":"","sources":["../../../src/lib/create-unisphere-repo-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAsC5C,eAAO,MAAM,gCAAgC,GAC3C,eAAe,OAAO,KACrB,OAqVF,CAAC"}
@@ -199,7 +199,22 @@ legacy-peer-deps=true`);
199
199
  };
200
200
  const unispherePackages = Object.keys(allDependencies).filter((pkg) => pkg.startsWith('@unisphere') && pkg !== '@unisphere/nx');
201
201
  debug(`Found @unisphere packages: ${unispherePackages.join(', ')}`);
202
- const unispherePackagesToInstall = unispherePackages.map((pkg) => `${pkg}@latest`);
202
+ const unispherePackagesToInstall = unispherePackages.map((pkg) => {
203
+ const version = allDependencies[pkg];
204
+ // Skip file: protocol versions
205
+ if (version.startsWith('file:')) {
206
+ debug(`Package ${pkg} has file version ${version}, ignore`);
207
+ return '';
208
+ }
209
+ // Extract major version from various formats: 1.2.3, ^3.3.3, ~1.2, 1.2, etc.
210
+ const majorVersion = version.match(/^[\^~]?(\d+)/)?.[1];
211
+ if (majorVersion) {
212
+ debug(`Package ${pkg} has version ${version}, using @${majorVersion}`);
213
+ return `${pkg}@${majorVersion}`;
214
+ }
215
+ debug(`Package ${pkg} has version ${version}, ignore`);
216
+ return '';
217
+ }).filter(Boolean);
203
218
  debug(`Running: ${unispherePackagesToInstall}`);
204
219
  (0, child_process_1.execSync)(`npm install ${unispherePackagesToInstall.join(' ')} --force`, {
205
220
  cwd: newProjectPath,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-unisphere-project",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
4
4
  "private": false,
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",