@kznlabs/labsui 0.1.10 → 0.1.12
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 +9 -5
- package/dist/index.js +212 -58
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -60,7 +60,9 @@ Run it again any time: existing files are kept.
|
|
|
60
60
|
Resolves dependencies through the registry (`data-table` brings `table`,
|
|
61
61
|
`checkbox`, `pagination`, …), writes each file under your alias folder and
|
|
62
62
|
installs the npm packages it imports. Existing files are kept unless you pass
|
|
63
|
-
`--overwrite
|
|
63
|
+
`--overwrite`; a kept dependency whose code differs from this version is
|
|
64
|
+
named, with the `labsui update` that brings it level, since the new item may
|
|
65
|
+
need it. If your alias isn't `@/`, imports are rewritten to match.
|
|
64
66
|
Components that live once in the root layout (`toast`, `confirm`) print the
|
|
65
67
|
line to add there. A mistyped name gets a suggestion: `buton` suggests `button`.
|
|
66
68
|
|
|
@@ -109,16 +111,18 @@ changes. `labsui.json` records which labsui version wrote each item, and
|
|
|
109
111
|
The base comes from JSR, which keeps every release's files. Offline, with a
|
|
110
112
|
hosted registry, or for items installed before versions were recorded,
|
|
111
113
|
edited files are left as they are. `labsui diff` lists installed items that
|
|
112
|
-
differ from this version
|
|
113
|
-
version's file
|
|
114
|
+
differ from this version, marking those that differ only in blank lines or
|
|
115
|
+
indentation; `labsui diff dialog` prints the patch from this version's file
|
|
116
|
+
to yours, or says `dialog` isn't installed.
|
|
114
117
|
|
|
115
118
|
### `doctor`
|
|
116
119
|
|
|
117
120
|
Checks the setup and prints a fix for each problem: React 19 and Tailwind v4,
|
|
118
121
|
the path alias and `labsui.json`, the stylesheet import, `MotionProvider` and
|
|
119
122
|
the theme script, `<Toaster />` and `<Confirmer />` mounted when installed,
|
|
120
|
-
missing npm packages
|
|
121
|
-
|
|
123
|
+
missing npm packages, and files your installed components import but the
|
|
124
|
+
project lacks. It also lists installed items that differ from this version,
|
|
125
|
+
your edits or an older install. Exits with 1 when something is
|
|
122
126
|
broken, so it can run in CI.
|
|
123
127
|
|
|
124
128
|
It reads your code, not a framework's conventions: it works the same in any
|