@patterkit/cli 0.1.4 → 0.1.6
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/cli.js +4 -7
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -192292,22 +192292,19 @@ function validateAuthoring(files, project, allIds, issues) {
|
|
|
192292
192292
|
}
|
|
192293
192293
|
for (const file of files) {
|
|
192294
192294
|
for (const [id, value] of Object.entries(file.writing ?? {})) {
|
|
192295
|
-
if (!allIds.has(id))
|
|
192295
|
+
if (!allIds.has(id)) continue;
|
|
192296
192296
|
if (!writingLadder.has(value)) {
|
|
192297
192297
|
issues.push({ code: "invalid-status-value", message: `writing status '${value}' on '${id}' is not in the project ladder`, id });
|
|
192298
192298
|
}
|
|
192299
192299
|
}
|
|
192300
192300
|
for (const [id, value] of Object.entries(file.recording ?? {})) {
|
|
192301
|
-
if (!allIds.has(id))
|
|
192301
|
+
if (!allIds.has(id)) continue;
|
|
192302
192302
|
if (!recordingLadder.has(value)) {
|
|
192303
192303
|
issues.push({ code: "invalid-status-value", message: `recording status '${value}' on '${id}' is not in the project ladder`, id });
|
|
192304
192304
|
}
|
|
192305
192305
|
}
|
|
192306
|
-
for (const id of Object.keys(file.cut ?? {})) {
|
|
192307
|
-
if (!allIds.has(id)) issues.push({ code: "unknown-status-id", message: `cut flag set on unknown id '${id}'`, id });
|
|
192308
|
-
}
|
|
192309
192306
|
for (const [id, lines] of Object.entries(file.documentation ?? {})) {
|
|
192310
|
-
if (!allIds.has(id))
|
|
192307
|
+
if (!allIds.has(id)) continue;
|
|
192311
192308
|
for (const line2 of lines) {
|
|
192312
192309
|
if (line2.type !== void 0 && !docClasses.has(line2.type)) {
|
|
192313
192310
|
issues.push({ code: "unknown-doc-class", message: `documentation class '${line2.type}' on '${id}' is not declared (project documentationClasses)`, id });
|
|
@@ -196612,8 +196609,8 @@ function applyLoc(loaded, catalog, opts = {}) {
|
|
|
196612
196609
|
const existing = findFile(loaded.localeFiles, loaded.locales, path);
|
|
196613
196610
|
const merged = { ...existing?.strings ?? {} };
|
|
196614
196611
|
for (const [id, text] of strings) {
|
|
196612
|
+
if (merged[id] !== text) updated++;
|
|
196615
196613
|
merged[id] = text;
|
|
196616
|
-
updated++;
|
|
196617
196614
|
}
|
|
196618
196615
|
const file = { schema: existing?.schema ?? "patter/strings@0", scene, locale, strings: merged };
|
|
196619
196616
|
writes.push({ path, content: canonicalStringify(file) });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patterkit/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "The `patter` CLI: validate, format, export, and play a Patter project.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"build:standalone:others": "node scripts/build-standalone.mjs --targets=linux-x64,linux-arm64,windows-x64"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@patterkit/core": "0.1.
|
|
33
|
-
"@patterkit/ops": "0.2.
|
|
32
|
+
"@patterkit/core": "0.1.5",
|
|
33
|
+
"@patterkit/ops": "0.2.2",
|
|
34
34
|
"@wildwinter/simple-vc-lib": "^0.2.0"
|
|
35
35
|
}
|
|
36
36
|
}
|