@dalexto/lexsys-cli 0.0.2 → 0.0.4
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 +8 -15
- package/dist/commands/reset.d.ts +1 -0
- package/dist/config/config.d.ts +1 -1
- package/dist/config/installed.d.ts +6 -0
- package/dist/index.js +557 -477
- package/dist/install/component-drift.d.ts +4 -0
- package/dist/install/installer.d.ts +1 -1
- package/dist/install/results.d.ts +10 -0
- package/dist/install/target.d.ts +0 -1
- package/dist/install/update-engine.d.ts +3 -1
- package/dist/registry/closure.d.ts +1 -1
- package/dist/scaffold/scaffold-helpers.d.ts +4 -0
- package/dist/{core → utils}/fs.d.ts +0 -1
- package/dist/utils/prompt.d.ts +9 -0
- package/package.json +2 -2
- package/dist/install/uninstall-results.d.ts +0 -10
- package/dist/utils/version.d.ts +0 -2
- /package/dist/{core → utils}/backup.d.ts +0 -0
- /package/dist/{core → utils}/cli-error.d.ts +0 -0
- /package/dist/{core → utils}/context.d.ts +0 -0
- /package/dist/{core → utils}/flags.d.ts +0 -0
- /package/dist/{core → utils}/hash.d.ts +0 -0
package/README.md
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
**Source of truth for:** Package role, command surface, core module boundaries
|
|
6
6
|
**Full CLI reference:** [docs/reference/cli/CLI.md](../../docs/reference/cli/CLI.md)
|
|
7
7
|
**Verified against:** `packages/cli/src/`
|
|
8
|
+
**Last reviewed:** 2026-05-30
|
|
8
9
|
|
|
9
10
|
---
|
|
10
11
|
|
|
@@ -50,8 +51,9 @@ Installed via `npm install -g lexsys` or run directly with `pnpm exec lexsys`.
|
|
|
50
51
|
| `lexsys init next [directory]` | Scaffold a new Next.js App Router consumer (pinned Next.js 15.3.3) |
|
|
51
52
|
| `lexsys add <component>` | Install one or more components into the consumer project |
|
|
52
53
|
| `lexsys update [component]` | Update installed components; `--sync`, `--utilities`, `--styles`, `--force` |
|
|
54
|
+
| `lexsys reset [component]` | Restore components from registry templates (backup + overwrite) |
|
|
53
55
|
| `lexsys list` | List available registry components |
|
|
54
|
-
| `lexsys status` | Show installed
|
|
56
|
+
| `lexsys status` | Show installed components and template drift vs registry |
|
|
55
57
|
| `lexsys doctor` | Check project health and config validity |
|
|
56
58
|
| `lexsys config` | Read or modify `lexsys.config.json` |
|
|
57
59
|
| `lexsys registry` | Inspect the active registry source |
|
|
@@ -69,20 +71,11 @@ Installed via `npm install -g lexsys` or run directly with `pnpm exec lexsys`.
|
|
|
69
71
|
|
|
70
72
|
---
|
|
71
73
|
|
|
72
|
-
##
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
| `core/installer.ts` | File copy, conflict detection, idempotent installs |
|
|
78
|
-
| `core/registry-provider.ts` | Selects local vs remote registry source |
|
|
79
|
-
| `core/registry-resolver.ts` | Resolves registry items, utilities, and styles from active registry |
|
|
80
|
-
| `core/tailwind-setup.ts` | Detects and wires Tailwind v4 CSS entrypoint |
|
|
81
|
-
| `core/vite-scaffold.ts` | Detects and patches Vite config for Tailwind plugin |
|
|
82
|
-
| `core/package-manager.ts` | Detects npm/pnpm/yarn and runs installs |
|
|
83
|
-
| `core/context.ts` | Process-level `cwd` override via `--cwd` flag |
|
|
84
|
-
| `core/flags.ts` | Shared flag parsing utilities |
|
|
85
|
-
| `core/cli-error.ts` | Typed CLI error class and top-level error handler |
|
|
74
|
+
## Source layout
|
|
75
|
+
|
|
76
|
+
Domain modules under `packages/cli/src/`: `config/`, `install/`, `registry/`,
|
|
77
|
+
`commands/`, `scaffold/`, `utils/`. Command behavior and config schema:
|
|
78
|
+
[docs/reference/cli/CLI.md](../../docs/reference/cli/CLI.md).
|
|
86
79
|
|
|
87
80
|
---
|
|
88
81
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const runReset: (args: string[]) => Promise<void>;
|
package/dist/config/config.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export interface LexsysConfig {
|
|
|
15
15
|
paths: LexsysPathsConfig;
|
|
16
16
|
aliases: LexsysAliasesConfig;
|
|
17
17
|
tailwind: LexsysTailwindConfig;
|
|
18
|
-
installed?:
|
|
18
|
+
installed?: string[];
|
|
19
19
|
registryUrl?: string | null;
|
|
20
20
|
}
|
|
21
21
|
export interface LexsysTailwindConfig {
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const isLegacyInstalledRecord: (value: unknown) => boolean;
|
|
2
|
+
export declare const normalizeInstalled: (value: unknown) => string[];
|
|
3
|
+
export declare const isInstalled: (installed: string[], name: string) => boolean;
|
|
4
|
+
export declare const addInstalled: (installed: string[], itemName: string) => string[];
|
|
5
|
+
export declare const removeInstalled: (installed: string[], itemName: string) => string[];
|
|
6
|
+
export declare const findInstalledKey: (installed: string[], name: string) => string | undefined;
|