@cplieger/deadset-ts 4.0.0 → 5.0.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 +68 -50
- package/dist/bin/component-mapper.js +5 -0
- package/dist/bin/mapper-connection.js +101 -0
- package/dist/bin/node-host.js +24 -2
- package/dist/src/analysis.js +230 -37
- package/dist/src/component-files.js +612 -0
- package/dist/src/component-layer.js +132 -0
- package/dist/src/config.js +9 -2
- package/dist/src/configuration-files.js +186 -0
- package/dist/src/conformance-record.js +2 -2
- package/dist/src/convention-rows.js +383 -0
- package/dist/src/conventions.js +456 -0
- package/dist/src/dependencies.js +30 -3
- package/dist/src/discover.js +11 -4
- package/dist/src/emit-map.js +72 -0
- package/dist/src/entry-point-gaps.js +81 -35
- package/dist/src/entry-points.js +47 -32
- package/dist/src/exempt.js +11 -3
- package/dist/src/findings/completion.js +19 -29
- package/dist/src/findings/emitters.js +22 -1
- package/dist/src/findings/unused-declarations.js +7 -2
- package/dist/src/graph.js +13 -5
- package/dist/src/inventory.js +4 -2
- package/dist/src/kinds.js +2 -2
- package/dist/src/manifest.js +37 -11
- package/dist/src/matrix.js +21 -13
- package/dist/src/partial.js +3 -1
- package/dist/src/pnpm-workspace.js +120 -0
- package/dist/src/position.js +17 -2
- package/dist/src/print.js +2 -0
- package/dist/src/references.js +209 -30
- package/dist/src/report.js +26 -6
- package/dist/src/reporters/annotations.js +10 -3
- package/dist/src/reporters/template.js +6 -3
- package/dist/src/resolve.js +31 -6
- package/dist/src/roots.js +37 -8
- package/dist/src/run.js +13 -3
- package/dist/src/schema.js +4 -2
- package/dist/src/session.js +141 -34
- package/dist/src/setup-failure.js +23 -0
- package/dist/src/source-files.js +4 -61
- package/dist/src/sweep.js +4 -2
- package/dist/src/template-field.js +38 -6
- package/dist/src/test-support.js +59 -0
- package/dist/src/type-errors.js +252 -0
- package/dist/src/type-query-alias.js +92 -0
- package/dist/src/verbs/analyze.js +24 -4
- package/dist/src/verbs/explain.js +4 -1
- package/dist/src/verbs/print-projects.js +17 -56
- package/dist/src/verbs/print-retained.js +7 -2
- package/dist/src/verbs/print-roots.js +7 -2
- package/dist/src/version-range.js +255 -0
- package/dist/src/version.js +1 -1
- package/dist/src/workspace-manifests.js +68 -0
- package/dist/src/workspace-programs.js +342 -0
- package/dist/src/workspace-resolution.js +307 -0
- package/dist/src/workspace-run.js +75 -0
- package/dist/src/workspace.js +358 -0
- package/jsr.json +1 -1
- package/package.json +2 -1
- package/src/analysis.ts +395 -71
- package/src/component-files.ts +718 -0
- package/src/component-layer.ts +160 -0
- package/src/config.ts +11 -2
- package/src/configuration-files.ts +235 -0
- package/src/conformance-record.ts +2 -2
- package/src/convention-rows.ts +440 -0
- package/src/conventions.ts +640 -0
- package/src/dependencies.ts +36 -2
- package/src/discover.ts +11 -7
- package/src/emit-map.ts +93 -0
- package/src/entry-point-gaps.ts +92 -38
- package/src/entry-points.ts +66 -36
- package/src/exempt.ts +21 -3
- package/src/findings/completion.ts +24 -33
- package/src/findings/emitters.ts +32 -1
- package/src/findings/unused-declarations.ts +9 -2
- package/src/graph.ts +15 -4
- package/src/host.ts +23 -0
- package/src/index.ts +1 -1
- package/src/inventory.ts +13 -2
- package/src/kinds.ts +2 -2
- package/src/manifest.ts +47 -14
- package/src/matrix.ts +43 -15
- package/src/partial.ts +6 -1
- package/src/pnpm-workspace.ts +135 -0
- package/src/position.ts +23 -2
- package/src/print.ts +2 -0
- package/src/references.ts +227 -28
- package/src/report.ts +56 -6
- package/src/reporters/annotations.ts +12 -3
- package/src/reporters/template.ts +6 -3
- package/src/resolve.ts +59 -6
- package/src/roots.ts +60 -9
- package/src/run.ts +15 -5
- package/src/schema.ts +4 -2
- package/src/session.ts +218 -37
- package/src/setup-failure.ts +39 -0
- package/src/source-files.ts +4 -66
- package/src/sweep.ts +9 -2
- package/src/template-field.ts +42 -7
- package/src/test-support.ts +77 -0
- package/src/type-errors.ts +340 -0
- package/src/type-query-alias.ts +133 -0
- package/src/verbs/analyze.ts +38 -4
- package/src/verbs/explain.ts +4 -1
- package/src/verbs/print-projects.ts +17 -69
- package/src/verbs/print-retained.ts +7 -2
- package/src/verbs/print-roots.ts +7 -2
- package/src/verbs/verb.ts +6 -3
- package/src/version-range.ts +309 -0
- package/src/version.ts +1 -1
- package/src/workspace-manifests.ts +100 -0
- package/src/workspace-programs.ts +486 -0
- package/src/workspace-resolution.ts +393 -0
- package/src/workspace-run.ts +148 -0
- package/src/workspace.ts +463 -0
|
@@ -0,0 +1,440 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The convention rows this analyzer carries: the file-system conventions of one
|
|
3
|
+
* framework or tool each, as data. Nothing outside the table names a framework.
|
|
4
|
+
*
|
|
5
|
+
* A row's globs are matched against the directory of the manifest that declares its
|
|
6
|
+
* enabling package. A glob may hold `<id>` placeholders, each standing for the
|
|
7
|
+
* directory one of the row's moves resolves to.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/** A call whose first argument is the object a property is read from. */
|
|
11
|
+
export interface OptionsCall {
|
|
12
|
+
/** The module specifier the configuration file imports the callee from. */
|
|
13
|
+
readonly module: string;
|
|
14
|
+
/** The name the module exports the callee as. */
|
|
15
|
+
readonly export: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** One configuration property, and the configuration files it is read from. */
|
|
19
|
+
interface MoveReading {
|
|
20
|
+
/** The property's path through nested object literals, its keys joined by `.`. */
|
|
21
|
+
readonly property: string;
|
|
22
|
+
/** Globs naming the configuration files, matched in the manifest's directory alone. */
|
|
23
|
+
readonly files: readonly string[];
|
|
24
|
+
/** The call whose options hold the property; absent, the file's default export holds it. */
|
|
25
|
+
readonly call?: OptionsCall;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/** One directory a row's globs name that a configuration property moves. */
|
|
29
|
+
export interface DirectoryMove {
|
|
30
|
+
/** The placeholder the row's globs and later moves write as `<id>`. */
|
|
31
|
+
readonly id: string;
|
|
32
|
+
/**
|
|
33
|
+
* The directory a value and a default are read against, below the manifest's
|
|
34
|
+
* directory; it may hold an earlier move's placeholder. Absent, the manifest's
|
|
35
|
+
* directory itself.
|
|
36
|
+
*/
|
|
37
|
+
readonly base?: string;
|
|
38
|
+
/** The directories the globs read where no configuration file sets the property, each read. */
|
|
39
|
+
readonly defaults: readonly string[];
|
|
40
|
+
readonly readings: readonly MoveReading[];
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** One row: one framework's or tool's file-system conventions over one range of its versions. */
|
|
44
|
+
export interface ConventionRow {
|
|
45
|
+
/** Lowercase words joined by hyphens; rows of one name cover disjoint ranges. */
|
|
46
|
+
readonly name: string;
|
|
47
|
+
/** The package whose declaration as a dependency enables the row. */
|
|
48
|
+
readonly package: string;
|
|
49
|
+
/** The installed versions the row holds for, in the semantic-versioning range syntax. */
|
|
50
|
+
readonly range: string;
|
|
51
|
+
/** The globs of the files the row roots. */
|
|
52
|
+
readonly entries: readonly string[];
|
|
53
|
+
/** The globs of the files the row does not root, though an entry glob names them. */
|
|
54
|
+
readonly excludes?: readonly string[];
|
|
55
|
+
/** The directories configuration moves, in the order their placeholders depend on each other. */
|
|
56
|
+
readonly moves: readonly DirectoryMove[];
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const SCRIPT = "{js,jsx,ts,tsx}";
|
|
60
|
+
const MODULE = "{js,mjs,ts,mts}";
|
|
61
|
+
const ANY_MODULE = "{js,mjs,cjs,ts,mts,cts}";
|
|
62
|
+
const VITE_CONFIG = `vite.config.${ANY_MODULE}`;
|
|
63
|
+
|
|
64
|
+
const SVELTEKIT_ROUTE_FILES = "+{page,layout,server,page.server,layout.server,error}";
|
|
65
|
+
|
|
66
|
+
/** SvelteKit's entries other than its parameter matchers. */
|
|
67
|
+
const SVELTEKIT_ENTRIES = [
|
|
68
|
+
`<routes>/**/${SVELTEKIT_ROUTE_FILES}.{js,ts,svelte}`,
|
|
69
|
+
`<routes>/**/${SVELTEKIT_ROUTE_FILES}@*.{js,ts,svelte}`,
|
|
70
|
+
"<hooksClient>{,/index}.{js,ts}",
|
|
71
|
+
"<hooksServer>{,/index}.{js,ts}",
|
|
72
|
+
"<hooksUniversal>{,/index}.{js,ts}",
|
|
73
|
+
"<serviceWorker>{,/index}.{js,ts}",
|
|
74
|
+
"<src>/instrumentation.server.{js,ts}",
|
|
75
|
+
];
|
|
76
|
+
|
|
77
|
+
const SVELTEKIT_PLUGIN = { module: "@sveltejs/kit/vite", export: "sveltekit" };
|
|
78
|
+
|
|
79
|
+
/** The entries React Router's framework mode and Remix share below their app directory. */
|
|
80
|
+
const APP_DIRECTORY_ENTRIES = [
|
|
81
|
+
`<app>/root.${SCRIPT}`,
|
|
82
|
+
`<app>/routes.${MODULE}`,
|
|
83
|
+
`<app>/entry.{client,server}.${SCRIPT}`,
|
|
84
|
+
`<app>/routes/**/*.${SCRIPT}`,
|
|
85
|
+
];
|
|
86
|
+
|
|
87
|
+
const SOLIDSTART_PLUGIN = { module: "@solidjs/start/config", export: "solidStart" };
|
|
88
|
+
|
|
89
|
+
const NUXT_CONFIG = [`nuxt.config.${ANY_MODULE}`];
|
|
90
|
+
|
|
91
|
+
/** Every row, ordered by name and then by range. */
|
|
92
|
+
export const CONVENTION_ROWS: readonly ConventionRow[] = [
|
|
93
|
+
{
|
|
94
|
+
name: "astro",
|
|
95
|
+
package: "astro",
|
|
96
|
+
range: ">=5.0.0 <8.0.0",
|
|
97
|
+
entries: [
|
|
98
|
+
"<src>/pages/**/*.{astro,js,ts}",
|
|
99
|
+
"<src>/middleware{,/index}.{js,ts}",
|
|
100
|
+
"<src>/actions/index.{js,ts}",
|
|
101
|
+
`<src>/{content,live}.config.${MODULE}`,
|
|
102
|
+
`<src>/content/config.${MODULE}`,
|
|
103
|
+
],
|
|
104
|
+
excludes: ["<src>/pages/**/_*", "<src>/pages/**/_*/**"],
|
|
105
|
+
moves: [
|
|
106
|
+
{
|
|
107
|
+
id: "src",
|
|
108
|
+
defaults: ["src"],
|
|
109
|
+
readings: [{ property: "srcDir", files: [`astro.config.${ANY_MODULE}`] }],
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
name: "eslint",
|
|
115
|
+
package: "eslint",
|
|
116
|
+
range: ">=10.0.0 <11.0.0",
|
|
117
|
+
entries: [`**/eslint.config.${ANY_MODULE}`],
|
|
118
|
+
moves: [],
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
name: "expo-router",
|
|
122
|
+
package: "expo-router",
|
|
123
|
+
range: ">=3.0.0 <58.0.0",
|
|
124
|
+
entries: [`{,src/}app/**/*.${SCRIPT}`],
|
|
125
|
+
moves: [],
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: "next",
|
|
129
|
+
package: "next",
|
|
130
|
+
range: ">=13.4.0 <17.0.0",
|
|
131
|
+
entries: [
|
|
132
|
+
`{,src/}app/**/{layout,page,loading,not-found,error,route,template,default,forbidden,unauthorized}.${SCRIPT}`,
|
|
133
|
+
`{,src/}app/global-{error,not-found}.${SCRIPT}`,
|
|
134
|
+
`{,src/}app/**/{icon,apple-icon,opengraph-image,twitter-image}.${SCRIPT}`,
|
|
135
|
+
"{,src/}app/**/sitemap.{js,ts}",
|
|
136
|
+
"{,src/}app/{robots,manifest}.{js,ts}",
|
|
137
|
+
"{,src/}app/(*)/{robots,manifest}.{js,ts}",
|
|
138
|
+
`{,src/}pages/**/*.${SCRIPT}`,
|
|
139
|
+
`{,src/}{proxy,middleware,instrumentation,instrumentation-client,mdx-components}.${SCRIPT}`,
|
|
140
|
+
],
|
|
141
|
+
moves: [],
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: "nuxt",
|
|
145
|
+
package: "nuxt",
|
|
146
|
+
range: ">=3.0.0 <5.0.0",
|
|
147
|
+
entries: [
|
|
148
|
+
"<srcDir>/{app,error}.{vue,jsx,tsx}",
|
|
149
|
+
`<srcDir>/app.config.${MODULE}`,
|
|
150
|
+
"<srcDir>/router.options.{js,ts}",
|
|
151
|
+
"<pages>/**/*.{vue,js,jsx,ts,tsx}",
|
|
152
|
+
"<layouts>/**/*.{vue,jsx,tsx}",
|
|
153
|
+
"<middleware>/**/*.{js,ts}",
|
|
154
|
+
"<plugins>/**/*.{js,ts}",
|
|
155
|
+
"<modules>/*.{js,ts}",
|
|
156
|
+
"<modules>/*/index.{js,ts}",
|
|
157
|
+
`<serverDir>/{api,routes,middleware,plugins,tasks}/**/*.${MODULE}`,
|
|
158
|
+
`layers/*/nuxt.config.${MODULE}`,
|
|
159
|
+
],
|
|
160
|
+
moves: [
|
|
161
|
+
{
|
|
162
|
+
id: "srcDir",
|
|
163
|
+
defaults: ["app", "."],
|
|
164
|
+
readings: [{ property: "srcDir", files: NUXT_CONFIG }],
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
id: "pages",
|
|
168
|
+
base: "<srcDir>",
|
|
169
|
+
defaults: ["pages"],
|
|
170
|
+
readings: [{ property: "dir.pages", files: NUXT_CONFIG }],
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
id: "layouts",
|
|
174
|
+
base: "<srcDir>",
|
|
175
|
+
defaults: ["layouts"],
|
|
176
|
+
readings: [{ property: "dir.layouts", files: NUXT_CONFIG }],
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
id: "middleware",
|
|
180
|
+
base: "<srcDir>",
|
|
181
|
+
defaults: ["middleware"],
|
|
182
|
+
readings: [{ property: "dir.middleware", files: NUXT_CONFIG }],
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
id: "plugins",
|
|
186
|
+
base: "<srcDir>",
|
|
187
|
+
defaults: ["plugins"],
|
|
188
|
+
readings: [{ property: "dir.plugins", files: NUXT_CONFIG }],
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
id: "modules",
|
|
192
|
+
defaults: ["modules"],
|
|
193
|
+
readings: [{ property: "dir.modules", files: NUXT_CONFIG }],
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
id: "serverDir",
|
|
197
|
+
defaults: ["server"],
|
|
198
|
+
readings: [{ property: "serverDir", files: NUXT_CONFIG }],
|
|
199
|
+
},
|
|
200
|
+
],
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
name: "qwik-city",
|
|
204
|
+
package: "@builder.io/qwik-city",
|
|
205
|
+
range: ">=1.0.0 <2.0.0",
|
|
206
|
+
entries: [
|
|
207
|
+
"<srcDir>/root.{jsx,tsx}",
|
|
208
|
+
`<srcDir>/entry.*.${SCRIPT}`,
|
|
209
|
+
`<routesDir>/**/*.${SCRIPT}`,
|
|
210
|
+
],
|
|
211
|
+
moves: [
|
|
212
|
+
{
|
|
213
|
+
id: "srcDir",
|
|
214
|
+
defaults: ["src"],
|
|
215
|
+
readings: [
|
|
216
|
+
{
|
|
217
|
+
property: "srcDir",
|
|
218
|
+
files: [VITE_CONFIG],
|
|
219
|
+
call: { module: "@builder.io/qwik/optimizer", export: "qwikVite" },
|
|
220
|
+
},
|
|
221
|
+
],
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
id: "routesDir",
|
|
225
|
+
defaults: ["<srcDir>/routes"],
|
|
226
|
+
readings: [
|
|
227
|
+
{
|
|
228
|
+
property: "routesDir",
|
|
229
|
+
files: [VITE_CONFIG],
|
|
230
|
+
call: { module: "@builder.io/qwik-city/vite", export: "qwikCity" },
|
|
231
|
+
},
|
|
232
|
+
],
|
|
233
|
+
},
|
|
234
|
+
],
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
name: "react-router",
|
|
238
|
+
package: "@react-router/dev",
|
|
239
|
+
range: ">=7.0.0 <9.0.0",
|
|
240
|
+
entries: APP_DIRECTORY_ENTRIES,
|
|
241
|
+
moves: [
|
|
242
|
+
{
|
|
243
|
+
id: "app",
|
|
244
|
+
defaults: ["app"],
|
|
245
|
+
readings: [{ property: "appDirectory", files: [`react-router.config.${MODULE}`] }],
|
|
246
|
+
},
|
|
247
|
+
],
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
name: "remix",
|
|
251
|
+
package: "@remix-run/dev",
|
|
252
|
+
range: ">=2.0.0 <3.0.0",
|
|
253
|
+
entries: APP_DIRECTORY_ENTRIES,
|
|
254
|
+
moves: [
|
|
255
|
+
{
|
|
256
|
+
id: "app",
|
|
257
|
+
defaults: ["app"],
|
|
258
|
+
readings: [
|
|
259
|
+
{ property: "appDirectory", files: ["remix.config.{js,cjs,mjs}"] },
|
|
260
|
+
{
|
|
261
|
+
property: "appDirectory",
|
|
262
|
+
files: [VITE_CONFIG],
|
|
263
|
+
call: { module: "@remix-run/dev", export: "vitePlugin" },
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
property: "appDirectory",
|
|
267
|
+
files: [VITE_CONFIG],
|
|
268
|
+
call: { module: "@remix-run/dev", export: "unstable_vitePlugin" },
|
|
269
|
+
},
|
|
270
|
+
],
|
|
271
|
+
},
|
|
272
|
+
],
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
name: "solidstart",
|
|
276
|
+
package: "@solidjs/start",
|
|
277
|
+
range: ">=1.0.0 <3.0.0",
|
|
278
|
+
entries: [
|
|
279
|
+
`<appRoot>/app.${SCRIPT}`,
|
|
280
|
+
`<appRoot>/entry-{client,server}.${SCRIPT}`,
|
|
281
|
+
"<appRoot>/middleware{,/index}.{js,ts}",
|
|
282
|
+
`<routeDir>/**/*.${SCRIPT}`,
|
|
283
|
+
],
|
|
284
|
+
moves: [
|
|
285
|
+
{
|
|
286
|
+
id: "appRoot",
|
|
287
|
+
defaults: ["src"],
|
|
288
|
+
readings: [
|
|
289
|
+
{ property: "appRoot", files: [`app.config.${MODULE}`] },
|
|
290
|
+
{ property: "appRoot", files: [VITE_CONFIG], call: SOLIDSTART_PLUGIN },
|
|
291
|
+
],
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
id: "routeDir",
|
|
295
|
+
base: "<appRoot>",
|
|
296
|
+
defaults: ["routes"],
|
|
297
|
+
readings: [
|
|
298
|
+
{ property: "routeDir", files: [`app.config.${MODULE}`] },
|
|
299
|
+
{ property: "routeDir", files: [VITE_CONFIG], call: SOLIDSTART_PLUGIN },
|
|
300
|
+
],
|
|
301
|
+
},
|
|
302
|
+
],
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
name: "storybook",
|
|
306
|
+
package: "storybook",
|
|
307
|
+
range: ">=7.0.0 <11.0.0",
|
|
308
|
+
entries: [
|
|
309
|
+
`.storybook/{main,preview,manager,test-runner,vitest.setup}.{js,jsx,mjs,cjs,ts,tsx,mts,cts}`,
|
|
310
|
+
"**/*.stories.{js,jsx,mjs,ts,tsx,mts,svelte,vue}",
|
|
311
|
+
],
|
|
312
|
+
moves: [],
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
name: "sveltekit",
|
|
316
|
+
package: "@sveltejs/kit",
|
|
317
|
+
range: ">=2.0.0 <3.0.0",
|
|
318
|
+
entries: [...SVELTEKIT_ENTRIES, "<params>/*.{js,ts}"],
|
|
319
|
+
moves: [
|
|
320
|
+
{
|
|
321
|
+
id: "src",
|
|
322
|
+
defaults: ["src"],
|
|
323
|
+
readings: [
|
|
324
|
+
{ property: "kit.files.src", files: ["svelte.config.{js,mjs,ts}"] },
|
|
325
|
+
{ property: "files.src", files: [VITE_CONFIG], call: SVELTEKIT_PLUGIN },
|
|
326
|
+
],
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
id: "routes",
|
|
330
|
+
defaults: ["<src>/routes"],
|
|
331
|
+
readings: [
|
|
332
|
+
{ property: "kit.files.routes", files: ["svelte.config.{js,mjs,ts}"] },
|
|
333
|
+
{ property: "files.routes", files: [VITE_CONFIG], call: SVELTEKIT_PLUGIN },
|
|
334
|
+
],
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
id: "params",
|
|
338
|
+
defaults: ["<src>/params"],
|
|
339
|
+
readings: [
|
|
340
|
+
{ property: "kit.files.params", files: ["svelte.config.{js,mjs,ts}"] },
|
|
341
|
+
{ property: "files.params", files: [VITE_CONFIG], call: SVELTEKIT_PLUGIN },
|
|
342
|
+
],
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
id: "hooksClient",
|
|
346
|
+
defaults: ["<src>/hooks.client"],
|
|
347
|
+
readings: [
|
|
348
|
+
{ property: "kit.files.hooks.client", files: ["svelte.config.{js,mjs,ts}"] },
|
|
349
|
+
{ property: "files.hooks.client", files: [VITE_CONFIG], call: SVELTEKIT_PLUGIN },
|
|
350
|
+
],
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
id: "hooksServer",
|
|
354
|
+
defaults: ["<src>/hooks.server"],
|
|
355
|
+
readings: [
|
|
356
|
+
{ property: "kit.files.hooks.server", files: ["svelte.config.{js,mjs,ts}"] },
|
|
357
|
+
{ property: "files.hooks.server", files: [VITE_CONFIG], call: SVELTEKIT_PLUGIN },
|
|
358
|
+
],
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
id: "hooksUniversal",
|
|
362
|
+
defaults: ["<src>/hooks"],
|
|
363
|
+
readings: [
|
|
364
|
+
{ property: "kit.files.hooks.universal", files: ["svelte.config.{js,mjs,ts}"] },
|
|
365
|
+
{ property: "files.hooks.universal", files: [VITE_CONFIG], call: SVELTEKIT_PLUGIN },
|
|
366
|
+
],
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
id: "serviceWorker",
|
|
370
|
+
defaults: ["<src>/service-worker"],
|
|
371
|
+
readings: [
|
|
372
|
+
{ property: "kit.files.serviceWorker", files: ["svelte.config.{js,mjs,ts}"] },
|
|
373
|
+
{ property: "files.serviceWorker", files: [VITE_CONFIG], call: SVELTEKIT_PLUGIN },
|
|
374
|
+
],
|
|
375
|
+
},
|
|
376
|
+
],
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
name: "sveltekit",
|
|
380
|
+
package: "@sveltejs/kit",
|
|
381
|
+
range: ">=3.0.0 <4.0.0",
|
|
382
|
+
entries: [...SVELTEKIT_ENTRIES, "<params>.{js,ts}"],
|
|
383
|
+
moves: [
|
|
384
|
+
{
|
|
385
|
+
id: "src",
|
|
386
|
+
defaults: ["src"],
|
|
387
|
+
readings: [{ property: "files.src", files: [VITE_CONFIG], call: SVELTEKIT_PLUGIN }],
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
id: "routes",
|
|
391
|
+
defaults: ["<src>/routes"],
|
|
392
|
+
readings: [{ property: "files.routes", files: [VITE_CONFIG], call: SVELTEKIT_PLUGIN }],
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
id: "params",
|
|
396
|
+
defaults: ["<src>/params"],
|
|
397
|
+
readings: [{ property: "files.params", files: [VITE_CONFIG], call: SVELTEKIT_PLUGIN }],
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
id: "hooksClient",
|
|
401
|
+
defaults: ["<src>/hooks.client"],
|
|
402
|
+
readings: [
|
|
403
|
+
{ property: "files.hooks.client", files: [VITE_CONFIG], call: SVELTEKIT_PLUGIN },
|
|
404
|
+
],
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
id: "hooksServer",
|
|
408
|
+
defaults: ["<src>/hooks.server"],
|
|
409
|
+
readings: [
|
|
410
|
+
{ property: "files.hooks.server", files: [VITE_CONFIG], call: SVELTEKIT_PLUGIN },
|
|
411
|
+
],
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
id: "hooksUniversal",
|
|
415
|
+
defaults: ["<src>/hooks"],
|
|
416
|
+
readings: [
|
|
417
|
+
{ property: "files.hooks.universal", files: [VITE_CONFIG], call: SVELTEKIT_PLUGIN },
|
|
418
|
+
],
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
id: "serviceWorker",
|
|
422
|
+
defaults: ["<src>/service-worker"],
|
|
423
|
+
readings: [
|
|
424
|
+
{ property: "files.serviceWorker", files: [VITE_CONFIG], call: SVELTEKIT_PLUGIN },
|
|
425
|
+
],
|
|
426
|
+
},
|
|
427
|
+
],
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
name: "vitest",
|
|
431
|
+
package: "vitest",
|
|
432
|
+
range: ">=3.2.0 <6.0.0",
|
|
433
|
+
entries: [
|
|
434
|
+
`**/{vitest,vite}.config.${ANY_MODULE}`,
|
|
435
|
+
`**/{vitest,vite}.config.*.${ANY_MODULE}`,
|
|
436
|
+
`**/{vitest,vite}.*.config.${ANY_MODULE}`,
|
|
437
|
+
],
|
|
438
|
+
moves: [],
|
|
439
|
+
},
|
|
440
|
+
];
|