@theholocron/kyber 5.0.0-alpha.354 → 5.0.0-alpha.355
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/config.d.mts +7 -0
- package/dist/config.mjs +3 -2
- package/package.json +6 -6
package/dist/config.d.mts
CHANGED
|
@@ -33,6 +33,13 @@ interface ConfigSystemOptions<Raw, Resolved, Composed> {
|
|
|
33
33
|
* `.holocron/repo.*`. Needs `place` to do anything with them. Files not on the list are never read.
|
|
34
34
|
*/
|
|
35
35
|
areas?: readonly string[];
|
|
36
|
+
/**
|
|
37
|
+
* The areas of `areas` that a config in a subdirectory also reads from the repository root's directory (the
|
|
38
|
+
* nearest `.git`). Such an area reaches `place` as the config's own file with the root's as `root`, or as the
|
|
39
|
+
* root's file when the config has none; `place` decides how they combine. Default: none, so a config reads only
|
|
40
|
+
* the directory beside it.
|
|
41
|
+
*/
|
|
42
|
+
shared?: readonly string[];
|
|
36
43
|
/**
|
|
37
44
|
* Put the loaded areas into the config, called after the config file is loaded and before `derive`, only when
|
|
38
45
|
* `areas` is set. `areas` holds one entry per area that has a file (none when the directory is missing), and `raw`
|
package/dist/config.mjs
CHANGED
|
@@ -50,7 +50,7 @@ function composeFragments(strategies, args) {
|
|
|
50
50
|
* });
|
|
51
51
|
*/
|
|
52
52
|
function createConfigSystem(options) {
|
|
53
|
-
const { name, areas, place, derive, resolve, merge } = options;
|
|
53
|
+
const { name, areas, shared, place, derive, resolve, merge } = options;
|
|
54
54
|
return {
|
|
55
55
|
defineConfig: (config) => config,
|
|
56
56
|
async loadConfig(cwd) {
|
|
@@ -64,7 +64,8 @@ function createConfigSystem(options) {
|
|
|
64
64
|
const placed = await loadConfigDir({
|
|
65
65
|
cwd: dirname(found.filepath),
|
|
66
66
|
dir: `.${name}`,
|
|
67
|
-
areas
|
|
67
|
+
areas,
|
|
68
|
+
shared
|
|
68
69
|
});
|
|
69
70
|
found = {
|
|
70
71
|
...found,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/kyber",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.355",
|
|
4
4
|
"description": "The reusable parts of a command-line tool: terminal output, prompts, the interactive menu, the update notifier, safe handling of tokens, a test harness and the global flags.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -105,12 +105,12 @@
|
|
|
105
105
|
"typescript": "^5.9.3",
|
|
106
106
|
"vitest": "^5.0.5",
|
|
107
107
|
"yargs": "^18.1.0",
|
|
108
|
-
"@theholocron/
|
|
109
|
-
"@theholocron/
|
|
108
|
+
"@theholocron/datapad": "5.0.0-alpha.355",
|
|
109
|
+
"@theholocron/observability": "0.7.0-alpha.1",
|
|
110
110
|
"@theholocron/tsdown-config": "^8.9.0-alpha.8",
|
|
111
111
|
"@theholocron/vitest-config": "^8.9.0-alpha.8",
|
|
112
|
-
"@theholocron/
|
|
113
|
-
"@theholocron/
|
|
112
|
+
"@theholocron/eslint-config": "^8.9.0-alpha.8",
|
|
113
|
+
"@theholocron/tsconfig": "^8.9.0-alpha.8"
|
|
114
114
|
},
|
|
115
115
|
"peerDependencies": {
|
|
116
116
|
"@inquirer/prompts": "^8.0.0",
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
"dotenv": "^17.0.0",
|
|
122
122
|
"ora": "^9.0.0",
|
|
123
123
|
"yargs": "^18.0.0",
|
|
124
|
-
"@theholocron/datapad": "^5.0.0-alpha.
|
|
124
|
+
"@theholocron/datapad": "^5.0.0-alpha.355",
|
|
125
125
|
"@theholocron/observability": "^0.7.0-alpha.1"
|
|
126
126
|
},
|
|
127
127
|
"peerDependenciesMeta": {
|