onsystem 0.6.0 → 0.8.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 +29 -22
- package/dist/cli.js +629 -221
- package/dist/{config-lbfW91qB.d.ts → config-kYGiD5oW.d.ts} +15 -0
- package/dist/{design-system-A3pRX3Ka.js → design-system-Dmcv7eHR.js} +2641 -331
- package/dist/eslint-worker.d.ts +1 -1
- package/dist/eslint-worker.js +3 -5
- package/dist/eslint.js +66 -5
- package/dist/index.d.ts +35 -3
- package/dist/index.js +2 -2
- package/dist/{stdio-CEChNFLR.js → stdio-MTS6QAgo.js} +241 -9
- package/dist/{workspace-CHvUwgz9.js → workspace-CM1RyqZA.js} +1 -1
- package/package.json +9 -9
- package/schema.json +1 -1
|
@@ -37,6 +37,13 @@ interface DesignSystemSource {
|
|
|
37
37
|
source: string;
|
|
38
38
|
components: string[];
|
|
39
39
|
imports: number;
|
|
40
|
+
/**
|
|
41
|
+
* The shadcn registry (`@signoff-ui`) whose code `npx shadcn add` copied into these files, as
|
|
42
|
+
* the `registries` of components.json name it: a read-only design system, after the others.
|
|
43
|
+
* Code that imports it is checked against its components, which are never suggested for a
|
|
44
|
+
* native element, and its own files are skipped like the others' are.
|
|
45
|
+
*/
|
|
46
|
+
registry?: string | undefined;
|
|
40
47
|
}
|
|
41
48
|
//#endregion
|
|
42
49
|
//#region src/types.d.ts
|
|
@@ -391,6 +398,12 @@ interface ResolvedConfig {
|
|
|
391
398
|
*/
|
|
392
399
|
designSystemExclude?: string[] | undefined;
|
|
393
400
|
tokens: TokenSourceConfig[];
|
|
401
|
+
/**
|
|
402
|
+
* `tokens` comes from zero config (detection or the default paths), not the config or
|
|
403
|
+
* `--tokens`: the stylesheets those files import are read too, and so are the ones in a
|
|
404
|
+
* shared Tailwind preset's workspace package that set the colors the config maps.
|
|
405
|
+
*/
|
|
406
|
+
tokensDetected?: boolean | undefined;
|
|
394
407
|
docs: string[];
|
|
395
408
|
tsconfig?: string | undefined;
|
|
396
409
|
importPath?: string | undefined;
|
|
@@ -418,6 +431,8 @@ interface ResolvedConfig {
|
|
|
418
431
|
libraryIds?: false | LibraryId[] | undefined;
|
|
419
432
|
/** Libraries the project depends on that `libraries` leaves out, so they are not read. */
|
|
420
433
|
librariesOff?: LibrarySource[] | undefined;
|
|
434
|
+
/** Component libraries the project depends on that onsystem does not read yet (Chakra UI). */
|
|
435
|
+
librariesUnread?: LibrarySource[] | undefined;
|
|
421
436
|
elements: Record<string, string>;
|
|
422
437
|
/** `check` lints the component files themselves, which it skips by default. */
|
|
423
438
|
includeDesignSystem: boolean;
|