@uns-kit/cli 0.0.26 → 0.0.28
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/README.md +1 -1
- package/dist/index.js +6 -2
- package/package.json +2 -2
- package/templates/default/README.md +2 -2
package/README.md
CHANGED
|
@@ -121,7 +121,7 @@ Copies the Python gateway client template (examples, scripts, requirements, prot
|
|
|
121
121
|
|
|
122
122
|
### Extend the Config Schema
|
|
123
123
|
|
|
124
|
-
Edit `src/config/project.config.extension.ts` inside your generated project and run `pnpm run generate-config-schema`. This regenerates `config.schema.json` and `src/config/app-config.ts` so editors and runtime types stay in sync.
|
|
124
|
+
Edit `src/config/project.config.extension.ts` inside your generated project and run `pnpm run generate-config-schema`. This regenerates `config.schema.json` and `src/config/app-config.ts`, augmenting `@uns-kit/core`'s `AppConfig` so editors and runtime types stay in sync. If completions lag, reload the TypeScript server in your editor.
|
|
125
125
|
|
|
126
126
|
## License
|
|
127
127
|
|
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.28",
|
|
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.29"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "tsc -p tsconfig.build.json",
|
|
@@ -8,7 +8,7 @@ Generated with `@uns-kit/cli`.
|
|
|
8
8
|
pnpm run dev # start the local development loop
|
|
9
9
|
pnpm run build # emit dist/ output
|
|
10
10
|
pnpm run start # run the compiled entrypoint
|
|
11
|
-
pnpm run generate-config-schema # regenerate config.schema.json and AppConfig
|
|
11
|
+
pnpm run generate-config-schema # regenerate config.schema.json and AppConfig augmentations
|
|
12
12
|
pnpm run codegen # regenerate typed GraphQL operations (after configure-codegen)
|
|
13
13
|
pnpm run refresh-uns # rebuild UNS topics/tags from the live schema
|
|
14
14
|
```
|
|
@@ -21,7 +21,7 @@ Update `config.json` with your broker, UNS URLs, and credentials. The generated
|
|
|
21
21
|
|
|
22
22
|
- Install additional plugins: `pnpm add @uns-kit/api` etc.
|
|
23
23
|
- Create MQTT proxies or Temporal workflows inside `src/index.ts`.
|
|
24
|
-
- Extend `src/config/project.config.extension.ts` with project-specific sections and run `pnpm run generate-config-schema
|
|
24
|
+
- Extend `src/config/project.config.extension.ts` with project-specific sections and run `pnpm run generate-config-schema` (reload your editor's TS server afterward if completions lag).
|
|
25
25
|
- Run `uns-kit configure-devops` to add the Azure DevOps pull-request tooling.
|
|
26
26
|
- Run `uns-kit configure-vscode` to copy workspace/launch configuration for VS Code.
|
|
27
27
|
- Run `uns-kit configure-codegen` to scaffold GraphQL code generation and UNS refresh scripts.
|