@uns-kit/cli 0.0.26 → 0.0.27
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/index.js +6 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -937,8 +937,12 @@ async function patchPackageJson(targetDir, packageName) {
|
|
|
937
937
|
const raw = await readFile(pkgFile, "utf8");
|
|
938
938
|
const pkg = JSON.parse(raw);
|
|
939
939
|
pkg.name = packageName;
|
|
940
|
-
|
|
941
|
-
|
|
940
|
+
const dependencies = (pkg.dependencies ??= {});
|
|
941
|
+
if (dependencies["@uns-kit/core"]) {
|
|
942
|
+
dependencies["@uns-kit/core"] = resolveUnsPackageSpecifier("@uns-kit/core", "../../uns-core/package.json");
|
|
943
|
+
}
|
|
944
|
+
else {
|
|
945
|
+
dependencies["@uns-kit/core"] = `^${coreVersion}`;
|
|
942
946
|
}
|
|
943
947
|
await writeFile(pkgFile, JSON.stringify(pkg, null, 2) + "\n", "utf8");
|
|
944
948
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uns-kit/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.27",
|
|
4
4
|
"description": "Command line scaffolding tool for UNS applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"azure-devops-node-api": "^15.1.1",
|
|
29
|
-
"@uns-kit/core": "0.0.
|
|
29
|
+
"@uns-kit/core": "0.0.28"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "tsc -p tsconfig.build.json",
|