@uns-kit/cli 2.0.48 → 2.0.50

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -6
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -849,11 +849,8 @@ async function upgradeProject(targetPath) {
849
849
  changed = true;
850
850
  }
851
851
  }
852
- // Ensure REST-backed schema sync scripts are present if any UNS generator scripts were present.
853
- const hadUnsReference = removed.some((name) => name.startsWith("generate-uns"));
854
- if (hadUnsReference) {
855
- changed = ensureUnsReferenceScripts(scripts) || changed;
856
- }
852
+ const syncScriptsChanged = ensureUnsReferenceScripts(scripts);
853
+ changed = syncScriptsChanged || changed;
857
854
  if (changed) {
858
855
  await writeFile(packagePath, JSON.stringify(pkg, null, 2) + "\n", "utf8");
859
856
  }
@@ -864,7 +861,10 @@ async function upgradeProject(targetPath) {
864
861
  console.log(` - ${name}`);
865
862
  }
866
863
  }
867
- if (hadUnsReference) {
864
+ if (syncScriptsChanged) {
865
+ console.log(" Added/updated: sync-uns-schema, sync-uns-metadata");
866
+ }
867
+ else {
868
868
  console.log(" Ensured: sync-uns-schema, sync-uns-metadata");
869
869
  }
870
870
  if (!changed) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uns-kit/cli",
3
- "version": "2.0.48",
3
+ "version": "2.0.50",
4
4
  "description": "Command line scaffolding tool for UNS applications",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -26,13 +26,13 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "azure-devops-node-api": "^15.1.1",
29
- "@uns-kit/core": "2.0.48"
29
+ "@uns-kit/core": "2.0.50"
30
30
  },
31
31
  "unsKitPackages": {
32
- "@uns-kit/core": "2.0.48",
33
- "@uns-kit/api": "2.0.48",
34
- "@uns-kit/cron": "2.0.48",
35
- "@uns-kit/database": "2.0.48",
32
+ "@uns-kit/core": "2.0.50",
33
+ "@uns-kit/api": "2.0.50",
34
+ "@uns-kit/cron": "2.0.50",
35
+ "@uns-kit/database": "2.0.50",
36
36
  "@uns-kit/temporal": "2.0.47"
37
37
  },
38
38
  "scripts": {