archicat 0.1.0 → 0.1.2
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 +10 -8
- package/dist/cli/index.mjs +1502 -18
- package/dist/src/index.cjs +112 -1
- package/dist/src/index.d.cts +15 -15
- package/dist/src/index.d.mts +15 -15
- package/dist/src/index.mjs +108 -1
- package/package.json +12 -9
package/README.md
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
# ArchiCat
|
|
1
|
+
# 🐈 ArchiCat
|
|
2
2
|
|
|
3
|
-
**M
|
|
3
|
+
**M² — Modular Mirroring for TypeScript.**
|
|
4
4
|
|
|
5
|
-
ArchiCat
|
|
5
|
+
ArchiCat keeps your TypeScript architecture clean, explicit, and enforceable.
|
|
6
|
+
It turns your dependency graph into real import boundaries, so your project structure is not just a convention.
|
|
6
7
|
|
|
7
|
-
TypeScript asks: **will this import resolve?**
|
|
8
|
+
TypeScript asks: **will this import resolve?**
|
|
8
9
|
ArchiCat asks: **should this import exist?**
|
|
9
10
|
|
|
10
11
|
```bash
|
|
@@ -169,19 +170,20 @@ export default defineArchicatConfig({
|
|
|
169
170
|
});
|
|
170
171
|
```
|
|
171
172
|
|
|
172
|
-
|
|
173
|
+
The generated `.archicat/tsconfig.json` is a composable TypeScript config fragment. Consumers own their own `tsconfig.json` and may compose it however they need. For example, with TypeScript 5+ multiple `extends`:
|
|
173
174
|
|
|
174
175
|
```json
|
|
175
176
|
{
|
|
176
|
-
"extends": "./.archicat/tsconfig.json",
|
|
177
|
+
"extends": ["../../tsconfig.node.json", "./.archicat/tsconfig.json"],
|
|
177
178
|
"compilerOptions": {
|
|
178
179
|
"rootDir": ".",
|
|
179
180
|
"outDir": "./dist"
|
|
180
|
-
}
|
|
181
|
+
},
|
|
182
|
+
"include": ["main.ts", "src", "test"]
|
|
181
183
|
}
|
|
182
184
|
```
|
|
183
185
|
|
|
184
|
-
User aliases belong in `archicat.config.ts
|
|
186
|
+
Archicat does not inspect or enforce the consumer `tsconfig.json`. User aliases that should be part of the generated Archicat layer belong in `archicat.config.ts`.
|
|
185
187
|
|
|
186
188
|
## Output
|
|
187
189
|
|