treelay 0.1.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.
Potentially problematic release.
This version of treelay might be problematic. Click here for more details.
- package/LICENSE +21 -0
- package/README.md +296 -0
- package/SPEC.md +920 -0
- package/dist/chunk-QKQUPZVD.js +2665 -0
- package/dist/chunk-QKQUPZVD.js.map +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +293 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.d.ts +1399 -0
- package/dist/index.js +187 -0
- package/dist/index.js.map +1 -0
- package/package.json +70 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ALWAYS_IGNORE,
|
|
3
|
+
CycleError,
|
|
4
|
+
GitFetchError,
|
|
5
|
+
InconsistentHierarchyError,
|
|
6
|
+
IntegrityError,
|
|
7
|
+
InvalidRefError,
|
|
8
|
+
LOCKFILE_NAME,
|
|
9
|
+
LOCKFILE_VERSION,
|
|
10
|
+
LockMissingError,
|
|
11
|
+
LockfileError,
|
|
12
|
+
MERGE_LABELS,
|
|
13
|
+
MergeConflictError,
|
|
14
|
+
MountError,
|
|
15
|
+
NotImplementedError,
|
|
16
|
+
NpmResolveError,
|
|
17
|
+
STATE_DIR,
|
|
18
|
+
SelfCompileError,
|
|
19
|
+
applyJsonPatch,
|
|
20
|
+
applyMergePatch,
|
|
21
|
+
applyPatch3Way,
|
|
22
|
+
blastRadius,
|
|
23
|
+
c3Linearize,
|
|
24
|
+
cacheRoot,
|
|
25
|
+
canonicalRef,
|
|
26
|
+
checkDrift,
|
|
27
|
+
classifyEntry,
|
|
28
|
+
commonAncestor,
|
|
29
|
+
compile,
|
|
30
|
+
composeFiles,
|
|
31
|
+
composeToMemory,
|
|
32
|
+
createEngine,
|
|
33
|
+
deepMerge,
|
|
34
|
+
defaultStrategy,
|
|
35
|
+
describeBlastRadius,
|
|
36
|
+
describeMismatches,
|
|
37
|
+
destExclusions,
|
|
38
|
+
desugarSuffix,
|
|
39
|
+
emptyLock,
|
|
40
|
+
enumerateLayer,
|
|
41
|
+
explain,
|
|
42
|
+
explainDest,
|
|
43
|
+
explainFile,
|
|
44
|
+
extract,
|
|
45
|
+
fetchLayer,
|
|
46
|
+
formatDrift,
|
|
47
|
+
formatExplanation,
|
|
48
|
+
formatStatus,
|
|
49
|
+
hasDrift,
|
|
50
|
+
hasState,
|
|
51
|
+
hashContent,
|
|
52
|
+
hashTree,
|
|
53
|
+
isCommitSha,
|
|
54
|
+
isLocalRef,
|
|
55
|
+
isSidecar,
|
|
56
|
+
listLayerFiles,
|
|
57
|
+
liveRevision,
|
|
58
|
+
loadManifest,
|
|
59
|
+
locationKey,
|
|
60
|
+
lockfilePath,
|
|
61
|
+
locksEqual,
|
|
62
|
+
matchesHash,
|
|
63
|
+
mergeStructured3,
|
|
64
|
+
mergeText3,
|
|
65
|
+
mergeVariableDecls,
|
|
66
|
+
mountTarget,
|
|
67
|
+
parseRef,
|
|
68
|
+
parseSidecar,
|
|
69
|
+
pinnedRef,
|
|
70
|
+
planUpdate,
|
|
71
|
+
promote,
|
|
72
|
+
readBaselineFile,
|
|
73
|
+
readLock,
|
|
74
|
+
readState,
|
|
75
|
+
renderString,
|
|
76
|
+
resolve,
|
|
77
|
+
resolveRef,
|
|
78
|
+
resolveValues,
|
|
79
|
+
roundTripVerify,
|
|
80
|
+
serializeLock,
|
|
81
|
+
sidecarTarget,
|
|
82
|
+
sourceOf,
|
|
83
|
+
statePaths,
|
|
84
|
+
status,
|
|
85
|
+
strategyFor,
|
|
86
|
+
summarize,
|
|
87
|
+
summarizeLayers,
|
|
88
|
+
templateTarget,
|
|
89
|
+
update,
|
|
90
|
+
verifyIntegrity,
|
|
91
|
+
writeLock,
|
|
92
|
+
writeState
|
|
93
|
+
} from "./chunk-QKQUPZVD.js";
|
|
94
|
+
export {
|
|
95
|
+
ALWAYS_IGNORE,
|
|
96
|
+
CycleError,
|
|
97
|
+
GitFetchError,
|
|
98
|
+
InconsistentHierarchyError,
|
|
99
|
+
IntegrityError,
|
|
100
|
+
InvalidRefError,
|
|
101
|
+
LOCKFILE_NAME,
|
|
102
|
+
LOCKFILE_VERSION,
|
|
103
|
+
LockMissingError,
|
|
104
|
+
LockfileError,
|
|
105
|
+
MERGE_LABELS,
|
|
106
|
+
MergeConflictError,
|
|
107
|
+
MountError,
|
|
108
|
+
NotImplementedError,
|
|
109
|
+
NpmResolveError,
|
|
110
|
+
STATE_DIR,
|
|
111
|
+
SelfCompileError,
|
|
112
|
+
applyJsonPatch,
|
|
113
|
+
applyMergePatch,
|
|
114
|
+
applyPatch3Way,
|
|
115
|
+
blastRadius,
|
|
116
|
+
c3Linearize,
|
|
117
|
+
cacheRoot,
|
|
118
|
+
canonicalRef,
|
|
119
|
+
checkDrift,
|
|
120
|
+
classifyEntry,
|
|
121
|
+
commonAncestor,
|
|
122
|
+
compile,
|
|
123
|
+
composeFiles,
|
|
124
|
+
composeToMemory,
|
|
125
|
+
createEngine,
|
|
126
|
+
deepMerge,
|
|
127
|
+
defaultStrategy,
|
|
128
|
+
describeBlastRadius,
|
|
129
|
+
describeMismatches,
|
|
130
|
+
destExclusions,
|
|
131
|
+
desugarSuffix,
|
|
132
|
+
emptyLock,
|
|
133
|
+
enumerateLayer,
|
|
134
|
+
explain,
|
|
135
|
+
explainDest,
|
|
136
|
+
explainFile,
|
|
137
|
+
extract,
|
|
138
|
+
fetchLayer,
|
|
139
|
+
formatDrift,
|
|
140
|
+
formatExplanation,
|
|
141
|
+
formatStatus,
|
|
142
|
+
hasDrift,
|
|
143
|
+
hasState,
|
|
144
|
+
hashContent,
|
|
145
|
+
hashTree,
|
|
146
|
+
isCommitSha,
|
|
147
|
+
isLocalRef,
|
|
148
|
+
isSidecar,
|
|
149
|
+
listLayerFiles,
|
|
150
|
+
liveRevision,
|
|
151
|
+
loadManifest,
|
|
152
|
+
locationKey,
|
|
153
|
+
lockfilePath,
|
|
154
|
+
locksEqual,
|
|
155
|
+
matchesHash,
|
|
156
|
+
mergeStructured3,
|
|
157
|
+
mergeText3,
|
|
158
|
+
mergeVariableDecls,
|
|
159
|
+
mountTarget,
|
|
160
|
+
parseRef,
|
|
161
|
+
parseSidecar,
|
|
162
|
+
pinnedRef,
|
|
163
|
+
planUpdate,
|
|
164
|
+
promote,
|
|
165
|
+
readBaselineFile,
|
|
166
|
+
readLock,
|
|
167
|
+
readState,
|
|
168
|
+
renderString,
|
|
169
|
+
resolve,
|
|
170
|
+
resolveRef,
|
|
171
|
+
resolveValues,
|
|
172
|
+
roundTripVerify,
|
|
173
|
+
serializeLock,
|
|
174
|
+
sidecarTarget,
|
|
175
|
+
sourceOf,
|
|
176
|
+
statePaths,
|
|
177
|
+
status,
|
|
178
|
+
strategyFor,
|
|
179
|
+
summarize,
|
|
180
|
+
summarizeLayers,
|
|
181
|
+
templateTarget,
|
|
182
|
+
update,
|
|
183
|
+
verifyIntegrity,
|
|
184
|
+
writeLock,
|
|
185
|
+
writeState
|
|
186
|
+
};
|
|
187
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "treelay",
|
|
3
|
+
"version": "0.1.0",
|
|
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
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "Aaron Moffatt <contact@aaronmoffatt.com>",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/amoffatt/treelay.git"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://github.com/amoffatt/treelay#readme",
|
|
13
|
+
"bugs": "https://github.com/amoffatt/treelay/issues",
|
|
14
|
+
"keywords": [
|
|
15
|
+
"template",
|
|
16
|
+
"scaffolding",
|
|
17
|
+
"inheritance",
|
|
18
|
+
"composition",
|
|
19
|
+
"overlay",
|
|
20
|
+
"monorepo",
|
|
21
|
+
"boilerplate",
|
|
22
|
+
"codegen"
|
|
23
|
+
],
|
|
24
|
+
"bin": {
|
|
25
|
+
"treelay": "./dist/cli.js"
|
|
26
|
+
},
|
|
27
|
+
"main": "./dist/index.js",
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"exports": {
|
|
30
|
+
".": {
|
|
31
|
+
"types": "./dist/index.d.ts",
|
|
32
|
+
"import": "./dist/index.js"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"dist",
|
|
37
|
+
"README.md",
|
|
38
|
+
"SPEC.md"
|
|
39
|
+
],
|
|
40
|
+
"scripts": {
|
|
41
|
+
"build": "tsup",
|
|
42
|
+
"prepublishOnly": "npm run typecheck && npm run test && npm run build",
|
|
43
|
+
"dev": "tsup --watch",
|
|
44
|
+
"typecheck": "tsc --noEmit",
|
|
45
|
+
"test": "vitest run",
|
|
46
|
+
"test:watch": "vitest"
|
|
47
|
+
},
|
|
48
|
+
"engines": {
|
|
49
|
+
"node": ">=18"
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"commander": "^15",
|
|
53
|
+
"diff": "^9",
|
|
54
|
+
"fast-glob": "^3",
|
|
55
|
+
"fast-json-patch": "^3",
|
|
56
|
+
"json-merge-patch": "^1",
|
|
57
|
+
"liquidjs": "^10",
|
|
58
|
+
"node-diff3": "^3",
|
|
59
|
+
"picomatch": "^4",
|
|
60
|
+
"semver": "^7.8.5",
|
|
61
|
+
"yaml": "^2"
|
|
62
|
+
},
|
|
63
|
+
"devDependencies": {
|
|
64
|
+
"@types/node": "^26",
|
|
65
|
+
"@types/picomatch": "^4.0.3",
|
|
66
|
+
"tsup": "^8",
|
|
67
|
+
"typescript": "^6",
|
|
68
|
+
"vitest": "^4"
|
|
69
|
+
}
|
|
70
|
+
}
|