@saykit/config 0.0.0-beta-20260726152813 → 0.0.0-beta-20260728002240
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/commands/index.cjs +2 -3
- package/dist/commands/index.d.cts +1 -1
- package/dist/commands/index.d.mts +1 -1
- package/dist/commands/index.mjs +2 -2
- package/dist/features/catalogue/index.cjs +3 -4
- package/dist/features/catalogue/index.d.cts +1 -2
- package/dist/features/catalogue/index.d.mts +1 -2
- package/dist/features/catalogue/index.mjs +3 -3
- package/dist/features/loader/index.cjs +1 -1
- package/dist/features/loader/index.d.cts +1 -2
- package/dist/features/loader/index.d.mts +1 -2
- package/dist/features/loader/index.mjs +1 -1
- package/dist/features/messages/index.cjs +17 -1
- package/dist/features/messages/index.mjs +17 -1
- package/dist/{hash-8It7TJpB.cjs → hash-51ce8YiG.cjs} +0 -1
- package/dist/index.cjs +0 -1
- package/dist/index.d.cts +3 -5
- package/dist/index.d.mts +3 -5
- package/dist/{loader-B1J2KBIy.cjs → loader-A1uS7qkK.cjs} +1 -2
- package/dist/{loader-DKjvWPLr.mjs → loader-DLyuZzF2.mjs} +1 -1
- package/dist/{shapes-Dw2fYtkm.d.cts → shapes-CRlXtss0.d.cts} +0 -1
- package/dist/{shapes-wpz_5Tnz.d.mts → shapes-CRlXtss0.d.mts} +0 -1
- package/dist/{storage-CqKPYfCR.mjs → storage-B6mn0s3V.mjs} +1 -1
- package/dist/{storage-C4rOvLGi.cjs → storage-DqhzA5H8.cjs} +1 -2
- package/package.json +4 -4
- /package/dist/{hash-DyC8GzMa.mjs → hash-DvzpieJD.mjs} +0 -0
package/dist/commands/index.cjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
require("../
|
|
3
|
-
const
|
|
4
|
-
const require_loader = require("../loader-B1J2KBIy.cjs");
|
|
2
|
+
const require_storage = require("../storage-DqhzA5H8.cjs");
|
|
3
|
+
const require_loader = require("../loader-A1uS7qkK.cjs");
|
|
5
4
|
let _commander_js_extra_typings = require("@commander-js/extra-typings");
|
|
6
5
|
let node_fs_promises = require("node:fs/promises");
|
|
7
6
|
let node_path = require("node:path");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export {}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export {}
|
package/dist/commands/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as mergeExtractedMessages, i as expandBucketOutputPath, n as writeCatalogueMessages, o as pruneLocaleMessages, t as readCatalogueMessages } from "../storage-
|
|
3
|
-
import { t as resolveConfig } from "../loader-
|
|
2
|
+
import { a as mergeExtractedMessages, i as expandBucketOutputPath, n as writeCatalogueMessages, o as pruneLocaleMessages, t as readCatalogueMessages } from "../storage-B6mn0s3V.mjs";
|
|
3
|
+
import { t as resolveConfig } from "../loader-DLyuZzF2.mjs";
|
|
4
4
|
import { Command, program } from "@commander-js/extra-typings";
|
|
5
5
|
import { access, glob, readFile, stat, watch } from "node:fs/promises";
|
|
6
6
|
import { join, relative } from "node:path";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../
|
|
3
|
-
const
|
|
4
|
-
const require_storage = require("../../storage-C4rOvLGi.cjs");
|
|
2
|
+
const require_hash = require("../../hash-51ce8YiG.cjs");
|
|
3
|
+
const require_storage = require("../../storage-DqhzA5H8.cjs");
|
|
5
4
|
let node_path = require("node:path");
|
|
6
5
|
//#region src/features/catalogue/record.ts
|
|
7
6
|
/**
|
|
@@ -13,7 +12,7 @@ function resolveFallbackChain(config, locale) {
|
|
|
13
12
|
const source = config.locales[0];
|
|
14
13
|
const configured = config.fallbackLocales?.[locale];
|
|
15
14
|
const fallbacks = configured ? Array.isArray(configured) ? configured : [configured] : [];
|
|
16
|
-
return Array.from(new Set([
|
|
15
|
+
return Array.from(/* @__PURE__ */ new Set([
|
|
17
16
|
locale,
|
|
18
17
|
...fallbacks,
|
|
19
18
|
source
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { a as Message, n as Config, t as Bucket } from "../../shapes-
|
|
2
|
-
|
|
1
|
+
import { a as Message, n as Config, t as Bucket } from "../../shapes-CRlXtss0.cjs";
|
|
3
2
|
//#region src/features/catalogue/merge.d.ts
|
|
4
3
|
declare function mergeExtractedMessages(messages: Message[]): {
|
|
5
4
|
message: string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { a as Message, n as Config, t as Bucket } from "../../shapes-
|
|
2
|
-
|
|
1
|
+
import { a as Message, n as Config, t as Bucket } from "../../shapes-CRlXtss0.mjs";
|
|
3
2
|
//#region src/features/catalogue/merge.d.ts
|
|
4
3
|
declare function mergeExtractedMessages(messages: Message[]): {
|
|
5
4
|
message: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as generateHash } from "../../hash-
|
|
2
|
-
import { a as mergeExtractedMessages, i as expandBucketOutputPath, n as writeCatalogueMessages, o as pruneLocaleMessages, r as declarationPathFor, t as readCatalogueMessages } from "../../storage-
|
|
1
|
+
import { t as generateHash } from "../../hash-DvzpieJD.mjs";
|
|
2
|
+
import { a as mergeExtractedMessages, i as expandBucketOutputPath, n as writeCatalogueMessages, o as pruneLocaleMessages, r as declarationPathFor, t as readCatalogueMessages } from "../../storage-B6mn0s3V.mjs";
|
|
3
3
|
import { resolve } from "node:path";
|
|
4
4
|
//#region src/features/catalogue/record.ts
|
|
5
5
|
/**
|
|
@@ -11,7 +11,7 @@ function resolveFallbackChain(config, locale) {
|
|
|
11
11
|
const source = config.locales[0];
|
|
12
12
|
const configured = config.fallbackLocales?.[locale];
|
|
13
13
|
const fallbacks = configured ? Array.isArray(configured) ? configured : [configured] : [];
|
|
14
|
-
return Array.from(new Set([
|
|
14
|
+
return Array.from(/* @__PURE__ */ new Set([
|
|
15
15
|
locale,
|
|
16
16
|
...fallbacks,
|
|
17
17
|
source
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as resolveConfig } from "../../loader-
|
|
1
|
+
import { t as resolveConfig } from "../../loader-DLyuZzF2.mjs";
|
|
2
2
|
export { resolveConfig };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_hash = require("../../hash-
|
|
2
|
+
const require_hash = require("../../hash-51ce8YiG.cjs");
|
|
3
3
|
//#region src/features/messages/identifier.ts
|
|
4
4
|
const AUTO_INCREMENT_IDENTIFIER = Symbol("auto-increment");
|
|
5
5
|
function assignSequenceIdentifiers(message, sequence = { current: 0 }) {
|
|
@@ -24,12 +24,15 @@ var Base = class {
|
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
var LiteralMessage = class extends Base {
|
|
27
|
+
text;
|
|
27
28
|
constructor(text) {
|
|
28
29
|
super();
|
|
29
30
|
this.text = text;
|
|
30
31
|
}
|
|
31
32
|
};
|
|
32
33
|
var ArgumentMessage = class extends Base {
|
|
34
|
+
identifier;
|
|
35
|
+
expression;
|
|
33
36
|
constructor(identifier, expression) {
|
|
34
37
|
super();
|
|
35
38
|
this.identifier = identifier;
|
|
@@ -37,6 +40,9 @@ var ArgumentMessage = class extends Base {
|
|
|
37
40
|
}
|
|
38
41
|
};
|
|
39
42
|
var ElementMessage = class extends Base {
|
|
43
|
+
identifier;
|
|
44
|
+
children;
|
|
45
|
+
expression;
|
|
40
46
|
constructor(identifier, children, expression) {
|
|
41
47
|
super();
|
|
42
48
|
this.identifier = identifier;
|
|
@@ -45,6 +51,10 @@ var ElementMessage = class extends Base {
|
|
|
45
51
|
}
|
|
46
52
|
};
|
|
47
53
|
var ChoiceMessage = class extends Base {
|
|
54
|
+
kind;
|
|
55
|
+
identifier;
|
|
56
|
+
branches;
|
|
57
|
+
expression;
|
|
48
58
|
constructor(kind, identifier, branches, expression) {
|
|
49
59
|
super();
|
|
50
60
|
this.kind = kind;
|
|
@@ -54,6 +64,12 @@ var ChoiceMessage = class extends Base {
|
|
|
54
64
|
}
|
|
55
65
|
};
|
|
56
66
|
var CompositeMessage = class extends Base {
|
|
67
|
+
descriptor;
|
|
68
|
+
comments;
|
|
69
|
+
references;
|
|
70
|
+
children;
|
|
71
|
+
accessor;
|
|
72
|
+
whitespace;
|
|
57
73
|
constructor(descriptor, comments, references, children, accessor, whitespace) {
|
|
58
74
|
super();
|
|
59
75
|
this.descriptor = descriptor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as generateHash } from "../../hash-
|
|
1
|
+
import { t as generateHash } from "../../hash-DvzpieJD.mjs";
|
|
2
2
|
//#region src/features/messages/identifier.ts
|
|
3
3
|
const AUTO_INCREMENT_IDENTIFIER = Symbol("auto-increment");
|
|
4
4
|
function assignSequenceIdentifiers(message, sequence = { current: 0 }) {
|
|
@@ -23,12 +23,15 @@ var Base = class {
|
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
var LiteralMessage = class extends Base {
|
|
26
|
+
text;
|
|
26
27
|
constructor(text) {
|
|
27
28
|
super();
|
|
28
29
|
this.text = text;
|
|
29
30
|
}
|
|
30
31
|
};
|
|
31
32
|
var ArgumentMessage = class extends Base {
|
|
33
|
+
identifier;
|
|
34
|
+
expression;
|
|
32
35
|
constructor(identifier, expression) {
|
|
33
36
|
super();
|
|
34
37
|
this.identifier = identifier;
|
|
@@ -36,6 +39,9 @@ var ArgumentMessage = class extends Base {
|
|
|
36
39
|
}
|
|
37
40
|
};
|
|
38
41
|
var ElementMessage = class extends Base {
|
|
42
|
+
identifier;
|
|
43
|
+
children;
|
|
44
|
+
expression;
|
|
39
45
|
constructor(identifier, children, expression) {
|
|
40
46
|
super();
|
|
41
47
|
this.identifier = identifier;
|
|
@@ -44,6 +50,10 @@ var ElementMessage = class extends Base {
|
|
|
44
50
|
}
|
|
45
51
|
};
|
|
46
52
|
var ChoiceMessage = class extends Base {
|
|
53
|
+
kind;
|
|
54
|
+
identifier;
|
|
55
|
+
branches;
|
|
56
|
+
expression;
|
|
47
57
|
constructor(kind, identifier, branches, expression) {
|
|
48
58
|
super();
|
|
49
59
|
this.kind = kind;
|
|
@@ -53,6 +63,12 @@ var ChoiceMessage = class extends Base {
|
|
|
53
63
|
}
|
|
54
64
|
};
|
|
55
65
|
var CompositeMessage = class extends Base {
|
|
66
|
+
descriptor;
|
|
67
|
+
comments;
|
|
68
|
+
references;
|
|
69
|
+
children;
|
|
70
|
+
accessor;
|
|
71
|
+
whitespace;
|
|
56
72
|
constructor(descriptor, comments, references, children, accessor, whitespace) {
|
|
57
73
|
super();
|
|
58
74
|
this.descriptor = descriptor;
|
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { a as Message, i as Formatter, n as Config, o as Transformer, r as DeclaredMessage, t as Bucket } from "./shapes-
|
|
1
|
+
import { a as Message, i as Formatter, n as Config, o as Transformer, r as DeclaredMessage, t as Bucket } from "./shapes-CRlXtss0.cjs";
|
|
2
2
|
import { input } from "zod";
|
|
3
|
-
import * as _$picomatch_lib_picomatch_js0 from "picomatch/lib/picomatch.js";
|
|
4
|
-
|
|
5
3
|
//#region src/index.d.ts
|
|
6
4
|
declare function defineConfig<C extends input<typeof Config>>(config: C): {
|
|
7
5
|
locales: [string, ...string[]];
|
|
@@ -16,7 +14,7 @@ declare function defineConfig<C extends input<typeof Config>>(config: C): {
|
|
|
16
14
|
}[];
|
|
17
15
|
match: (id: string) => boolean;
|
|
18
16
|
output: `${string}{locale}${string}.{extension}` & {
|
|
19
|
-
match:
|
|
17
|
+
match: import("picomatch/lib/picomatch.js").Matcher;
|
|
20
18
|
};
|
|
21
19
|
include: string[];
|
|
22
20
|
formatter: {
|
|
@@ -44,4 +42,4 @@ declare function defineConfig<C extends input<typeof Config>>(config: C): {
|
|
|
44
42
|
fallbackLocales?: Record<string, string | string[]> | undefined;
|
|
45
43
|
};
|
|
46
44
|
//#endregion
|
|
47
|
-
export { Bucket, Config, DeclaredMessage, Formatter, Message, Transformer, defineConfig };
|
|
45
|
+
export { type Bucket, type Config, type DeclaredMessage, type Formatter, type Message, type Transformer, defineConfig };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { a as Message, i as Formatter, n as Config, o as Transformer, r as DeclaredMessage, t as Bucket } from "./shapes-
|
|
1
|
+
import { a as Message, i as Formatter, n as Config, o as Transformer, r as DeclaredMessage, t as Bucket } from "./shapes-CRlXtss0.mjs";
|
|
2
2
|
import { input } from "zod";
|
|
3
|
-
import * as _$picomatch_lib_picomatch_js0 from "picomatch/lib/picomatch.js";
|
|
4
|
-
|
|
5
3
|
//#region src/index.d.ts
|
|
6
4
|
declare function defineConfig<C extends input<typeof Config>>(config: C): {
|
|
7
5
|
locales: [string, ...string[]];
|
|
@@ -16,7 +14,7 @@ declare function defineConfig<C extends input<typeof Config>>(config: C): {
|
|
|
16
14
|
}[];
|
|
17
15
|
match: (id: string) => boolean;
|
|
18
16
|
output: `${string}{locale}${string}.{extension}` & {
|
|
19
|
-
match:
|
|
17
|
+
match: import("picomatch/lib/picomatch.js").Matcher;
|
|
20
18
|
};
|
|
21
19
|
include: string[];
|
|
22
20
|
formatter: {
|
|
@@ -44,4 +42,4 @@ declare function defineConfig<C extends input<typeof Config>>(config: C): {
|
|
|
44
42
|
fallbackLocales?: Record<string, string | string[]> | undefined;
|
|
45
43
|
};
|
|
46
44
|
//#endregion
|
|
47
|
-
export { Bucket, Config, DeclaredMessage, Formatter, Message, Transformer, defineConfig };
|
|
45
|
+
export { type Bucket, type Config, type DeclaredMessage, type Formatter, type Message, type Transformer, defineConfig };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
require("./index.cjs");
|
|
2
1
|
let node_path = require("node:path");
|
|
3
2
|
let node_fs = require("node:fs");
|
|
4
3
|
let node_module = require("node:module");
|
|
@@ -31,7 +30,7 @@ function requireFresh(require, path) {
|
|
|
31
30
|
delete require.cache[resolved];
|
|
32
31
|
return module?.default ?? module;
|
|
33
32
|
}
|
|
34
|
-
const TYPESCRIPT = new Set([
|
|
33
|
+
const TYPESCRIPT = /* @__PURE__ */ new Set([
|
|
35
34
|
".ts",
|
|
36
35
|
".mts",
|
|
37
36
|
".cts"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as generateHash } from "./hash-
|
|
1
|
+
import { t as generateHash } from "./hash-DvzpieJD.mjs";
|
|
2
2
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
3
3
|
import { dirname, parse, resolve } from "node:path";
|
|
4
4
|
//#region src/features/catalogue/merge.ts
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
require("./
|
|
2
|
-
const require_hash = require("./hash-8It7TJpB.cjs");
|
|
1
|
+
const require_hash = require("./hash-51ce8YiG.cjs");
|
|
3
2
|
let node_fs_promises = require("node:fs/promises");
|
|
4
3
|
let node_path = require("node:path");
|
|
5
4
|
//#region src/features/catalogue/merge.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saykit/config",
|
|
3
|
-
"version": "0.0.0-beta-
|
|
3
|
+
"version": "0.0.0-beta-20260728002240",
|
|
4
4
|
"description": "CLI and configuration tooling for saykit",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -73,9 +73,9 @@
|
|
|
73
73
|
"provenance": true
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@commander-js/extra-typings": "^
|
|
77
|
-
"commander": "^
|
|
78
|
-
"js-sha256": "^0.
|
|
76
|
+
"@commander-js/extra-typings": "^15.0.0",
|
|
77
|
+
"commander": "^15.0.0",
|
|
78
|
+
"js-sha256": "^0.12.0",
|
|
79
79
|
"picomatch": "^4.0.5",
|
|
80
80
|
"zod": "^4.4.3"
|
|
81
81
|
},
|
|
File without changes
|