@mnci/cli 4.3.3 → 4.4.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 CHANGED
@@ -34,7 +34,7 @@ plays (`.use-case`, `.client`, `.repository`, `.algorithm`, `.validator`,
34
34
 
35
35
  ```
36
36
  src/
37
- cli.handler.ts the CLI transport — decodes argv, calls one use case
37
+ main.ts the CLI transport — decodes argv, calls one use case
38
38
  workspace-overlay/ the config files mnci owns and rewrites
39
39
  workspace-creation/ mnci new, and the interactive wizard
40
40
  workspace-upgrade/ mnci upgrade
@@ -49,9 +49,14 @@ src/
49
49
  cli-version/ the update check
50
50
  ```
51
51
 
52
- The dependency graph is acyclic and flows one way: `cli.handler` → the command
52
+ The dependency graph is acyclic and flows one way: `main` → the command
53
53
  slices → the infrastructure slices → `file-system` as a leaf. That is checked,
54
- not assumed.
54
+ not assumed — and now enforced: the root `eslint.config.mjs` turns on
55
+ `@mnci/eslint-config`'s `verticalSlices` rules for `packages/cli/src`, so a
56
+ deep sibling import, a file without a role suffix, a nested subfeature or a
57
+ cycle between slices fails `npm run lint` rather than needing someone to
58
+ re-run the checks by hand. It is scoped to this package deliberately; the
59
+ config file says which packages were measured and why they are excluded.
55
60
 
56
61
  ### Exceptions, and when they go away
57
62
 
package/dist/cli.js CHANGED
@@ -28,13 +28,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  ));
29
29
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
30
 
31
- // src/cli.handler.ts
32
- var cli_handler_exports = {};
33
- __export(cli_handler_exports, {
31
+ // src/main.ts
32
+ var main_exports = {};
33
+ __export(main_exports, {
34
34
  buildProgram: () => buildProgram,
35
35
  main: () => main
36
36
  });
37
- module.exports = __toCommonJS(cli_handler_exports);
37
+ module.exports = __toCommonJS(main_exports);
38
38
  var import_commander = require("commander");
39
39
 
40
40
  // src/project-scaffolding/add-project.use-case.ts
@@ -4993,7 +4993,7 @@ function readCliVersion(packageDirectory) {
4993
4993
  }
4994
4994
  }
4995
4995
 
4996
- // src/cli.handler.ts
4996
+ // src/main.ts
4997
4997
  function buildProgram(cliVersion) {
4998
4998
  const program = new import_commander.Command();
4999
4999
  program.name("mnci").description("MoNecromanCI \u2014 a thin CLI over official Nx plugins").version(cliVersion, "-v, --version", "display the version");