@soroush.design/cli 0.2.0-alpha.2 → 0.2.0-alpha.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.
Files changed (184) hide show
  1. package/README.md +9 -112
  2. package/dist/bin.mjs +1 -1
  3. package/dist/index.d.mts +14 -3
  4. package/dist/index.mjs +1 -1
  5. package/dist/{io-uDtjQuG6.mjs → io-C_8_JerZ.mjs} +579 -643
  6. package/package.json +26 -5
  7. package/templates/astro/js/base/README.md +93 -0
  8. package/templates/astro/js/base/_gitignore +5 -0
  9. package/templates/astro/js/base/astro.config.mjs +23 -0
  10. package/templates/astro/js/base/src/components/About.jsx +24 -0
  11. package/templates/astro/js/base/src/components/Counter.jsx +26 -0
  12. package/templates/astro/js/base/src/components/Greeting.jsx +60 -0
  13. package/templates/astro/js/base/src/components/Header.jsx +99 -0
  14. package/templates/astro/js/base/src/components/Home.jsx +32 -0
  15. package/templates/astro/js/base/src/components/Home.test.jsx +39 -0
  16. package/templates/astro/js/base/src/components/NotFound.jsx +17 -0
  17. package/templates/astro/js/base/src/data/api.js +84 -0
  18. package/templates/astro/js/base/src/layouts/Layout.astro +52 -0
  19. package/templates/astro/js/base/src/pages/404.astro +12 -0
  20. package/templates/astro/js/base/src/pages/about.astro +12 -0
  21. package/templates/astro/js/base/src/pages/index.astro +23 -0
  22. package/templates/astro/js/base/src/theme/Island.jsx +89 -0
  23. package/templates/astro/js/base/src/theme/scheme.js +32 -0
  24. package/templates/astro/js/base/vitest.config.js +12 -0
  25. package/templates/astro/js/sample-data/src/components/ItemDetails.jsx +64 -0
  26. package/templates/astro/js/sample-data/src/components/ItemList.jsx +100 -0
  27. package/templates/astro/js/sample-data/src/components/StatusChip.jsx +8 -0
  28. package/templates/astro/js/sample-data/src/data/items.js +65 -0
  29. package/templates/astro/js/sample-data/src/pages/items/[id].astro +37 -0
  30. package/templates/astro/js/sample-data/src/pages/items/index.astro +20 -0
  31. package/templates/astro/js/with/jotai/src/components/Counter.jsx +26 -0
  32. package/templates/astro/js/with/jotai/src/state/counter.js +4 -0
  33. package/templates/astro/js/with/msw/_env +3 -0
  34. package/templates/astro/js/with/msw/src/mocks/browser.js +5 -0
  35. package/templates/astro/js/with/msw/src/mocks/handlers.js +24 -0
  36. package/templates/astro/js/with/msw/src/mocks/server.js +5 -0
  37. package/templates/astro/js/with/msw/src/mocks/setupTests.js +7 -0
  38. package/templates/astro/js/with/msw/src/mocks/start.js +14 -0
  39. package/templates/astro/js/with/react-hook-form/src/components/Form.jsx +313 -0
  40. package/templates/astro/js/with/react-hook-form/src/pages/form.astro +8 -0
  41. package/templates/astro/js/with/redux-toolkit/src/components/Counter.jsx +27 -0
  42. package/templates/astro/js/with/redux-toolkit/src/state/store.js +18 -0
  43. package/templates/astro/js/with/tanstack-query/src/data/queryClient.js +13 -0
  44. package/templates/astro/js/with/zustand/src/components/Counter.jsx +24 -0
  45. package/templates/astro/js/with/zustand/src/state/counter.js +14 -0
  46. package/templates/astro/ts/base/README.md +93 -0
  47. package/templates/astro/ts/base/_gitignore +5 -0
  48. package/templates/astro/ts/base/astro.config.mjs +23 -0
  49. package/templates/astro/ts/base/src/components/About.tsx +24 -0
  50. package/templates/astro/ts/base/src/components/Counter.tsx +26 -0
  51. package/templates/astro/ts/base/src/components/Greeting.tsx +61 -0
  52. package/templates/astro/ts/base/src/components/Header.tsx +99 -0
  53. package/templates/astro/ts/base/src/components/Home.test.tsx +39 -0
  54. package/templates/astro/ts/base/src/components/Home.tsx +33 -0
  55. package/templates/astro/ts/base/src/components/NotFound.tsx +17 -0
  56. package/templates/astro/ts/base/src/data/api.ts +92 -0
  57. package/templates/astro/ts/base/src/layouts/Layout.astro +52 -0
  58. package/templates/astro/ts/base/src/pages/404.astro +12 -0
  59. package/templates/astro/ts/base/src/pages/about.astro +12 -0
  60. package/templates/astro/ts/base/src/pages/index.astro +23 -0
  61. package/templates/astro/ts/base/src/theme/Island.tsx +90 -0
  62. package/templates/astro/ts/base/src/theme/scheme.ts +34 -0
  63. package/templates/astro/ts/base/tsconfig.json +9 -0
  64. package/templates/astro/ts/base/vitest.config.ts +12 -0
  65. package/templates/astro/ts/sample-data/src/components/ItemDetails.tsx +65 -0
  66. package/templates/astro/ts/sample-data/src/components/ItemList.tsx +109 -0
  67. package/templates/astro/ts/sample-data/src/components/StatusChip.tsx +9 -0
  68. package/templates/astro/ts/sample-data/src/data/items.ts +71 -0
  69. package/templates/astro/ts/sample-data/src/pages/items/[id].astro +39 -0
  70. package/templates/astro/ts/sample-data/src/pages/items/index.astro +20 -0
  71. package/templates/astro/ts/with/jotai/src/components/Counter.tsx +26 -0
  72. package/templates/astro/ts/with/jotai/src/state/counter.ts +4 -0
  73. package/templates/astro/ts/with/msw/_env +3 -0
  74. package/templates/astro/ts/with/msw/src/mocks/browser.ts +5 -0
  75. package/templates/astro/ts/with/msw/src/mocks/handlers.ts +24 -0
  76. package/templates/astro/ts/with/msw/src/mocks/server.ts +5 -0
  77. package/templates/astro/ts/with/msw/src/mocks/setupTests.ts +7 -0
  78. package/templates/astro/ts/with/msw/src/mocks/start.ts +14 -0
  79. package/templates/astro/ts/with/react-hook-form/src/components/Form.tsx +317 -0
  80. package/templates/astro/ts/with/react-hook-form/src/pages/form.astro +8 -0
  81. package/templates/astro/ts/with/redux-toolkit/src/components/Counter.tsx +27 -0
  82. package/templates/astro/ts/with/redux-toolkit/src/state/store.ts +19 -0
  83. package/templates/astro/ts/with/tanstack-query/src/data/queryClient.ts +13 -0
  84. package/templates/astro/ts/with/zustand/src/components/Counter.tsx +24 -0
  85. package/templates/astro/ts/with/zustand/src/state/counter.ts +19 -0
  86. package/templates/templates.md +66 -0
  87. package/templates/vike/js/base/README.md +87 -0
  88. package/templates/vike/js/base/_gitignore +4 -0
  89. package/templates/vike/js/base/src/data/api.js +76 -0
  90. package/templates/vike/js/base/src/pages/+Layout.jsx +183 -0
  91. package/templates/vike/js/base/src/pages/+config.js +12 -0
  92. package/templates/vike/js/base/src/pages/+onRenderClient.jsx +39 -0
  93. package/templates/vike/js/base/src/pages/+onRenderHtml.jsx +27 -0
  94. package/templates/vike/js/base/src/pages/PageShell.jsx +47 -0
  95. package/templates/vike/js/base/src/pages/_error/+Page.jsx +14 -0
  96. package/templates/vike/js/base/src/pages/about/+Page.jsx +14 -0
  97. package/templates/vike/js/base/src/pages/index/+Page.jsx +33 -0
  98. package/templates/vike/js/base/src/pages/index/Counter.jsx +20 -0
  99. package/templates/vike/js/base/src/pages/index/Greeting.jsx +48 -0
  100. package/templates/vike/js/base/src/pages/index/Page.test.jsx +67 -0
  101. package/templates/vike/js/base/src/pages/usePageContext.jsx +20 -0
  102. package/templates/vike/js/base/vite.config.js +14 -0
  103. package/templates/vike/js/base/vitest.config.js +13 -0
  104. package/templates/vike/js/sample-data/src/data/items.js +58 -0
  105. package/templates/vike/js/sample-data/src/pages/items/+Page.jsx +49 -0
  106. package/templates/vike/js/sample-data/src/pages/items/+data.js +26 -0
  107. package/templates/vike/js/sample-data/src/pages/items/@id/+Page.jsx +40 -0
  108. package/templates/vike/js/sample-data/src/pages/items/@id/+data.js +33 -0
  109. package/templates/vike/js/sample-data/src/pages/items/@id/+onBeforePrerenderStart.js +8 -0
  110. package/templates/vike/js/sample-data/src/pages/items/StatusChip.jsx +8 -0
  111. package/templates/vike/js/spa/src/pages/+config.js +12 -0
  112. package/templates/vike/js/spa/src/pages/+onRenderClient.jsx +25 -0
  113. package/templates/vike/js/spa/src/pages/+onRenderHtml.jsx +16 -0
  114. package/templates/vike/js/spa/src/pages/about/+Page.jsx +14 -0
  115. package/templates/vike/js/ssg/src/pages/+config.js +11 -0
  116. package/templates/vike/js/ssg/src/pages/about/+Page.jsx +13 -0
  117. package/templates/vike/js/ssr/src/pages/+config.js +12 -0
  118. package/templates/vike/js/ssr/src/pages/+onRenderHtml.jsx +27 -0
  119. package/templates/vike/js/ssr/src/pages/about/+Page.jsx +14 -0
  120. package/templates/vike/js/with/jotai/src/pages/index/Counter.jsx +19 -0
  121. package/templates/vike/js/with/jotai/src/state/counter.js +4 -0
  122. package/templates/vike/js/with/jotai/src/state/scheme.js +4 -0
  123. package/templates/vike/js/with/msw/_env +3 -0
  124. package/templates/vike/js/with/msw/src/mocks/browser.js +5 -0
  125. package/templates/vike/js/with/msw/src/mocks/handlers.js +24 -0
  126. package/templates/vike/js/with/msw/src/mocks/server.js +5 -0
  127. package/templates/vike/js/with/msw/src/mocks/setupTests.js +7 -0
  128. package/templates/vike/js/with/msw/src/mocks/start.js +10 -0
  129. package/templates/vike/js/with/react-hook-form/src/pages/form/+Page.jsx +294 -0
  130. package/templates/vike/js/with/redux-toolkit/src/pages/index/Counter.jsx +20 -0
  131. package/templates/vike/js/with/redux-toolkit/src/state/store.js +27 -0
  132. package/templates/vike/js/with/zustand/src/pages/index/Counter.jsx +17 -0
  133. package/templates/vike/js/with/zustand/src/state/counter.js +14 -0
  134. package/templates/vike/js/with/zustand/src/state/scheme.js +14 -0
  135. package/templates/vike/ts/base/README.md +87 -0
  136. package/templates/vike/ts/base/_gitignore +4 -0
  137. package/templates/vike/ts/base/src/data/api.ts +84 -0
  138. package/templates/vike/ts/base/src/pages/+Layout.tsx +184 -0
  139. package/templates/vike/ts/base/src/pages/+config.ts +14 -0
  140. package/templates/vike/ts/base/src/pages/+onRenderClient.tsx +41 -0
  141. package/templates/vike/ts/base/src/pages/+onRenderHtml.tsx +28 -0
  142. package/templates/vike/ts/base/src/pages/PageShell.tsx +48 -0
  143. package/templates/vike/ts/base/src/pages/_error/+Page.tsx +14 -0
  144. package/templates/vike/ts/base/src/pages/about/+Page.tsx +14 -0
  145. package/templates/vike/ts/base/src/pages/index/+Page.tsx +33 -0
  146. package/templates/vike/ts/base/src/pages/index/Counter.tsx +20 -0
  147. package/templates/vike/ts/base/src/pages/index/Greeting.tsx +49 -0
  148. package/templates/vike/ts/base/src/pages/index/Page.test.tsx +67 -0
  149. package/templates/vike/ts/base/src/pages/usePageContext.tsx +27 -0
  150. package/templates/vike/ts/base/src/vike.d.ts +20 -0
  151. package/templates/vike/ts/base/tsconfig.json +18 -0
  152. package/templates/vike/ts/base/vite.config.ts +14 -0
  153. package/templates/vike/ts/base/vitest.config.ts +13 -0
  154. package/templates/vike/ts/sample-data/src/data/items.ts +64 -0
  155. package/templates/vike/ts/sample-data/src/pages/items/+Page.tsx +50 -0
  156. package/templates/vike/ts/sample-data/src/pages/items/+data.ts +28 -0
  157. package/templates/vike/ts/sample-data/src/pages/items/@id/+Page.tsx +41 -0
  158. package/templates/vike/ts/sample-data/src/pages/items/@id/+data.ts +37 -0
  159. package/templates/vike/ts/sample-data/src/pages/items/@id/+onBeforePrerenderStart.ts +8 -0
  160. package/templates/vike/ts/sample-data/src/pages/items/StatusChip.tsx +9 -0
  161. package/templates/vike/ts/spa/src/pages/+config.ts +14 -0
  162. package/templates/vike/ts/spa/src/pages/+onRenderClient.tsx +27 -0
  163. package/templates/vike/ts/spa/src/pages/+onRenderHtml.tsx +17 -0
  164. package/templates/vike/ts/spa/src/pages/about/+Page.tsx +14 -0
  165. package/templates/vike/ts/ssg/src/pages/+config.ts +13 -0
  166. package/templates/vike/ts/ssg/src/pages/about/+Page.tsx +13 -0
  167. package/templates/vike/ts/ssr/src/pages/+config.ts +14 -0
  168. package/templates/vike/ts/ssr/src/pages/+onRenderHtml.tsx +28 -0
  169. package/templates/vike/ts/ssr/src/pages/about/+Page.tsx +14 -0
  170. package/templates/vike/ts/with/jotai/src/pages/index/Counter.tsx +19 -0
  171. package/templates/vike/ts/with/jotai/src/state/counter.ts +4 -0
  172. package/templates/vike/ts/with/jotai/src/state/scheme.ts +4 -0
  173. package/templates/vike/ts/with/msw/_env +3 -0
  174. package/templates/vike/ts/with/msw/src/mocks/browser.ts +5 -0
  175. package/templates/vike/ts/with/msw/src/mocks/handlers.ts +24 -0
  176. package/templates/vike/ts/with/msw/src/mocks/server.ts +5 -0
  177. package/templates/vike/ts/with/msw/src/mocks/setupTests.ts +7 -0
  178. package/templates/vike/ts/with/msw/src/mocks/start.ts +10 -0
  179. package/templates/vike/ts/with/react-hook-form/src/pages/form/+Page.tsx +298 -0
  180. package/templates/vike/ts/with/redux-toolkit/src/pages/index/Counter.tsx +20 -0
  181. package/templates/vike/ts/with/redux-toolkit/src/state/store.ts +29 -0
  182. package/templates/vike/ts/with/zustand/src/pages/index/Counter.tsx +17 -0
  183. package/templates/vike/ts/with/zustand/src/state/counter.ts +19 -0
  184. package/templates/vike/ts/with/zustand/src/state/scheme.ts +19 -0
package/README.md CHANGED
@@ -1,124 +1,21 @@
1
1
  # @soroush.design/cli
2
2
 
3
- The command line of the [`@soroush.tech`](https://docs.soroush.tech) design system. It has two
4
- commands: `create` starts a new app on the design system, and `init` sets the design system up in
5
- an existing React app.
3
+ The command line of the [`@soroush.tech`](https://docs.soroush.tech) design system.
6
4
 
7
- ## Start a new app: `create`
5
+ - **`create`** starts a new app: a working boilerplate on the design system, with its theme, its
6
+ providers and a few pages in place, ready to build on.
7
+ - **`init`** sets the design system up in a React app you already have.
8
8
 
9
9
  ```sh
10
10
  npx @soroush.design/cli create my-app
11
+ npx @soroush.design/cli init
11
12
  ```
12
13
 
13
- It makes the app in a new folder, `my-app`, or in an empty one, and never writes in a folder that
14
- holds anything. It asks for what you did not give it - the name and the title typed, then the
15
- language, the package manager, the default color scheme and the sample data pages picked with the
16
- arrow keys - then shows every file and the install, and writes nothing before a yes. The package
17
- manager starts on the one you ran it with (`npx`, `pnpm dlx`, `yarn dlx`, `bunx`). It installs with
18
- no scripts, and runs `git init` with no commit, unless the folder is already in a repository. When
19
- a write or the install fails, it takes the new app away.
14
+ Each shows every change first, and writes nothing until you say yes. `--help` after a command
15
+ lists its options.
20
16
 
21
- | Option | What it does |
22
- | -------------------- | ----------------------------------------------------------------- |
23
- | `-y`, `--yes` | Create without asking: TypeScript and light, unless given |
24
- | `--dry-run` | Show the files and exit |
25
- | `--title <text>` | What the app's pages call it: the name when not given |
26
- | `--framework <name>` | The app's framework: `vike`, the default and only one yet |
27
- | `--ts`, `--js` | TypeScript (the default) or JavaScript |
28
- | `--pm <name>` | `npm`, `pnpm`, `yarn` or `bun`: the one that ran it, if not given |
29
- | `--render <name>` | `isomorphic` (the default), `spa` or `ssg` |
30
- | `--scheme <name>` | The default color scheme: `light` or `dark` |
31
- | `--sample-data` | Add the sample data pages |
32
- | `--no-git` | Do not run `git init` |
33
- | `-h`, `--help` | Show the options of `create` |
34
-
35
- ### The Vike app
36
-
37
- A [Vike](https://vike.dev) app, rendered the way you pick:
38
-
39
- - **Isomorphic** (the default): every page is prerendered to HTML at build time, with the styles
40
- it uses, so it is drawn styled before any script runs. Then the app takes over in the browser
41
- and moves between pages without a reload.
42
- - **SPA**: every page is an empty HTML shell from the build, and the browser renders it, with its
43
- styles. It moves between pages without a reload.
44
- - **SSG**: every page is prerendered to HTML with its styles, and ships no JavaScript: a link loads
45
- the next page. It has no light and dark switch, since that needs JavaScript.
46
-
47
- All three build to static files that any static host serves.
48
-
49
- - `src/pages/` holds the pages - a home page, a second page and a 404 page - built from the design
50
- system's components and theme tokens only.
51
- - `src/pages/+Layout` is the frame every page renders in. It renders `<Providers>`, and holds a
52
- light and dark switch.
53
- - `src/theme/themes` holds a `light` and a `dark` theme, as `init` writes them: make them your own.
54
- - `src/pages/+onRenderHtml` and `+onRenderClient` render the pages with the design system's
55
- Emotion cache. There is no renderer package to install.
56
- - `npm run dev` starts it, `npm run build` builds it, and `npm run preview` serves the build.
57
-
58
- With sample data pages, it also shows how data gets onto a page, with no data library:
59
-
60
- - `src/data/items` holds six sample items.
61
- - `/items` lists them, and `/items/<id>` shows one. Each page's `+data` reads the items at build
62
- time, and the build prerenders one page per item. Moving between them in the browser loads only
63
- their data, with no reload.
64
- - A page reads its data with `useData()`, from `src/pages/usePageContext`. Make the `+data` hooks
65
- fetch your own data, and remove `src/data/items`.
66
-
67
- The switch does not remember the scheme across a reload, and the theme's fonts are not loaded: see
68
- the [fonts guide](https://docs.soroush.tech/design-system/getting-started/installation/#fonts).
69
-
70
- ## Set up an existing app: `init`
71
-
72
- Run it in your app's folder, or in a workspace's root that holds one app:
73
-
74
- ```sh
75
- npx @soroush.tech/design-system init
76
- ```
77
-
78
- The design system ships this command line, so that installs the version you ask for. Run on its
79
- own, `npx @soroush.design/cli init` (or `create`) does the same with the design system version it
80
- was released next to.
81
-
82
- In PowerShell, quote the package name: `@` starts a splat there.
83
-
84
- ```powershell
85
- npx '@soroush.tech/design-system' init
86
- ```
87
-
88
- ### Options of `init`
89
-
90
- | Option | What it does |
91
- | ----------------- | -------------------------------------------- |
92
- | `-y`, `--yes` | Apply without asking |
93
- | `--dry-run` | Show the changes and exit |
94
- | `--force` | Run outside git, or with uncommitted changes |
95
- | `--scheme <name>` | The default color scheme: `light` or `dark` |
96
- | `-h`, `--help` | Show the options of `init` |
97
-
98
- ### What `init` does
99
-
100
- In a client-rendered React app, whatever builds it (Vite, webpack, Rspack, Parcel, Create React
101
- App), in TypeScript or JavaScript:
102
-
103
- - It writes `src/theme/themes` (a `light` and a `dark` theme, each a `createTheme(baseTheme,
104
- {...})` call you edit) and `src/theme/Providers` (`ThemeProvider` with the base page styles).
105
- - It wraps what your root renders in `<Providers>`.
106
- - It installs `@soroush.tech/design-system` with your own package manager.
107
-
108
- It is careful with your app:
109
-
110
- - It shows every change first - the files, each edit as a diff, the install - and writes nothing
111
- before a yes.
112
- - It runs only in a git repository with no uncommitted change, unless `--force`.
113
- - It never overwrites a file, and edits the root only when it has the standard shape: one
114
- `createRoot(...).render(` or `ReactDOM.render(` call. Otherwise it prints the lines to add.
115
- - When a write fails, it takes back every change it made. The install runs last, with no scripts.
116
- - A second run finds its own files and changes nothing.
117
- - It checks your React against the design system's peer range, and never upgrades React.
118
- - It reaches no network but the install.
119
-
120
- Next.js, Vike and React Router apps are refused for now, with a pointer to the
121
- [setup guide](https://docs.soroush.tech/design-system/getting-started/installation/).
17
+ **Documentation:** [docs.soroush.tech/cli](https://docs.soroush.tech/cli/) - every question and
18
+ option, the app `create` makes, and what `init` changes.
122
19
 
123
20
  ## License
124
21
 
package/dist/bin.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { n as main, r as version$1, t as createNodeIo } from "./io-uDtjQuG6.mjs";
2
+ import { n as main, r as version$1, t as createNodeIo } from "./io-C_8_JerZ.mjs";
3
3
  // ../design-system/package.json
4
4
  var name = "@soroush.tech/design-system";
5
5
  var version = "2.2.0";
package/dist/index.d.mts CHANGED
@@ -74,12 +74,19 @@ export declare function readDesignSystemPackage(fromFile: string): PackageJson;
74
74
  * stops it at a question, which is before anything is written.
75
75
  */
76
76
  declare function main(argv: readonly string[], io: Io, designSystem: PackageJson): Promise<number>;
77
+ /** A library `create` can add to a new app, with its wiring and a small example. */
78
+ type Library = 'tanstack-query' | 'swr' | 'msw' | 'zustand' | 'jotai' | 'redux-toolkit' | 'react-hook-form';
77
79
  /**
78
80
  * How the app's pages are rendered: `isomorphic`, prerendered to HTML at build time and then
79
- * moving between pages in the browser; `spa`, rendered in the browser only; `ssg`, HTML only, with
80
- * no JavaScript in the browser.
81
+ * moving between pages in the browser; `ssr`, rendered on a server on each request, then the
82
+ * same; `spa`, rendered in the browser only; `ssg`, HTML only, with no JavaScript in the browser.
81
83
  */
82
- type Rendering = 'isomorphic' | 'spa' | 'ssg';
84
+ type Rendering = 'isomorphic' | 'ssr' | 'spa' | 'ssg';
85
+ /**
86
+ * How the repository holds the app: `workspace`, as `apps/web` of a workspace that has room for
87
+ * more apps and services; `standalone`, the app alone at the root.
88
+ */
89
+ type Layout = 'workspace' | 'standalone';
83
90
  interface CreateOptions {
84
91
  /** The app's folder: asked for, or `my-app`, when missing. */
85
92
  name: string | undefined;
@@ -91,8 +98,12 @@ interface CreateOptions {
91
98
  isTypeScript: boolean | undefined;
92
99
  /** The package manager to install with: asked for, or the one that ran create, when missing. */
93
100
  packageManager: PackageManagerName | undefined;
101
+ /** How the repository holds the app: asked for, or a workspace, when missing. */
102
+ layout: Layout | undefined;
94
103
  /** How the pages are rendered: asked for, or isomorphic, when missing. */
95
104
  rendering: Rendering | undefined;
105
+ /** The libraries to add: asked for, or none, when missing. */
106
+ libraries: readonly Library[] | undefined;
96
107
  scheme: Scheme | undefined;
97
108
  /** Adds the pages that read sample data: asked for, or not, when missing. */
98
109
  hasSampleData: boolean | undefined;
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- export { t as createNodeIo, n as default, i as readDesignSystemPackage } from "./io-uDtjQuG6.mjs";
1
+ export { t as createNodeIo, n as default, i as readDesignSystemPackage } from "./io-C_8_JerZ.mjs";