@alveolus/arch 0.0.0-stage → 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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Jérémy Fleury
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,41 @@
1
- # Temporary Holding Version
1
+ # @alveolus/arch
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Architecture checks for a Domain-Driven Design project in TypeScript: bounded contexts stay
4
+ closed, the domain stays pure, every class stays in its place, and the drift is reported before
5
+ the review.
6
+
7
+ ```sh
8
+ pnpm add -D @alveolus/arch
9
+ ```
10
+
11
+ ```ts
12
+ // alveolus.config.ts
13
+ import { defineConfig } from "@alveolus/arch";
14
+
15
+ export default defineConfig({
16
+ boundedContexts: { catalog: "catalog", ordering: "ordering" },
17
+ root: "src",
18
+ });
19
+ ```
20
+
21
+ ```sh
22
+ npx alveolus arch check
23
+ ```
24
+
25
+ ```
26
+ src/ordering/domain/aggregates/order.aggregate.ts
27
+ 12 error layers/no-impure-domain: The domain reads the system clock with
28
+ Date.now: receive the time from the Clock port.
29
+
30
+ 1 error in 142 files
31
+ ```
32
+
33
+ Seventeen rules, each with a page that says what it reports, why, how to fix it and what it
34
+ cannot see. A baseline for existing projects, `error` / `warn` / `info` levels, disable comments
35
+ with a reason, JSON and SARIF output for the pull request.
36
+
37
+ - [Rules](https://alveolus.dev/rules/)
38
+ - [Getting started](https://alveolus.dev/guide/getting-started)
39
+ - [Adopt it on an existing project](https://alveolus.dev/guide/existing-project)
40
+
41
+ Node.js 24 or later. MIT.
package/dist/bin.d.mts ADDED
@@ -0,0 +1 @@
1
+ export {}
package/dist/bin.mjs ADDED
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env node
2
+ import { t as Cli } from "./cli-CwPCGjDg.mjs";
3
+ //#region src/bin.ts
4
+ const cli = new Cli(process.stdout, process.stderr, process.cwd(), process.stdout.isTTY);
5
+ process.exitCode = await cli.run(process.argv.slice(2));
6
+ //#endregion
7
+ export {};
8
+
9
+ //# sourceMappingURL=bin.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bin.mjs","names":[],"sources":["../src/bin.ts"],"sourcesContent":["#!/usr/bin/env node\nimport { Cli } from \"./cli/index.ts\";\n\nconst cli = new Cli(process.stdout, process.stderr, process.cwd(), process.stdout.isTTY);\nprocess.exitCode = await cli.run(process.argv.slice(2));\n"],"mappings":";;;AAGA,MAAM,MAAM,IAAI,IAAI,QAAQ,QAAQ,QAAQ,QAAQ,QAAQ,IAAI,GAAG,QAAQ,OAAO,KAAK;AACvF,QAAQ,WAAW,MAAM,IAAI,IAAI,QAAQ,KAAK,MAAM,CAAC,CAAC"}