treelay 0.1.0 → 0.2.0
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 +27 -4
- package/SPEC.md +40 -6
- package/dist/{chunk-QKQUPZVD.js → chunk-CP7GIVGA.js} +356 -16
- package/dist/chunk-CP7GIVGA.js.map +1 -0
- package/dist/cli.js +122 -41
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +174 -3
- package/dist/index.js +17 -1
- package/package.json +4 -2
- package/dist/chunk-QKQUPZVD.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -12,10 +12,12 @@ import {
|
|
|
12
12
|
MERGE_LABELS,
|
|
13
13
|
MergeConflictError,
|
|
14
14
|
MountError,
|
|
15
|
+
NotEjectableError,
|
|
15
16
|
NotImplementedError,
|
|
16
17
|
NpmResolveError,
|
|
17
18
|
STATE_DIR,
|
|
18
19
|
SelfCompileError,
|
|
20
|
+
WatchTargetError,
|
|
19
21
|
applyJsonPatch,
|
|
20
22
|
applyMergePatch,
|
|
21
23
|
applyPatch3Way,
|
|
@@ -36,6 +38,7 @@ import {
|
|
|
36
38
|
describeMismatches,
|
|
37
39
|
destExclusions,
|
|
38
40
|
desugarSuffix,
|
|
41
|
+
eject,
|
|
39
42
|
emptyLock,
|
|
40
43
|
enumerateLayer,
|
|
41
44
|
explain,
|
|
@@ -44,8 +47,11 @@ import {
|
|
|
44
47
|
extract,
|
|
45
48
|
fetchLayer,
|
|
46
49
|
formatDrift,
|
|
50
|
+
formatEject,
|
|
47
51
|
formatExplanation,
|
|
48
52
|
formatStatus,
|
|
53
|
+
formatValidation,
|
|
54
|
+
formatWatchEvent,
|
|
49
55
|
hasDrift,
|
|
50
56
|
hasState,
|
|
51
57
|
hashContent,
|
|
@@ -87,10 +93,12 @@ import {
|
|
|
87
93
|
summarizeLayers,
|
|
88
94
|
templateTarget,
|
|
89
95
|
update,
|
|
96
|
+
validate,
|
|
90
97
|
verifyIntegrity,
|
|
98
|
+
watch,
|
|
91
99
|
writeLock,
|
|
92
100
|
writeState
|
|
93
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-CP7GIVGA.js";
|
|
94
102
|
export {
|
|
95
103
|
ALWAYS_IGNORE,
|
|
96
104
|
CycleError,
|
|
@@ -105,10 +113,12 @@ export {
|
|
|
105
113
|
MERGE_LABELS,
|
|
106
114
|
MergeConflictError,
|
|
107
115
|
MountError,
|
|
116
|
+
NotEjectableError,
|
|
108
117
|
NotImplementedError,
|
|
109
118
|
NpmResolveError,
|
|
110
119
|
STATE_DIR,
|
|
111
120
|
SelfCompileError,
|
|
121
|
+
WatchTargetError,
|
|
112
122
|
applyJsonPatch,
|
|
113
123
|
applyMergePatch,
|
|
114
124
|
applyPatch3Way,
|
|
@@ -129,6 +139,7 @@ export {
|
|
|
129
139
|
describeMismatches,
|
|
130
140
|
destExclusions,
|
|
131
141
|
desugarSuffix,
|
|
142
|
+
eject,
|
|
132
143
|
emptyLock,
|
|
133
144
|
enumerateLayer,
|
|
134
145
|
explain,
|
|
@@ -137,8 +148,11 @@ export {
|
|
|
137
148
|
extract,
|
|
138
149
|
fetchLayer,
|
|
139
150
|
formatDrift,
|
|
151
|
+
formatEject,
|
|
140
152
|
formatExplanation,
|
|
141
153
|
formatStatus,
|
|
154
|
+
formatValidation,
|
|
155
|
+
formatWatchEvent,
|
|
142
156
|
hasDrift,
|
|
143
157
|
hasState,
|
|
144
158
|
hashContent,
|
|
@@ -180,7 +194,9 @@ export {
|
|
|
180
194
|
summarizeLayers,
|
|
181
195
|
templateTarget,
|
|
182
196
|
update,
|
|
197
|
+
validate,
|
|
183
198
|
verifyIntegrity,
|
|
199
|
+
watch,
|
|
184
200
|
writeLock,
|
|
185
201
|
writeState
|
|
186
202
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "treelay",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "An inheritance/composition system for directory trees — compose templates from parents and mixins, materialize them, and keep the output linked for two-way updates.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,9 +46,10 @@
|
|
|
46
46
|
"test:watch": "vitest"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
|
49
|
-
"node": ">=
|
|
49
|
+
"node": ">=20.19.0"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
+
"chokidar": "^5.0.0",
|
|
52
53
|
"commander": "^15",
|
|
53
54
|
"diff": "^9",
|
|
54
55
|
"fast-glob": "^3",
|
|
@@ -63,6 +64,7 @@
|
|
|
63
64
|
"devDependencies": {
|
|
64
65
|
"@types/node": "^26",
|
|
65
66
|
"@types/picomatch": "^4.0.3",
|
|
67
|
+
"@types/semver": "^7.7.1",
|
|
66
68
|
"tsup": "^8",
|
|
67
69
|
"typescript": "^6",
|
|
68
70
|
"vitest": "^4"
|