@uns-kit/cli 0.0.49 → 0.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.
package/dist/index.js
CHANGED
|
@@ -476,11 +476,16 @@ async function configureCodegen(targetPath) {
|
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
478
|
const scripts = (pkg.scripts ??= {});
|
|
479
|
-
if (!scripts
|
|
480
|
-
scripts
|
|
479
|
+
if (!scripts["generate-codegen"]) {
|
|
480
|
+
scripts["generate-codegen"] = "graphql-code-generator --config codegen.ts";
|
|
481
481
|
pkgChanged = true;
|
|
482
482
|
}
|
|
483
|
-
if (!scripts["
|
|
483
|
+
if (!scripts["generate-uns-topics-tags"]) {
|
|
484
|
+
scripts["generate-uns-topics-tags"] = "node ./node_modules/@uns-kit/core/dist/tools/refresh-uns.js";
|
|
485
|
+
pkgChanged = true;
|
|
486
|
+
}
|
|
487
|
+
// Preserve legacy name if it already exists; otherwise, prefer the new name.
|
|
488
|
+
if (!scripts["refresh-uns"] && !scripts["generate-uns-topics-tags"]) {
|
|
484
489
|
scripts["refresh-uns"] = "node ./node_modules/@uns-kit/core/dist/tools/refresh-uns.js";
|
|
485
490
|
pkgChanged = true;
|
|
486
491
|
}
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@ pnpm run dev # start the local development loop
|
|
|
11
11
|
pnpm run build # emit dist/ output
|
|
12
12
|
pnpm run start # run the compiled entrypoint
|
|
13
13
|
pnpm run generate-config-schema # regenerate config.schema.json and AppConfig augmentations
|
|
14
|
-
pnpm run codegen # regenerate typed GraphQL operations (after configure-codegen)
|
|
14
|
+
pnpm run generate-codegen # regenerate typed GraphQL operations (after configure-codegen)
|
|
15
15
|
pnpm run generate-uns-topics-tags # rebuild UNS topics/tags from the live schema
|
|
16
16
|
pnpm run generate-uns-dictionary # generate typed object/attribute dictionary from uns-dictionary.json
|
|
17
17
|
pnpm run generate-uns-measurements # generate typed measurement units from uns-measurements.json
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"dev": "tsx watch src/index.ts",
|
|
25
25
|
"start": "node dist/index.js",
|
|
26
26
|
"generate-config-schema": "node ./node_modules/@uns-kit/core/dist/tools/generate-config-schema.js",
|
|
27
|
+
"generate-codegen": "graphql-code-generator --config codegen.ts",
|
|
27
28
|
"generate-uns-topics-tags": "node ./node_modules/@uns-kit/core/dist/tools/refresh-uns.js",
|
|
28
29
|
"generate-uns-dictionary": "node ./node_modules/@uns-kit/core/dist/tools/generate-uns-dictionary.js --input uns-dictionary.json --output src/uns/uns-dictionary.generated.ts",
|
|
29
30
|
"generate-uns-measurements": "node ./node_modules/@uns-kit/core/dist/tools/generate-uns-measurements.js --input uns-measurements.json --output src/uns/uns-measurements.generated.ts",
|