@quilted/create 0.3.4 → 0.3.6

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 (42) hide show
  1. package/CHANGELOG.md +230 -0
  2. package/build/esm/_virtual/index.mjs +2 -2
  3. package/build/esm/_virtual/index7.mjs +2 -2
  4. package/build/esm/_virtual/index8.mjs +2 -2
  5. package/build/esm/_virtual/minimatch.mjs +20 -2
  6. package/build/esm/app.mjs +3 -3
  7. package/build/esm/cli.mjs +2 -2
  8. package/build/esm/module.mjs +3 -3
  9. package/build/esm/node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.mjs +1 -1
  10. package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.mjs +1 -1
  11. package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/prompts.mjs +1 -1
  12. package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/prompts.mjs +1 -1
  13. package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/index.mjs +6 -1
  14. package/build/esm/package.mjs +3 -3
  15. package/build/esm/server.mjs +3 -3
  16. package/build/esnext/_virtual/index7.esnext +2 -2
  17. package/build/esnext/_virtual/index8.esnext +2 -2
  18. package/build/esnext/_virtual/minimatch.esnext +20 -2
  19. package/build/esnext/app.esnext +1 -1
  20. package/build/esnext/module.esnext +1 -1
  21. package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.esnext +1 -1
  22. package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.esnext +1 -1
  23. package/build/esnext/node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.esnext +1 -1
  24. package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.esnext +1 -1
  25. package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/index.esnext +6 -1
  26. package/build/esnext/package.esnext +1 -1
  27. package/build/esnext/server.esnext +1 -1
  28. package/build/tsconfig.tsbuildinfo +1 -1
  29. package/package.json +7 -4
  30. package/templates/app-basic/package.json +4 -4
  31. package/templates/app-empty/package.json +3 -3
  32. package/templates/app-graphql/package.json +6 -6
  33. package/templates/app-graphql/tsconfig.json +1 -1
  34. package/templates/app-trpc/package.json +8 -8
  35. package/templates/workspace/_nvmrc +1 -1
  36. package/templates/workspace/node_modules/.bin/prettier +22 -0
  37. package/templates/workspace/node_modules/.bin/rollup +22 -0
  38. package/templates/workspace/node_modules/.bin/tsc +22 -0
  39. package/templates/workspace/node_modules/.bin/tsserver +22 -0
  40. package/templates/workspace/node_modules/.bin/vite +22 -0
  41. package/templates/workspace/node_modules/.bin/vitest +22 -0
  42. package/templates/workspace/package.json +11 -9
package/CHANGELOG.md CHANGED
@@ -1,5 +1,235 @@
1
1
  # @quilted/create
2
2
 
3
+ ## 0.3.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#950](https://github.com/lemonmade/quilt/pull/950) [`2267309`](https://github.com/lemonmade/quilt/commit/226730924331208b252a128299f445f80150f9d3) Thanks [@lemonmade](https://github.com/lemonmade)! - Templates now run TypeScript files with Node directly — using `--experimental-transform-types` (Node 22.7+) — instead of `tsx`, dropping the extra dependency. Generated projects declare `engines.node >= 22.7.0` accordingly.
8
+
9
+ ## 0.3.5
10
+
11
+ ### Patch Changes
12
+
13
+ - [#894](https://github.com/lemonmade/quilt/pull/894) [`fb998d1`](https://github.com/lemonmade/quilt/commit/fb998d1d0a7fb7981184daa5307320477355ace8) Thanks [@lemonmade](https://github.com/lemonmade)! - Consolidate all framework context into a unified `QuiltContext` architecture.
14
+
15
+ Previously, Quilt's context was fragmented across many standalone provider components (`AsyncContext`, `GraphQLContext`, `EmailContext`, etc.), each backed by its own Preact context object. This release consolidates everything into a single `QuiltContext` interface, augmented by each package via TypeScript module declaration merging, and provided by a single `<QuiltFrameworkContext>` component.
16
+
17
+ ## Breaking changes
18
+
19
+ ### All packages: unified `QuiltContext` interface
20
+
21
+ Each `@quilted/*` package now augments a single `QuiltContext` interface from `@quilted/preact-context` rather than maintaining its own standalone context. If you were accessing any Quilt context values directly via `useContext(SomeSpecificContext)`, switch to the appropriate `use*` hook instead.
22
+
23
+ ### `@quilted/preact-router`: `useRouter` renamed to `useNavigation`
24
+
25
+ ```ts
26
+ // Before
27
+ import {useRouter} from '@quilted/quilt/navigation';
28
+ const router = useRouter();
29
+
30
+ // After
31
+ import {useNavigation} from '@quilted/quilt/navigation';
32
+ const navigation = useNavigation();
33
+ ```
34
+
35
+ ### `@quilted/preact-router`: `router` QuiltContext field renamed to `navigation`
36
+
37
+ The `QuiltContext` field that holds the navigation instance is now `navigation` instead of `router`. This affects any code that reads the field directly, and the prop name on `<QuiltFrameworkContext>`.
38
+
39
+ ```tsx
40
+ // Before
41
+ <QuiltFrameworkContext router={myNavigation} />
42
+
43
+ // After
44
+ <QuiltFrameworkContext navigation={myNavigation} />
45
+ ```
46
+
47
+ ### `@quilted/preact-router`: `TestRouter` renamed to `TestNavigation`
48
+
49
+ ```ts
50
+ // Before
51
+ import {TestRouter} from '@quilted/quilt/navigation/testing';
52
+
53
+ // After
54
+ import {TestNavigation} from '@quilted/quilt/navigation/testing';
55
+ ```
56
+
57
+ ### `@quilted/preact-browser`: `browserDetails` and `browserAssets` QuiltContext fields renamed
58
+
59
+ The `QuiltContext` fields for browser environment details and the asset manifest have shorter, cleaner names:
60
+
61
+ - `browserDetails` → `browser`
62
+ - `browserAssets` → `assets`
63
+
64
+ These affect the props on `<QuiltFrameworkContext>` and any direct reads of the context.
65
+
66
+ ```tsx
67
+ // Before
68
+ <QuiltFrameworkContext browserDetails={browser} browserAssets={assets} />
69
+
70
+ // After
71
+ <QuiltFrameworkContext browser={browser} assets={assets} />
72
+ ```
73
+
74
+ ### `@quilted/preact-localize`: `localize` QuiltContext field renamed to `localization`
75
+
76
+ The QuiltContext field and the corresponding `<QuiltFrameworkContext>` prop are now `localization`:
77
+
78
+ ```tsx
79
+ // Before
80
+ <QuiltFrameworkContext localize={localization} />
81
+
82
+ // After
83
+ <QuiltFrameworkContext localization={localization} />
84
+ ```
85
+
86
+ ### `@quilted/preact-localize`: `createLocalizedFormatting` and `createLocalization` removed
87
+
88
+ These factory functions have been removed. Use the `Localization` class directly:
89
+
90
+ ```ts
91
+ // Before
92
+ import {createLocalization} from '@quilted/preact-localize';
93
+ const localization = createLocalization('en');
94
+
95
+ // After
96
+ import {Localization} from '@quilted/preact-localize';
97
+ const localization = new Localization('en');
98
+ ```
99
+
100
+ ### `@quilted/preact-async`: `AsyncContext` component removed
101
+
102
+ The standalone `<AsyncContext>` provider component has been removed. Pass async context directly to `<QuiltFrameworkContext>` instead:
103
+
104
+ ```tsx
105
+ // Before
106
+ import {AsyncContext, AsyncActionCache} from '@quilted/quilt/async';
107
+
108
+ <AsyncContext cache={cache}>
109
+ <App />
110
+ </AsyncContext>;
111
+
112
+ // After
113
+ import {QuiltFrameworkContext} from '@quilted/quilt/context';
114
+ import {AsyncActionCache} from '@quilted/quilt/async';
115
+
116
+ <QuiltFrameworkContext async={{cache}}>
117
+ <App />
118
+ </QuiltFrameworkContext>;
119
+ ```
120
+
121
+ `QuiltFrameworkContext` handles cache serialization for server-side rendering automatically, so no other changes are required.
122
+
123
+ ### `@quilted/preact-graphql`: `GraphQLContext` component removed
124
+
125
+ The standalone `<GraphQLContext>` provider component has been removed. The two separate `graphqlRun` and `graphqlCache` props on `<QuiltFrameworkContext>` have been replaced with a single `graphql` prop that accepts a `GraphQLClient` instance (or any object with `fetch` and `cache` properties):
126
+
127
+ ```tsx
128
+ // Before
129
+ import {GraphQLContext} from '@quilted/quilt/graphql';
130
+
131
+ <QuiltFrameworkContext navigation={navigation}>
132
+ <GraphQLContext fetch={myFetch} cache={myCache}>
133
+ <App />
134
+ </GraphQLContext>
135
+ </QuiltFrameworkContext>;
136
+
137
+ // After — using the new GraphQLClient class
138
+ import {GraphQLClient} from '@quilted/quilt/graphql';
139
+
140
+ const graphql = new GraphQLClient(myFetch);
141
+
142
+ <QuiltFrameworkContext navigation={navigation} graphql={graphql}>
143
+ <App />
144
+ </QuiltFrameworkContext>;
145
+ ```
146
+
147
+ ### `@quilted/preact-email`: `EmailContext` removed
148
+
149
+ The standalone `EmailContext` Preact context object has been removed. Email components should use the new `useEmailManager()` hook to access the email manager, which reads from the unified `QuiltContext`:
150
+
151
+ ```ts
152
+ // Before
153
+ import {useContext} from 'preact/hooks';
154
+ import {EmailContext} from '@quilted/preact-email';
155
+ const email = useContext(EmailContext);
156
+
157
+ // After
158
+ import {useEmailManager} from '@quilted/preact-email';
159
+ const email = useEmailManager();
160
+ ```
161
+
162
+ ### `@quilted/quilt`: `QuiltContext` component renamed to `QuiltFrameworkContext`
163
+
164
+ The provider component is now named `QuiltFrameworkContext` to avoid a name clash with the `QuiltContext` TypeScript interface:
165
+
166
+ ```tsx
167
+ // Before
168
+ import {QuiltContext} from '@quilted/quilt/context';
169
+ <QuiltContext navigation={navigation}>...</QuiltContext>;
170
+
171
+ // After
172
+ import {QuiltFrameworkContext} from '@quilted/quilt/context';
173
+ <QuiltFrameworkContext navigation={navigation}>...</QuiltFrameworkContext>;
174
+ ```
175
+
176
+ ### `@quilted/quilt`: `QuiltTestContext` renamed to `QuiltFrameworkTestContext`, takes `localization` instead of `locale`
177
+
178
+ The test context helper component is now `QuiltFrameworkTestContext` and accepts a `Localization` instance directly instead of a locale string:
179
+
180
+ ```tsx
181
+ // Before
182
+ import {QuiltTestContext} from '@quilted/quilt/context/testing';
183
+ <QuiltTestContext locale="fr">...</QuiltTestContext>;
184
+
185
+ // After
186
+ import {QuiltFrameworkTestContext} from '@quilted/quilt/context/testing';
187
+ import {Localization} from '@quilted/quilt/localize';
188
+ <QuiltFrameworkTestContext localization={new Localization('fr')}>
189
+ ...
190
+ </QuiltFrameworkTestContext>;
191
+ ```
192
+
193
+ ## New features
194
+
195
+ ### `@quilted/graphql`: `GraphQLClient` class
196
+
197
+ A new `GraphQLClient` class bundles a GraphQL fetch function and an optional result cache into a single object. A cache is created automatically by default, configured to use the same fetch function:
198
+
199
+ ```ts
200
+ import {createGraphQLFetch, GraphQLClient} from '@quilted/quilt/graphql';
201
+
202
+ // Cache created automatically from the fetch function
203
+ const client = new GraphQLClient(createGraphQLFetch({url: '/graphql'}));
204
+
205
+ // Disable caching
206
+ const client = new GraphQLClient(myFetch, {cache: false});
207
+
208
+ // Share an existing cache
209
+ const cache = new GraphQLCache();
210
+ const client = new GraphQLClient(myFetch, {cache});
211
+
212
+ // Use the client
213
+ client.fetch(MyQuery, {variables: {id: '1'}});
214
+ client.cache?.query(MyQuery, {variables: {id: '1'}});
215
+ ```
216
+
217
+ ### `@quilted/preact-router`: `useNavigation()` hook
218
+
219
+ The renamed `useNavigation()` hook returns the active `Navigation` instance from context, providing access to the current URL, navigation history, and programmatic navigation.
220
+
221
+ ### `@quilted/preact-email`: `useEmailManager()` hook
222
+
223
+ A new `useEmailManager()` hook provides access to the `EmailManager` instance from the unified `QuiltContext`. Returns `undefined` outside of an email rendering context.
224
+
225
+ ### `@quilted/preact-async`: signal-backed `async.isHydrated`
226
+
227
+ The `AsyncContext` interface (accessed via `useQuiltContext('async')`) now includes an `isHydrated` boolean getter backed by a Preact signal. Any component that reads `async.isHydrated` will automatically re-render when the client hydration completes, without requiring a manual signal subscription.
228
+
229
+ ### `@quilted/localize`: `Localization` class documentation
230
+
231
+ The `Localization` class now has full JSDoc documentation on the class, constructor, all properties (`locale`, `direction`, `numberFormatter`, `dateTimeFormatter`), and all methods (`formatNumber`, `formatCurrency`, `formatDate`).
232
+
3
233
  ## 0.3.4
4
234
 
5
235
  ### Patch Changes
@@ -2,6 +2,6 @@ import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
2
2
  import { __require as requireArg } from '../node_modules/.pnpm/arg@5.0.2/node_modules/arg/index.mjs';
3
3
 
4
4
  var argExports = requireArg();
5
- const parseArguments = /*@__PURE__*/getDefaultExportFromCjs(argExports);
5
+ const arg = /*@__PURE__*/getDefaultExportFromCjs(argExports);
6
6
 
7
- export { parseArguments as default };
7
+ export { arg as default };
@@ -1,3 +1,3 @@
1
- var dirGlob = {exports: {}};
1
+ var utils = {};
2
2
 
3
- export { dirGlob as __module };
3
+ export { utils as __exports };
@@ -1,3 +1,3 @@
1
- var utils = {};
1
+ var dirGlob = {exports: {}};
2
2
 
3
- export { utils as __exports };
3
+ export { dirGlob as __module };
@@ -1,12 +1,30 @@
1
1
  import { getDefaultExportFromCjs } from './_commonjsHelpers.mjs';
2
2
  import { __require as requireMinimatch } from '../node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/minimatch.mjs';
3
3
 
4
+ function _mergeNamespaces(n, m) {
5
+ for (var i = 0; i < m.length; i++) {
6
+ const e = m[i];
7
+ if (typeof e !== 'string' && !Array.isArray(e)) { for (const k in e) {
8
+ if (k !== 'default' && !(k in n)) {
9
+ const d = Object.getOwnPropertyDescriptor(e, k);
10
+ if (d) {
11
+ Object.defineProperty(n, k, d.get ? d : {
12
+ enumerable: true,
13
+ get: () => e[k]
14
+ });
15
+ }
16
+ }
17
+ } }
18
+ }
19
+ return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: 'Module' }));
20
+ }
21
+
4
22
  var minimatchExports = requireMinimatch();
5
23
  const minimatch = /*@__PURE__*/getDefaultExportFromCjs(minimatchExports);
6
24
 
7
- const minimatch$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
25
+ const minimatch$1 = /*#__PURE__*/_mergeNamespaces({
8
26
  __proto__: null,
9
27
  default: minimatch
10
- }, Symbol.toStringTag, { value: 'Module' }));
28
+ }, [minimatchExports]);
11
29
 
12
30
  export { minimatch as default, minimatch$1 as minimatch };
package/build/esm/app.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as fs from 'node:fs';
2
2
  import * as path from 'node:path';
3
- import parseArguments from './_virtual/index.mjs';
3
+ import arg from './_virtual/index.mjs';
4
4
  import { cyan, bold, dim, underline, magenta } from './node_modules/.pnpm/colorette@2.0.19/node_modules/colorette/index.mjs';
5
5
  import './node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/TemplateTag/TemplateTag.mjs';
6
6
  import './node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/commaLists/commaLists.mjs';
@@ -18,7 +18,7 @@ import './node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/oneLi
18
18
  import stripIndent from './node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/stripIndent/stripIndent.mjs';
19
19
  import './node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/stripIndents/stripIndents.mjs';
20
20
  import { printHelp } from './help.mjs';
21
- import { emptyDirectory, loadTemplate, toValidPackageName, relativeDirectoryForDisplay, createOutputTarget, format, mergeWorkspaceAndProjectPackageJsons, isEmpty } from './shared.mjs';
21
+ import { emptyDirectory, loadTemplate, toValidPackageName, relativeDirectoryForDisplay, format, mergeWorkspaceAndProjectPackageJsons, isEmpty, createOutputTarget } from './shared.mjs';
22
22
  import { getInWorkspace, getCreateAsMonorepo, getExtrasToSetup, getShouldInstall, getPackageManager } from './shared/prompts.mjs';
23
23
  import { addToTsConfig } from './shared/tsconfig.mjs';
24
24
  import { addToPackageManagerWorkspaces } from './shared/package-manager.mjs';
@@ -195,7 +195,7 @@ async function createApp() {
195
195
  // Argument handling
196
196
 
197
197
  function getArgv() {
198
- const argv = parseArguments({
198
+ const argv = arg({
199
199
  '--yes': Boolean,
200
200
  '-y': '--yes',
201
201
  '--name': String,
package/build/esm/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { printHelp } from './help.mjs';
2
2
  import { AbortError } from './packages/events/build/esnext/abort/AbortError.esnext.mjs';
3
- import parseArguments from './_virtual/index.mjs';
3
+ import arg from './_virtual/index.mjs';
4
4
  import stripIndent from './node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/stripIndent/stripIndent.mjs';
5
5
  import './node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/TemplateTag/TemplateTag.mjs';
6
6
  import './node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/commaLists/commaLists.mjs';
@@ -26,7 +26,7 @@ run().catch(error => {
26
26
  process.exitCode = 1;
27
27
  });
28
28
  async function run() {
29
- const permissiveArgs = parseArguments({
29
+ const permissiveArgs = arg({
30
30
  '--help': Boolean,
31
31
  '-h': '--help',
32
32
  '--package-manager': String
@@ -1,6 +1,6 @@
1
1
  import * as fs from 'node:fs';
2
2
  import * as path from 'node:path';
3
- import parseArguments from './_virtual/index.mjs';
3
+ import arg from './_virtual/index.mjs';
4
4
  import { cyan, dim, underline, magenta, bold } from './node_modules/.pnpm/colorette@2.0.19/node_modules/colorette/index.mjs';
5
5
  import './node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/TemplateTag/TemplateTag.mjs';
6
6
  import './node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/commaLists/commaLists.mjs';
@@ -18,7 +18,7 @@ import './node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/oneLi
18
18
  import stripIndent from './node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/stripIndent/stripIndent.mjs';
19
19
  import './node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/stripIndents/stripIndents.mjs';
20
20
  import { printHelp } from './help.mjs';
21
- import { toValidPackageName, emptyDirectory, loadTemplate, relativeDirectoryForDisplay, createOutputTarget, format, mergeWorkspaceAndProjectPackageJsons, isEmpty } from './shared.mjs';
21
+ import { toValidPackageName, emptyDirectory, loadTemplate, relativeDirectoryForDisplay, format, mergeWorkspaceAndProjectPackageJsons, isEmpty, createOutputTarget } from './shared.mjs';
22
22
  import { getInWorkspace, getCreateAsMonorepo, getExtrasToSetup, getShouldInstall, getPackageManager } from './shared/prompts.mjs';
23
23
  import { addToTsConfig } from './shared/tsconfig.mjs';
24
24
  import { addToPackageManagerWorkspaces } from './shared/package-manager.mjs';
@@ -180,7 +180,7 @@ async function createModule() {
180
180
  // Argument handling
181
181
 
182
182
  function getArgv() {
183
- const argv = parseArguments({
183
+ const argv = arg({
184
184
  '--yes': Boolean,
185
185
  '-y': '--yes',
186
186
  '--name': String,
@@ -1,4 +1,4 @@
1
- import { __module as dirGlob } from '../../../../../_virtual/index7.mjs';
1
+ import { __module as dirGlob } from '../../../../../_virtual/index8.mjs';
2
2
  import path__default from 'node:path';
3
3
  import { __require as requirePathType } from '../../../path-type@4.0.0/node_modules/path-type/index.mjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { __exports as utils } from '../../../../../../../_virtual/index8.mjs';
1
+ import { __exports as utils } from '../../../../../../../_virtual/index7.mjs';
2
2
  import { __require as requireArray } from './array.mjs';
3
3
  import { __require as requireErrno } from './errno.mjs';
4
4
  import { __require as requireFs } from './fs.mjs';
@@ -1,4 +1,4 @@
1
- import { __exports as prompts } from '../../../../../../_virtual/prompts.mjs';
1
+ import { __exports as prompts } from '../../../../../../_virtual/prompts2.mjs';
2
2
  import { __require as requireElements } from './elements/index.mjs';
3
3
 
4
4
  var hasRequiredPrompts;
@@ -1,4 +1,4 @@
1
- import { __exports as prompts } from '../../../../../../_virtual/prompts2.mjs';
1
+ import { __exports as prompts } from '../../../../../../_virtual/prompts.mjs';
2
2
  import { __require as requireElements } from './elements/index.mjs';
3
3
 
4
4
  var hasRequiredPrompts;
@@ -12,5 +12,10 @@ import './dist/stringify/stringifyString.mjs';
12
12
  export { Lexer } from './dist/parse/lexer.mjs';
13
13
  export { LineCounter } from './dist/parse/line-counter.mjs';
14
14
  export { Parser } from './dist/parse/parser.mjs';
15
- export { parse, parseDocument, stringify } from './dist/public-api.mjs';
15
+ import { stringify, parse } from './dist/public-api.mjs';
16
+ export { parseDocument } from './dist/public-api.mjs';
16
17
  export { visit } from './dist/visit.mjs';
18
+
19
+
20
+
21
+ export { parse, stringify };
@@ -1,7 +1,7 @@
1
1
  import * as fs from 'node:fs';
2
2
  import * as path from 'node:path';
3
3
  import { printHelp } from './help.mjs';
4
- import { toValidPackageName, emptyDirectory, loadTemplate, createOutputTarget, format, mergeWorkspaceAndProjectPackageJsons, relativeDirectoryForDisplay, isEmpty } from './shared.mjs';
4
+ import { toValidPackageName, emptyDirectory, loadTemplate, format, mergeWorkspaceAndProjectPackageJsons, relativeDirectoryForDisplay, isEmpty, createOutputTarget } from './shared.mjs';
5
5
  import { getInWorkspace, getCreateAsMonorepo, getExtrasToSetup, getShouldInstall, getPackageManager } from './shared/prompts.mjs';
6
6
  import { addToTsConfig } from './shared/tsconfig.mjs';
7
7
  import { addToPackageManagerWorkspaces } from './shared/package-manager.mjs';
@@ -20,7 +20,7 @@ import './node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/oneLi
20
20
  import './node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/inlineLists/inlineLists.mjs';
21
21
  import './node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/oneLineInlineLists/oneLineInlineLists.mjs';
22
22
  import './node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/stripIndents/stripIndents.mjs';
23
- import parseArguments from './_virtual/index.mjs';
23
+ import arg from './_virtual/index.mjs';
24
24
  import { prompt } from './packages/cli-kit/build/esnext/prompt.esnext.mjs';
25
25
  import { cyan, dim, bold, underline, magenta } from './node_modules/.pnpm/colorette@2.0.19/node_modules/colorette/index.mjs';
26
26
 
@@ -246,7 +246,7 @@ async function createProject() {
246
246
  // Argument handling
247
247
 
248
248
  function getArguments() {
249
- const args = parseArguments({
249
+ const args = arg({
250
250
  '--yes': Boolean,
251
251
  '-y': '--yes',
252
252
  '--name': String,
@@ -1,6 +1,6 @@
1
1
  import * as fs from 'node:fs';
2
2
  import * as path from 'node:path';
3
- import parseArguments from './_virtual/index.mjs';
3
+ import arg from './_virtual/index.mjs';
4
4
  import { cyan, dim, underline, magenta, bold } from './node_modules/.pnpm/colorette@2.0.19/node_modules/colorette/index.mjs';
5
5
  import './node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/TemplateTag/TemplateTag.mjs';
6
6
  import './node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/commaLists/commaLists.mjs';
@@ -18,7 +18,7 @@ import './node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/oneLi
18
18
  import stripIndent from './node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/stripIndent/stripIndent.mjs';
19
19
  import './node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/stripIndents/stripIndents.mjs';
20
20
  import { printHelp } from './help.mjs';
21
- import { toValidPackageName, emptyDirectory, loadTemplate, relativeDirectoryForDisplay, createOutputTarget, format, mergeWorkspaceAndProjectPackageJsons, isEmpty } from './shared.mjs';
21
+ import { toValidPackageName, emptyDirectory, loadTemplate, relativeDirectoryForDisplay, format, mergeWorkspaceAndProjectPackageJsons, isEmpty, createOutputTarget } from './shared.mjs';
22
22
  import { getInWorkspace, getCreateAsMonorepo, getExtrasToSetup, getShouldInstall, getPackageManager } from './shared/prompts.mjs';
23
23
  import { addToTsConfig } from './shared/tsconfig.mjs';
24
24
  import { addToPackageManagerWorkspaces } from './shared/package-manager.mjs';
@@ -160,7 +160,7 @@ async function createServer() {
160
160
  // Argument handling
161
161
 
162
162
  function getArgv() {
163
- const argv = parseArguments({
163
+ const argv = arg({
164
164
  '--yes': Boolean,
165
165
  '-y': '--yes',
166
166
  '--name': String,
@@ -1,3 +1,3 @@
1
- var dirGlob = {exports: {}};
1
+ var utils = {};
2
2
 
3
- export { dirGlob as __module };
3
+ export { utils as __exports };
@@ -1,3 +1,3 @@
1
- var utils = {};
1
+ var dirGlob = {exports: {}};
2
2
 
3
- export { utils as __exports };
3
+ export { dirGlob as __module };
@@ -1,12 +1,30 @@
1
1
  import { getDefaultExportFromCjs } from './_commonjsHelpers.esnext';
2
2
  import { __require as requireMinimatch } from '../node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/minimatch.esnext';
3
3
 
4
+ function _mergeNamespaces(n, m) {
5
+ for (var i = 0; i < m.length; i++) {
6
+ const e = m[i];
7
+ if (typeof e !== 'string' && !Array.isArray(e)) { for (const k in e) {
8
+ if (k !== 'default' && !(k in n)) {
9
+ const d = Object.getOwnPropertyDescriptor(e, k);
10
+ if (d) {
11
+ Object.defineProperty(n, k, d.get ? d : {
12
+ enumerable: true,
13
+ get: () => e[k]
14
+ });
15
+ }
16
+ }
17
+ } }
18
+ }
19
+ return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: 'Module' }));
20
+ }
21
+
4
22
  var minimatchExports = requireMinimatch();
5
23
  const minimatch = /*@__PURE__*/getDefaultExportFromCjs(minimatchExports);
6
24
 
7
- const minimatch$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
25
+ const minimatch$1 = /*#__PURE__*/_mergeNamespaces({
8
26
  __proto__: null,
9
27
  default: minimatch
10
- }, Symbol.toStringTag, { value: 'Module' }));
28
+ }, [minimatchExports]);
11
29
 
12
30
  export { minimatch as default, minimatch$1 as m };
@@ -18,7 +18,7 @@ import './node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/oneLi
18
18
  import stripIndent from './node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/stripIndent/stripIndent.esnext';
19
19
  import './node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/stripIndents/stripIndents.esnext';
20
20
  import { printHelp } from './help.esnext';
21
- import { emptyDirectory, loadTemplate, toValidPackageName, relativeDirectoryForDisplay, createOutputTarget, format, mergeWorkspaceAndProjectPackageJsons, isEmpty } from './shared.esnext';
21
+ import { emptyDirectory, loadTemplate, toValidPackageName, relativeDirectoryForDisplay, format, mergeWorkspaceAndProjectPackageJsons, isEmpty, createOutputTarget } from './shared.esnext';
22
22
  import { getInWorkspace, getCreateAsMonorepo, getExtrasToSetup, getShouldInstall, getPackageManager } from './shared/prompts.esnext';
23
23
  import { addToTsConfig } from './shared/tsconfig.esnext';
24
24
  import { addToPackageManagerWorkspaces } from './shared/package-manager.esnext';
@@ -18,7 +18,7 @@ import './node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/oneLi
18
18
  import stripIndent from './node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/stripIndent/stripIndent.esnext';
19
19
  import './node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/stripIndents/stripIndents.esnext';
20
20
  import { printHelp } from './help.esnext';
21
- import { toValidPackageName, emptyDirectory, loadTemplate, relativeDirectoryForDisplay, createOutputTarget, format, mergeWorkspaceAndProjectPackageJsons, isEmpty } from './shared.esnext';
21
+ import { toValidPackageName, emptyDirectory, loadTemplate, relativeDirectoryForDisplay, format, mergeWorkspaceAndProjectPackageJsons, isEmpty, createOutputTarget } from './shared.esnext';
22
22
  import { getInWorkspace, getCreateAsMonorepo, getExtrasToSetup, getShouldInstall, getPackageManager } from './shared/prompts.esnext';
23
23
  import { addToTsConfig } from './shared/tsconfig.esnext';
24
24
  import { addToPackageManagerWorkspaces } from './shared/package-manager.esnext';
@@ -1,4 +1,4 @@
1
- import { __exports as out } from '../../../../../../../_virtual/index10.esnext';
1
+ import { __exports as out } from '../../../../../../../_virtual/index11.esnext';
2
2
  import { __require as requireAsync } from './providers/async.esnext';
3
3
  import { __require as requireSync } from './providers/sync.esnext';
4
4
  import { __require as requireSettings } from './settings.esnext';
@@ -1,4 +1,4 @@
1
- import { __exports as out } from '../../../../../../../_virtual/index11.esnext';
1
+ import { __exports as out } from '../../../../../../../_virtual/index10.esnext';
2
2
  import { __require as requireAsync } from './providers/async.esnext';
3
3
  import { __require as requireStream } from './providers/stream.esnext';
4
4
  import { __require as requireSync } from './providers/sync.esnext';
@@ -1,4 +1,4 @@
1
- import { __module as dirGlob } from '../../../../../_virtual/index7.esnext';
1
+ import { __module as dirGlob } from '../../../../../_virtual/index8.esnext';
2
2
  import path__default from 'node:path';
3
3
  import { __require as requirePathType } from '../../../path-type@4.0.0/node_modules/path-type/index.esnext';
4
4
 
@@ -1,4 +1,4 @@
1
- import { __exports as utils } from '../../../../../../../_virtual/index8.esnext';
1
+ import { __exports as utils } from '../../../../../../../_virtual/index7.esnext';
2
2
  import { __require as requireArray } from './array.esnext';
3
3
  import { __require as requireErrno } from './errno.esnext';
4
4
  import { __require as requireFs } from './fs.esnext';
@@ -12,5 +12,10 @@ import './dist/stringify/stringifyString.esnext';
12
12
  export { Lexer } from './dist/parse/lexer.esnext';
13
13
  export { LineCounter } from './dist/parse/line-counter.esnext';
14
14
  export { Parser } from './dist/parse/parser.esnext';
15
- export { parse, parseDocument, stringify } from './dist/public-api.esnext';
15
+ import { stringify, parse } from './dist/public-api.esnext';
16
+ export { parseDocument } from './dist/public-api.esnext';
16
17
  export { visit } from './dist/visit.esnext';
18
+
19
+
20
+
21
+ export { parse, stringify };
@@ -1,7 +1,7 @@
1
1
  import * as fs from 'node:fs';
2
2
  import * as path from 'node:path';
3
3
  import { printHelp } from './help.esnext';
4
- import { toValidPackageName, emptyDirectory, loadTemplate, createOutputTarget, format, mergeWorkspaceAndProjectPackageJsons, relativeDirectoryForDisplay, isEmpty } from './shared.esnext';
4
+ import { toValidPackageName, emptyDirectory, loadTemplate, format, mergeWorkspaceAndProjectPackageJsons, relativeDirectoryForDisplay, isEmpty, createOutputTarget } from './shared.esnext';
5
5
  import { getInWorkspace, getCreateAsMonorepo, getExtrasToSetup, getShouldInstall, getPackageManager } from './shared/prompts.esnext';
6
6
  import { addToTsConfig } from './shared/tsconfig.esnext';
7
7
  import { addToPackageManagerWorkspaces } from './shared/package-manager.esnext';
@@ -18,7 +18,7 @@ import './node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/oneLi
18
18
  import stripIndent from './node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/stripIndent/stripIndent.esnext';
19
19
  import './node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/stripIndents/stripIndents.esnext';
20
20
  import { printHelp } from './help.esnext';
21
- import { toValidPackageName, emptyDirectory, loadTemplate, relativeDirectoryForDisplay, createOutputTarget, format, mergeWorkspaceAndProjectPackageJsons, isEmpty } from './shared.esnext';
21
+ import { toValidPackageName, emptyDirectory, loadTemplate, relativeDirectoryForDisplay, format, mergeWorkspaceAndProjectPackageJsons, isEmpty, createOutputTarget } from './shared.esnext';
22
22
  import { getInWorkspace, getCreateAsMonorepo, getExtrasToSetup, getShouldInstall, getPackageManager } from './shared/prompts.esnext';
23
23
  import { addToTsConfig } from './shared/tsconfig.esnext';
24
24
  import { addToPackageManagerWorkspaces } from './shared/package-manager.esnext';