design-parity 0.1.8 → 0.1.10

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.
@@ -1,12 +1,17 @@
1
1
  #!/usr/bin/env node
2
2
  // `npx design-parity <subcommand> …` — the no-checkout entrypoint. A thin
3
- // launcher: it dispatches on the first arg to the matching @design-parity/action
4
- // CLI, which reads process.argv itself and sets the exit code. All the logic
5
- // lives in the orchestrator package; this package exists only to own the
6
- // `design-parity` name on the registry so `npx design-parity` works.
3
+ // launcher that dispatches on the first arg to the matching @design-parity/action
4
+ // CLI. All the logic lives in the orchestrator package; this package exists only
5
+ // to own the `design-parity` name on the registry so `npx design-parity` works.
7
6
  // reverse → the design→code lookup; anything else → a parity run.
7
+ //
8
+ // `run` exports `main` and we invoke it explicitly: importing the module does
9
+ // NOT self-run it (its `import.meta.url === argv[1]` guard is false when loaded
10
+ // through this launcher), so calling `main()` is what actually executes the
11
+ // parity run and sets the exit code. `reverse` self-executes on import.
8
12
  if (process.argv[2] === "reverse") {
9
13
  await import("@design-parity/action/reverse");
10
14
  } else {
11
- await import("@design-parity/action/run");
15
+ const { main } = await import("@design-parity/action/run");
16
+ process.exit(await main());
12
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "design-parity",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "Top-level CLI for design-parity: run a parity check with no checkout via `npx design-parity run …`. A thin launcher over @design-parity/action; re-exports its programmatic API too.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -18,7 +18,7 @@
18
18
  "design-parity": "./bin/design-parity.mjs"
19
19
  },
20
20
  "dependencies": {
21
- "@design-parity/action": "^0.1.8"
21
+ "@design-parity/action": "^0.1.10"
22
22
  },
23
23
  "repository": {
24
24
  "type": "git",