@wolfstar/http-framework 5.0.0-next-20260919162943 → 5.1.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 +18 -3
- package/bin/stars.mjs +2 -0
- package/config.d.ts +1 -0
- package/config.js +1 -0
- package/dist/esm/auto-imports.d.ts +1 -1
- package/dist/esm/auto-imports.js +1 -1
- package/dist/esm/auto-imports.js.map +1 -1
- package/dist/esm/config.d.ts +1 -2
- package/dist/esm/config.js +2 -871
- package/dist/esm/index.js +10 -10
- package/package.json +22 -7
- package/schema.d.ts +1 -0
- package/schema.js +1 -0
- package/dist/esm/config.js.map +0 -1
- package/dist/esm/resolve-B0J5V4xC.d.ts +0 -829
- package/dist/esm/resolve-B0J5V4xC.d.ts.map +0 -1
|
@@ -1,829 +0,0 @@
|
|
|
1
|
-
//#region src/lib/config/load.d.ts
|
|
2
|
-
declare const CONFIG_EXTENSIONS: readonly ['ts', 'mts', 'cts', 'js', 'mjs', 'cjs'];
|
|
3
|
-
declare const CONFIG_FILE_NAMES: string[];
|
|
4
|
-
interface LoadConfigFileOptions {
|
|
5
|
-
/** The directory to discover the configuration file from. */
|
|
6
|
-
cwd: string;
|
|
7
|
-
/** An explicit configuration file (`--config`), resolved from `cwd`. */
|
|
8
|
-
configFile?: string | null;
|
|
9
|
-
}
|
|
10
|
-
interface LoadedConfigFile {
|
|
11
|
-
/** The absolute path of the loaded file, `null` when running on defaults. */
|
|
12
|
-
configFile: string | null;
|
|
13
|
-
config: StarsConfig;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Finds the first `stars.config.*` file in `cwd`, in {@link CONFIG_FILE_NAMES} order.
|
|
17
|
-
*/
|
|
18
|
-
declare function discoverConfigFile(cwd: string): string | null;
|
|
19
|
-
/**
|
|
20
|
-
* Loads the raw configuration object. The loader (`c12`) is imported lazily so
|
|
21
|
-
* commands that never touch the configuration stay fast.
|
|
22
|
-
*/
|
|
23
|
-
declare function loadConfigFile(options: LoadConfigFileOptions): Promise<LoadedConfigFile>;
|
|
24
|
-
//#endregion
|
|
25
|
-
//#region src/lib/config/errors.d.ts
|
|
26
|
-
/**
|
|
27
|
-
* Structured, stable diagnostic codes for every way a `stars.config.*` can fail to load or validate.
|
|
28
|
-
*
|
|
29
|
-
* This is a plain data error (no exit code or terminal formatting), so nothing here reports anywhere on its own —
|
|
30
|
-
* `reporters` stays empty and each call only builds and returns a `Diagnostic`. That keeps it meaningful outside a
|
|
31
|
-
* CLI, e.g. for a dashboard or test that calls {@link loadStarsConfig} directly; `@wolfstar/cli` is what renders it
|
|
32
|
-
* and picks an exit code (`exitCodeOf`).
|
|
33
|
-
*
|
|
34
|
-
* The `sources` field (populated with the configuration file, when there is one) carries the "which file" grounding
|
|
35
|
-
* `ConfigError` used to expose as `.file`; the "which option" grounding it exposed as `.path` is folded directly into
|
|
36
|
-
* every `why`/`fix` message instead, the way every other diagnostic code already reads.
|
|
37
|
-
*
|
|
38
|
-
* `why` and `fix` are always given the same, fully-typed params object (even when one of them ignores part of it):
|
|
39
|
-
* a bare `() => value` loses nostics' param-type inference (a zero-arg function widens to `unknown` params), so every
|
|
40
|
-
* entry here spells out its shape on both sides instead.
|
|
41
|
-
*/
|
|
42
|
-
declare const configDiagnostics: import("nostics").Diagnostics<{
|
|
43
|
-
readonly ROOT_NOT_FOUND: {
|
|
44
|
-
why: (p: {
|
|
45
|
-
root: string;
|
|
46
|
-
}) => string;
|
|
47
|
-
fix: (_p: {
|
|
48
|
-
root: string;
|
|
49
|
-
}) => string;
|
|
50
|
-
};
|
|
51
|
-
readonly PACKAGE_JSON_INVALID: {
|
|
52
|
-
why: (p: {
|
|
53
|
-
file: string;
|
|
54
|
-
message: string;
|
|
55
|
-
}) => string;
|
|
56
|
-
fix: (_p: {
|
|
57
|
-
file: string;
|
|
58
|
-
message: string;
|
|
59
|
-
}) => string;
|
|
60
|
-
};
|
|
61
|
-
readonly ENTRY_NOT_FOUND: {
|
|
62
|
-
why: (p: {
|
|
63
|
-
entry: string;
|
|
64
|
-
}) => string;
|
|
65
|
-
fix: (_p: {
|
|
66
|
-
entry: string;
|
|
67
|
-
}) => string;
|
|
68
|
-
};
|
|
69
|
-
readonly ENTRY_DEFAULT_NOT_FOUND: {
|
|
70
|
-
why: (p: {
|
|
71
|
-
root: string;
|
|
72
|
-
defaults: string;
|
|
73
|
-
}) => string;
|
|
74
|
-
fix: (p: {
|
|
75
|
-
root: string;
|
|
76
|
-
defaults: string;
|
|
77
|
-
}) => string;
|
|
78
|
-
};
|
|
79
|
-
readonly INVALID_BUILD_TOOL: {
|
|
80
|
-
why: (p: {
|
|
81
|
-
tool: string;
|
|
82
|
-
}) => string;
|
|
83
|
-
fix: (_p: {
|
|
84
|
-
tool: string;
|
|
85
|
-
}) => string;
|
|
86
|
-
};
|
|
87
|
-
readonly EXPERIMENTAL_BUILD_TOOL: {
|
|
88
|
-
why: (p: {
|
|
89
|
-
tool: string;
|
|
90
|
-
flag: string;
|
|
91
|
-
}) => string;
|
|
92
|
-
fix: (p: {
|
|
93
|
-
tool: string;
|
|
94
|
-
flag: string;
|
|
95
|
-
}) => string;
|
|
96
|
-
};
|
|
97
|
-
readonly BUILD_TOOL_REQUIRED: {
|
|
98
|
-
why: (p: {
|
|
99
|
-
entry: string;
|
|
100
|
-
}) => string;
|
|
101
|
-
fix: (_p: {
|
|
102
|
-
entry: string;
|
|
103
|
-
}) => string;
|
|
104
|
-
};
|
|
105
|
-
readonly TSCONFIG_EXPLICIT_NOT_FOUND: {
|
|
106
|
-
why: (p: {
|
|
107
|
-
tsconfig: string;
|
|
108
|
-
path: string;
|
|
109
|
-
}) => string;
|
|
110
|
-
fix: (p: {
|
|
111
|
-
tsconfig: string;
|
|
112
|
-
path: string;
|
|
113
|
-
}) => string;
|
|
114
|
-
};
|
|
115
|
-
readonly TSCONFIG_NOT_FOUND: {
|
|
116
|
-
why: (p: {
|
|
117
|
-
root: string;
|
|
118
|
-
suggestion: string;
|
|
119
|
-
}) => string;
|
|
120
|
-
fix: (p: {
|
|
121
|
-
root: string;
|
|
122
|
-
suggestion: string;
|
|
123
|
-
}) => string;
|
|
124
|
-
};
|
|
125
|
-
readonly TSDOWN_OPTIONS_REQUIRE_TSDOWN: {
|
|
126
|
-
why: (_p: {
|
|
127
|
-
tool: string;
|
|
128
|
-
}) => string;
|
|
129
|
-
fix: (p: {
|
|
130
|
-
tool: string;
|
|
131
|
-
}) => string;
|
|
132
|
-
};
|
|
133
|
-
readonly VITE_OPTIONS_REQUIRE_VITE: {
|
|
134
|
-
why: (_p: {
|
|
135
|
-
tool: string;
|
|
136
|
-
}) => string;
|
|
137
|
-
fix: (p: {
|
|
138
|
-
tool: string;
|
|
139
|
-
}) => string;
|
|
140
|
-
};
|
|
141
|
-
readonly TSDOWN_CONFIG_FILE_UNSUPPORTED: {
|
|
142
|
-
why: (p: {
|
|
143
|
-
file: string;
|
|
144
|
-
version: number;
|
|
145
|
-
legacyVersion: number;
|
|
146
|
-
}) => string;
|
|
147
|
-
fix: (p: {
|
|
148
|
-
file: string;
|
|
149
|
-
version: number;
|
|
150
|
-
legacyVersion: number;
|
|
151
|
-
}) => string;
|
|
152
|
-
};
|
|
153
|
-
readonly INVALID_TYPE: {
|
|
154
|
-
why: (p: {
|
|
155
|
-
path: string;
|
|
156
|
-
expected: string;
|
|
157
|
-
value: unknown;
|
|
158
|
-
fix: string;
|
|
159
|
-
}) => string;
|
|
160
|
-
fix: (p: {
|
|
161
|
-
path: string;
|
|
162
|
-
expected: string;
|
|
163
|
-
value: unknown;
|
|
164
|
-
fix: string;
|
|
165
|
-
}) => string;
|
|
166
|
-
};
|
|
167
|
-
readonly INVALID_COMPATIBILITY_VERSION: {
|
|
168
|
-
why: (p: {
|
|
169
|
-
value: unknown;
|
|
170
|
-
legacyVersion: number;
|
|
171
|
-
latestVersion: number;
|
|
172
|
-
}) => string;
|
|
173
|
-
fix: (p: {
|
|
174
|
-
value: unknown;
|
|
175
|
-
legacyVersion: number;
|
|
176
|
-
latestVersion: number;
|
|
177
|
-
}) => string;
|
|
178
|
-
};
|
|
179
|
-
readonly UNKNOWN_OPTION: {
|
|
180
|
-
why: (p: {
|
|
181
|
-
path: string;
|
|
182
|
-
parent: string;
|
|
183
|
-
known: string;
|
|
184
|
-
}) => string;
|
|
185
|
-
fix: (p: {
|
|
186
|
-
path: string;
|
|
187
|
-
parent: string;
|
|
188
|
-
known: string;
|
|
189
|
-
}) => string;
|
|
190
|
-
};
|
|
191
|
-
readonly EXPERIMENT_REQUIRED: {
|
|
192
|
-
why: (p: {
|
|
193
|
-
path: string;
|
|
194
|
-
requires: string;
|
|
195
|
-
drop: string;
|
|
196
|
-
}) => string;
|
|
197
|
-
fix: (p: {
|
|
198
|
-
path: string;
|
|
199
|
-
requires: string;
|
|
200
|
-
drop: string;
|
|
201
|
-
}) => string;
|
|
202
|
-
};
|
|
203
|
-
readonly IMPORTS_REQUIRE_TSDOWN: {
|
|
204
|
-
why: (_p: {}) => string;
|
|
205
|
-
fix: (_p: {}) => string;
|
|
206
|
-
};
|
|
207
|
-
readonly LOCALES_NOT_FOUND: {
|
|
208
|
-
why: (p: {
|
|
209
|
-
locales: string;
|
|
210
|
-
}) => string;
|
|
211
|
-
fix: (_p: {
|
|
212
|
-
locales: string;
|
|
213
|
-
}) => string;
|
|
214
|
-
};
|
|
215
|
-
readonly INVALID_URL: {
|
|
216
|
-
why: (p: {
|
|
217
|
-
url: string;
|
|
218
|
-
fix: string;
|
|
219
|
-
}) => string;
|
|
220
|
-
fix: (p: {
|
|
221
|
-
url: string;
|
|
222
|
-
fix: string;
|
|
223
|
-
}) => string;
|
|
224
|
-
};
|
|
225
|
-
readonly TUNNEL_URL_NOT_HTTPS: {
|
|
226
|
-
why: (p: {
|
|
227
|
-
url: string;
|
|
228
|
-
}) => string;
|
|
229
|
-
fix: (_p: {
|
|
230
|
-
url: string;
|
|
231
|
-
}) => string;
|
|
232
|
-
};
|
|
233
|
-
readonly INVALID_TYPECHECKER: {
|
|
234
|
-
why: (p: {
|
|
235
|
-
checker: string;
|
|
236
|
-
}) => string;
|
|
237
|
-
fix: (_p: {
|
|
238
|
-
checker: string;
|
|
239
|
-
}) => string;
|
|
240
|
-
};
|
|
241
|
-
readonly CONFIG_NOT_FOUND: {
|
|
242
|
-
why: (p: {
|
|
243
|
-
file: string;
|
|
244
|
-
cwd: string;
|
|
245
|
-
names: string;
|
|
246
|
-
}) => string;
|
|
247
|
-
fix: (p: {
|
|
248
|
-
file: string;
|
|
249
|
-
cwd: string;
|
|
250
|
-
names: string;
|
|
251
|
-
}) => string;
|
|
252
|
-
};
|
|
253
|
-
readonly CONFIG_LOAD_FAILED: {
|
|
254
|
-
why: (p: {
|
|
255
|
-
message: string;
|
|
256
|
-
}) => string;
|
|
257
|
-
fix: (_p: {
|
|
258
|
-
message: string;
|
|
259
|
-
}) => string;
|
|
260
|
-
};
|
|
261
|
-
readonly CONFIG_NOT_OBJECT: {
|
|
262
|
-
why: (_p: {}) => string;
|
|
263
|
-
fix: (_p: {}) => string;
|
|
264
|
-
};
|
|
265
|
-
}, readonly []>;
|
|
266
|
-
type ConfigDiagnosticCode = keyof typeof configDiagnostics;
|
|
267
|
-
//#endregion
|
|
268
|
-
//#region src/lib/config/index.d.ts
|
|
269
|
-
interface LoadStarsConfigOptions {
|
|
270
|
-
/**
|
|
271
|
-
* The directory to discover `stars.config.*` from.
|
|
272
|
-
* @default process.cwd()
|
|
273
|
-
*/
|
|
274
|
-
cwd?: string;
|
|
275
|
-
/** An explicit configuration file, resolved from `cwd`. */
|
|
276
|
-
configFile?: string | null;
|
|
277
|
-
/**
|
|
278
|
-
* Environment used for defaults such as `HTTP_PORT`.
|
|
279
|
-
* @default process.env
|
|
280
|
-
*/
|
|
281
|
-
env?: NodeJS.ProcessEnv;
|
|
282
|
-
}
|
|
283
|
-
/**
|
|
284
|
-
* Loads, validates and resolves a project's `stars.config.*`.
|
|
285
|
-
*
|
|
286
|
-
* @throws {Diagnostic} (from `nostics`, via {@link configDiagnostics}) when the configuration file cannot be loaded or contains an invalid option.
|
|
287
|
-
*/
|
|
288
|
-
declare function loadStarsConfig(options?: LoadStarsConfigOptions): Promise<ResolvedStarsConfig>;
|
|
289
|
-
//#endregion
|
|
290
|
-
//#region src/config.d.ts
|
|
291
|
-
/**
|
|
292
|
-
* Public, side-effect free configuration surface of `@wolfstar/cli`.
|
|
293
|
-
*
|
|
294
|
-
* This module is intentionally tiny: importing it from a `stars.config.ts`
|
|
295
|
-
* file must never start the bot nor pull the heavy runtime of the CLI.
|
|
296
|
-
*
|
|
297
|
-
* @module @wolfstar/http-framework/config
|
|
298
|
-
*/
|
|
299
|
-
/**
|
|
300
|
-
* The build tool used to turn the project sources into runnable JavaScript.
|
|
301
|
-
*
|
|
302
|
-
* - `tsdown`: run the project's own `tsdown` programmatically, configured from {@link StarsConfig.tsdown} (and, with
|
|
303
|
-
* {@link StarsFutureConfig.compatibilityVersion} `3`, from the project's `tsdown.config.*` too).
|
|
304
|
-
* - `tsc`: run the project's `tsc -b` on the configured `tsconfig`.
|
|
305
|
-
* - `vite`: run the project's own `vite` (configuration file included), requires `experimental.enableVite`.
|
|
306
|
-
* - `none`: the entry is runnable as-is (JavaScript projects), no build step.
|
|
307
|
-
* - `auto`: detect from the project (default).
|
|
308
|
-
*/
|
|
309
|
-
type StarsBuildTool = 'tsdown' | 'tsc' | 'none' | 'vite';
|
|
310
|
-
interface StarsBuildConfig {
|
|
311
|
-
/**
|
|
312
|
-
* The build tool to use.
|
|
313
|
-
* @default 'auto'
|
|
314
|
-
*/
|
|
315
|
-
tool?: StarsBuildTool | 'auto';
|
|
316
|
-
/**
|
|
317
|
-
* The directory, relative to {@link StarsConfig.root}, the build writes into.
|
|
318
|
-
* @default 'dist', or '.output' when `experimental.enableNitro` is on (Nitro's own convention)
|
|
319
|
-
*/
|
|
320
|
-
outDir?: string;
|
|
321
|
-
/**
|
|
322
|
-
* The `tsconfig.json` the `tsc` and `tsdown` build tools use, relative to {@link StarsConfig.root}.
|
|
323
|
-
* @default 'src/tsconfig.json' when it exists, 'tsconfig.json' otherwise
|
|
324
|
-
*/
|
|
325
|
-
tsconfig?: string;
|
|
326
|
-
}
|
|
327
|
-
/**
|
|
328
|
-
* Raw options merged into the project's own `vite.config.*`, the way `vite: {}` in a Nuxt config is merged into
|
|
329
|
-
* Nuxt's own Vite config. Kept as `unknown` here (the CLI, not the framework, depends on `vite`'s types) and passed
|
|
330
|
-
* to Vite's `mergeConfig` as-is.
|
|
331
|
-
*/
|
|
332
|
-
type StarsViteConfig = Record<string, unknown>;
|
|
333
|
-
/**
|
|
334
|
-
* Options for `tsdown`, the bundler `stars build` uses by default.
|
|
335
|
-
*
|
|
336
|
-
* With {@link StarsFutureConfig.compatibilityVersion} `4` these replace `tsdown.config.*` outright: the build is
|
|
337
|
-
* derived from `stars.config` (the entry's directory, `build.outDir`, `build.tsconfig`) and these options are layered
|
|
338
|
-
* on top, so a project keeps one configuration file instead of two. With `3` the project's own `tsdown.config.*` is
|
|
339
|
-
* still loaded and these are merged over it, the way `vite: {}` in a Nuxt config is merged into the project's own
|
|
340
|
-
* Vite config: values here win, and `plugins` are appended rather than replaced.
|
|
341
|
-
*
|
|
342
|
-
* The options named below are the ones a bot usually reaches for. Every other `tsdown` option is accepted as-is —
|
|
343
|
-
* the framework does not depend on `tsdown`, so they stay loosely typed here and `tsdown`'s own `UserConfig` is the
|
|
344
|
-
* reference.
|
|
345
|
-
*/
|
|
346
|
-
interface StarsTsdownConfig {
|
|
347
|
-
/** Entry files or glob patterns, relative to the project root. Defaults to every source file next to `entry`. */
|
|
348
|
-
entry?: string | readonly string[] | Record<string, string>;
|
|
349
|
-
/** @default 'esm' */
|
|
350
|
-
format?: 'esm' | 'cjs' | 'iife' | 'umd' | readonly string[] | Record<string, unknown>;
|
|
351
|
-
/** @default 'node' */
|
|
352
|
-
platform?: 'node' | 'neutral' | 'browser';
|
|
353
|
-
target?: string | readonly string[] | false;
|
|
354
|
-
/**
|
|
355
|
-
* Emits one output file per source file instead of a single bundle, so pieces stay loadable from `dist/commands`
|
|
356
|
-
* and friends at runtime.
|
|
357
|
-
* @default true
|
|
358
|
-
*/
|
|
359
|
-
unbundle?: boolean;
|
|
360
|
-
/** Rolldown plugins. Appended to the ones `stars` adds (auto imports) and to those of a `tsdown.config.*`. */
|
|
361
|
-
plugins?: readonly unknown[];
|
|
362
|
-
alias?: Record<string, string>;
|
|
363
|
-
define?: Record<string, string>;
|
|
364
|
-
external?: unknown;
|
|
365
|
-
noExternal?: unknown;
|
|
366
|
-
deps?: Record<string, unknown>;
|
|
367
|
-
/** @default () => ({ js: extname(build.output) }) */
|
|
368
|
-
outExtensions?: unknown;
|
|
369
|
-
/** @default true */
|
|
370
|
-
sourcemap?: boolean | 'inline' | 'hidden';
|
|
371
|
-
minify?: unknown;
|
|
372
|
-
/** @default false — a bot is not a library, so no declaration files are emitted. */
|
|
373
|
-
dts?: boolean | Record<string, unknown>;
|
|
374
|
-
/** @default true */
|
|
375
|
-
clean?: boolean | readonly string[];
|
|
376
|
-
treeshake?: boolean;
|
|
377
|
-
copy?: unknown;
|
|
378
|
-
hooks?: Record<string, unknown>;
|
|
379
|
-
[option: string]: unknown;
|
|
380
|
-
}
|
|
381
|
-
/**
|
|
382
|
-
* The build-default generation the project runs on. Version 4 is current; version 3 remains available for projects
|
|
383
|
-
* that still load a standalone `tsdown.config.*`.
|
|
384
|
-
*/
|
|
385
|
-
type StarsCompatibilityVersion = 3 | 4;
|
|
386
|
-
/**
|
|
387
|
-
* Nuxt-style compatibility block. New projects need not set it; version 3 is retained as an explicit migration
|
|
388
|
-
* escape hatch for projects that still use a standalone `tsdown.config.*`.
|
|
389
|
-
*/
|
|
390
|
-
interface StarsFutureConfig {
|
|
391
|
-
/**
|
|
392
|
-
* The major whose defaults apply.
|
|
393
|
-
*
|
|
394
|
-
* `4` is the default build pipeline:
|
|
395
|
-
* - auto imports are on by default with the `tsdown` build tool ({@link StarsImportsConfig}), and the
|
|
396
|
-
* `autoImports()` plugin is wired into the build by `stars` itself.
|
|
397
|
-
* - `tsdown` is configured from {@link StarsConfig.tsdown} only. A `tsdown.config.*` in the project root is
|
|
398
|
-
* rejected rather than silently ignored, so a build never loses the plugins it declares.
|
|
399
|
-
* - `build.tool: 'auto'` resolves to `tsdown` for any TypeScript entry, without looking for a `tsdown.config.*`
|
|
400
|
-
* or a `tsdown` dependency first.
|
|
401
|
-
*
|
|
402
|
-
* `3` keeps the legacy behaviour: auto imports off unless asked for, and a `tsdown.config.*` loaded and merged with
|
|
403
|
-
* {@link StarsConfig.tsdown}.
|
|
404
|
-
* @default 4
|
|
405
|
-
*/
|
|
406
|
-
compatibilityVersion?: StarsCompatibilityVersion;
|
|
407
|
-
}
|
|
408
|
-
/**
|
|
409
|
-
* The type checker `stars dev` runs next to the bot.
|
|
410
|
-
*
|
|
411
|
-
* - `tsc`: the project's own TypeScript, in watch mode.
|
|
412
|
-
* - `golar`: the project's `golar`, forwarding to TypeScript (`golar tsc`), in watch mode.
|
|
413
|
-
* - `tsz`: the project's `tsz` (or `try-tsz`). It has no watch mode, so it is re-run after every build instead.
|
|
414
|
-
* - `auto`: `golar` when the project depends on it, `tsc` otherwise (default).
|
|
415
|
-
*/
|
|
416
|
-
type StarsTypechecker = 'tsc' | 'golar' | 'tsz';
|
|
417
|
-
interface StarsTypecheckConfig {
|
|
418
|
-
/**
|
|
419
|
-
* The `tsconfig.json` the type checker runs against, relative to {@link StarsConfig.root}.
|
|
420
|
-
* @default the build tool's tsconfig, 'src/tsconfig.json' or 'tsconfig.json'
|
|
421
|
-
*/
|
|
422
|
-
tsconfig?: string;
|
|
423
|
-
/**
|
|
424
|
-
* Which type checker to run.
|
|
425
|
-
* @default 'auto'
|
|
426
|
-
*/
|
|
427
|
-
checker?: StarsTypechecker | 'auto';
|
|
428
|
-
}
|
|
429
|
-
interface StarsTunnelConfig {
|
|
430
|
-
/**
|
|
431
|
-
* An https URL you already serve; when unset a `cloudflared` quick tunnel is opened instead.
|
|
432
|
-
*/
|
|
433
|
-
url?: string;
|
|
434
|
-
/**
|
|
435
|
-
* Writes the tunnel's URL to the Discord application's `interactions_endpoint_url` when it changes.
|
|
436
|
-
*
|
|
437
|
-
* This edits a live Discord application, so it is opt-in: it needs `DISCORD_TOKEN` and `DISCORD_APPLICATION_ID`
|
|
438
|
-
* (or `APPLICATION_ID`) in the environment or the project's `.env`.
|
|
439
|
-
* @default false
|
|
440
|
-
*/
|
|
441
|
-
updateEndpoint?: boolean;
|
|
442
|
-
/**
|
|
443
|
-
* The path the interactions endpoint is served on, appended to the tunnel URL.
|
|
444
|
-
* @default '/'
|
|
445
|
-
*/
|
|
446
|
-
path?: string;
|
|
447
|
-
}
|
|
448
|
-
interface StarsDevConfig {
|
|
449
|
-
/** Custom terminal wordmark (one or more lines), or `false` to hide it. Defaults to the Stars wordmark. */
|
|
450
|
-
banner?: string | readonly string[] | false;
|
|
451
|
-
/**
|
|
452
|
-
* Extra paths to watch, relative to {@link StarsConfig.root}. Only used when
|
|
453
|
-
* the build tool is `none`; `tsdown` and `tsc` watch through their own build.
|
|
454
|
-
* @default [dirname(entry)]
|
|
455
|
-
*/
|
|
456
|
-
watch?: string[];
|
|
457
|
-
/**
|
|
458
|
-
* Glob patterns or paths to ignore while watching, relative to {@link StarsConfig.root}.
|
|
459
|
-
* @default ['**\/node_modules/**', '**\/dist/**', '**\/.git/**']
|
|
460
|
-
*/
|
|
461
|
-
ignore?: string[];
|
|
462
|
-
/**
|
|
463
|
-
* Milliseconds to wait after a change before restarting the bot.
|
|
464
|
-
* @default 150
|
|
465
|
-
*/
|
|
466
|
-
debounce?: number;
|
|
467
|
-
/**
|
|
468
|
-
* Environment variables added to the bot process.
|
|
469
|
-
*/
|
|
470
|
-
env?: Record<string, string>;
|
|
471
|
-
/**
|
|
472
|
-
* Arguments passed to `node` before the entry file.
|
|
473
|
-
* @default ['--enable-source-maps']
|
|
474
|
-
*/
|
|
475
|
-
nodeArgs?: string[];
|
|
476
|
-
/**
|
|
477
|
-
* Arguments passed to the bot after the entry file.
|
|
478
|
-
* @default []
|
|
479
|
-
*/
|
|
480
|
-
args?: string[];
|
|
481
|
-
/**
|
|
482
|
-
* The URL the bot listens on, shown in the dev UI's status line and used for {@link StarsDevConfig.health}.
|
|
483
|
-
*
|
|
484
|
-
* Resolved automatically, the way Vite's and Nuxt's dev servers do, from (in order) `dev.env.HTTP_PORT`, the
|
|
485
|
-
* process's `HTTP_PORT`, the project's `src/.env*`/`.env*` (`HTTP_PORT` or `PORT`), or `3000`. `stars dev` also
|
|
486
|
-
* resolves whether `localhost` should be shown as `127.0.0.1` instead, the same DNS-order check Vite does, so the
|
|
487
|
-
* printed URL is always the one that is actually reachable.
|
|
488
|
-
* @default `http://localhost:3000` (or whichever port is found)
|
|
489
|
-
*/
|
|
490
|
-
url?: string;
|
|
491
|
-
/**
|
|
492
|
-
* A path, relative to {@link StarsDevConfig.url}, polled to report the bot's health in the dev UI.
|
|
493
|
-
* When unset the dev UI only reports process state.
|
|
494
|
-
*/
|
|
495
|
-
health?: string;
|
|
496
|
-
/**
|
|
497
|
-
* Milliseconds to wait for the bot to exit after `SIGTERM` before killing it.
|
|
498
|
-
* @default 5000
|
|
499
|
-
*/
|
|
500
|
-
killTimeout?: number;
|
|
501
|
-
/**
|
|
502
|
-
* Runs a type checker next to the bot and reports type errors on the dev UI's `tsc` channel, without blocking
|
|
503
|
-
* builds or restarts. `true` uses the project's own tsconfig and type checker, an object picks either
|
|
504
|
-
* ({@link StarsTypecheckConfig.checker}).
|
|
505
|
-
* @default false
|
|
506
|
-
*/
|
|
507
|
-
typecheck?: boolean | StarsTypecheckConfig;
|
|
508
|
-
/**
|
|
509
|
-
* Exposes the bot's HTTP interactions endpoint publicly while `stars dev` runs, so Discord can reach it.
|
|
510
|
-
*
|
|
511
|
-
* `true` opens a `cloudflared` quick tunnel (its hostname changes on every run), a string is an https URL you
|
|
512
|
-
* already serve yourself (named tunnel, reverse proxy, …) that the CLI only checks for reachability.
|
|
513
|
-
* @default false
|
|
514
|
-
*/
|
|
515
|
-
tunnel?: boolean | string | StarsTunnelConfig;
|
|
516
|
-
/**
|
|
517
|
-
* The file `stars dev` mirrors its logs into, relative to {@link StarsConfig.root}, so a session can be read back
|
|
518
|
-
* after the terminal UI is gone. `false` disables it.
|
|
519
|
-
* @default '.stars/dev.log'
|
|
520
|
-
*/
|
|
521
|
-
logFile?: string | false;
|
|
522
|
-
}
|
|
523
|
-
interface StarsI18nCodegenConfig {
|
|
524
|
-
/**
|
|
525
|
-
* The base locale directory, relative to {@link StarsConfig.root}.
|
|
526
|
-
* @default 'src/locales/en-US'
|
|
527
|
-
*/
|
|
528
|
-
locales?: string;
|
|
529
|
-
/**
|
|
530
|
-
* The generated declaration file, relative to {@link StarsConfig.root}.
|
|
531
|
-
* @default 'src/@types/i18next.d.ts'
|
|
532
|
-
*/
|
|
533
|
-
output?: string;
|
|
534
|
-
}
|
|
535
|
-
interface StarsCodegenConfig {
|
|
536
|
-
/**
|
|
537
|
-
* i18next type generation through `@wolfstar/i18next-type-generator`.
|
|
538
|
-
* `false` disables it, an object enables it, unset auto-detects from the presence of the locales directory.
|
|
539
|
-
*/
|
|
540
|
-
i18n?: StarsI18nCodegenConfig | false;
|
|
541
|
-
}
|
|
542
|
-
interface StarsImportsConfig {
|
|
543
|
-
/**
|
|
544
|
-
* Whether auto imports are enabled. Requires the `tsdown` build tool: the imports are injected at build time by
|
|
545
|
-
* the `autoImports()` plugin from `@wolfstar/http-framework/auto-imports`, which the other tools cannot run.
|
|
546
|
-
* @default true when the build tool is 'tsdown', false otherwise
|
|
547
|
-
*/
|
|
548
|
-
enabled?: boolean;
|
|
549
|
-
/**
|
|
550
|
-
* Directories, relative to {@link StarsConfig.root}, whose exported values are auto-importable. Entries are glob
|
|
551
|
-
* path patterns: `'src/lib'` scans only the files directly inside it, `'src/lib/**'` scans recursively.
|
|
552
|
-
* @default ['src/lib/**', 'src/utils/**']
|
|
553
|
-
*/
|
|
554
|
-
dirs?: string[];
|
|
555
|
-
/**
|
|
556
|
-
* Packages whose exports are auto-importable. Packages that are not installed are skipped.
|
|
557
|
-
* @default ['@wolfstar/http-framework', '@wolfstar/env-utilities']
|
|
558
|
-
*/
|
|
559
|
-
presets?: string[];
|
|
560
|
-
/**
|
|
561
|
-
* Export names excluded from auto imports, e.g. to avoid clashes with project-local names.
|
|
562
|
-
* @default []
|
|
563
|
-
*/
|
|
564
|
-
exclude?: string[];
|
|
565
|
-
/**
|
|
566
|
-
* The generated declaration file that types the auto imports, relative to {@link StarsConfig.root}.
|
|
567
|
-
* Include it in the project's tsconfig and add its directory to .gitignore.
|
|
568
|
-
* @default '.stars/imports.d.ts'
|
|
569
|
-
*/
|
|
570
|
-
dts?: string;
|
|
571
|
-
}
|
|
572
|
-
/**
|
|
573
|
-
* The [Nitro preset](https://nitro.build/deploy) `stars build` targets, only reachable once
|
|
574
|
-
* {@link StarsExperimentalConfig.enableNitro} (itself gated on {@link StarsExperimentalConfig.enableVite}) is `true`
|
|
575
|
-
* — see {@link StarsExperimentalConfig}.
|
|
576
|
-
*/
|
|
577
|
-
interface StarsNitroConfig {
|
|
578
|
-
/**
|
|
579
|
-
* `'node-server'` (the default, runs locally with plain `node`), `'cloudflare-module'`, `'aws-lambda'`,
|
|
580
|
-
* `'vercel'`, `'netlify'`, `'bun'`, `'deno-deploy'`, and more — see Nitro's own preset list.
|
|
581
|
-
* @default 'node-server'
|
|
582
|
-
*/
|
|
583
|
-
preset?: string;
|
|
584
|
-
}
|
|
585
|
-
/**
|
|
586
|
-
* Opt-in flags for work that is still landing, in the shape Nuxt's own `experimental` block has: every flag is a
|
|
587
|
-
* boolean, defaults to `false`, and is documented with what it changes and what it still needs. A flag stays here
|
|
588
|
-
* until the behaviour it guards is the default (or is dropped), so enabling one is a statement that breakage is
|
|
589
|
-
* acceptable in exchange for the feature.
|
|
590
|
-
*
|
|
591
|
-
* `enableExternalVite`, `enableNitro` and `nitro` build on `enableVite` (and `nitro` on `enableNitro` too): the type
|
|
592
|
-
* only accepts them once their prerequisite is `true`, so turning one on without the other is a type error here
|
|
593
|
-
* instead of a diagnostic at load time.
|
|
594
|
-
*/
|
|
595
|
-
type StarsExperimentalConfig = {
|
|
596
|
-
enableVite?: false;
|
|
597
|
-
enableExternalVite?: false;
|
|
598
|
-
enableNitro?: false;
|
|
599
|
-
} | {
|
|
600
|
-
/**
|
|
601
|
-
* Uses Vite as the project's build tool, in place of `tsdown`. `build.tool` may then be set to `'vite'`
|
|
602
|
-
* (and `'auto'` detects a `vite.config.*`); the bot keeps calling `client.listen()` and running as a
|
|
603
|
-
* plain `node:http` process, restarted on every change — this only swaps the bundler.
|
|
604
|
-
*/
|
|
605
|
-
enableVite: true;
|
|
606
|
-
/**
|
|
607
|
-
* Runs the bot through Vite itself, the way `nuxt dev` runs on Vite's own dev server: instead of
|
|
608
|
-
* building then restarting a child `node` process on every change, `stars dev` loads the entry through
|
|
609
|
-
* Vite's SSR module graph and serves it — through `Client#fetch` — from one long-lived process,
|
|
610
|
-
* invalidating and re-evaluating just the entry's module graph on a change instead of restarting.
|
|
611
|
-
*
|
|
612
|
-
* With this on, the entry's default export must be the `Client` instance (already `load()`ed, not
|
|
613
|
-
* `listen()`ed) rather than a script that calls `client.listen()` itself — `stars dev` owns the socket.
|
|
614
|
-
* @default false
|
|
615
|
-
*/
|
|
616
|
-
enableExternalVite?: boolean;
|
|
617
|
-
enableNitro?: false;
|
|
618
|
-
} | {
|
|
619
|
-
enableVite: true;
|
|
620
|
-
enableExternalVite?: boolean;
|
|
621
|
-
/**
|
|
622
|
-
* Builds the bot through [Nitro](https://nitro.build) instead of a `node:http` server, so `stars build`
|
|
623
|
-
* produces a server deployable to any of Nitro's presets (`node-server` locally, `cloudflare-module`,
|
|
624
|
-
* `aws-lambda`, `vercel`, `netlify`, `bun`, `deno-deploy`, and more). Nitro v3 is itself a Vite plugin, so
|
|
625
|
-
* this builds through the project's own `vite.config.*`/{@link StarsConfig.vite} the same way `build.tool:
|
|
626
|
-
* 'vite'` does, with a generated server entry that wraps the entry's default export (the `Client`
|
|
627
|
-
* instance, already `load()`ed rather than `listen()`ed — `stars build`/`stars dev` own the socket) in a
|
|
628
|
-
* call to `Client#fetch` — no per-preset adapter to maintain.
|
|
629
|
-
*
|
|
630
|
-
* Output goes to `.output/` (Nitro's own convention) instead of `build.outDir`. `stars dev` rebuilds and
|
|
631
|
-
* restarts on every change, the same as the other build tools.
|
|
632
|
-
*/
|
|
633
|
-
enableNitro: true;
|
|
634
|
-
/** Nitro-specific options, reachable only with `enableNitro: true`. */
|
|
635
|
-
nitro?: StarsNitroConfig;
|
|
636
|
-
};
|
|
637
|
-
interface StarsConfig {
|
|
638
|
-
/**
|
|
639
|
-
* The project root. Relative paths are resolved from the configuration file.
|
|
640
|
-
* @default dirname(configFile)
|
|
641
|
-
*/
|
|
642
|
-
root?: string;
|
|
643
|
-
/**
|
|
644
|
-
* The source entry point of the bot, relative to {@link StarsConfig.root}.
|
|
645
|
-
* @default the first of 'src/main.ts', 'src/main.js', 'src/index.ts', 'src/index.js' that exists
|
|
646
|
-
*/
|
|
647
|
-
entry?: string;
|
|
648
|
-
build?: StarsBuildConfig;
|
|
649
|
-
dev?: StarsDevConfig;
|
|
650
|
-
codegen?: StarsCodegenConfig;
|
|
651
|
-
/**
|
|
652
|
-
* Nuxt-style auto imports of the framework's exports and the project's own modules.
|
|
653
|
-
* `false` disables them, `true` forces them on (requires the `tsdown` build tool). On by default with
|
|
654
|
-
* `future.compatibilityVersion: 4`.
|
|
655
|
-
*/
|
|
656
|
-
imports?: StarsImportsConfig | boolean;
|
|
657
|
-
/** Opt-in flags for behaviour that is still landing. */
|
|
658
|
-
experimental?: StarsExperimentalConfig;
|
|
659
|
-
/** Build-default compatibility. Omit for version 4; set version 3 only while migrating a standalone tsdown config. */
|
|
660
|
-
future?: StarsFutureConfig;
|
|
661
|
-
/**
|
|
662
|
-
* Raw options merged into `vite.config.*`, the way `vite: {}` in a Nuxt config is merged into Nuxt's own Vite
|
|
663
|
-
* config. Only used with `build.tool: 'vite'` (see `experimental.enableVite`).
|
|
664
|
-
*/
|
|
665
|
-
vite?: StarsViteConfig;
|
|
666
|
-
/**
|
|
667
|
-
* The project's `tsdown` build. Replaces `tsdown.config.*` with `future.compatibilityVersion: 4`, and is merged
|
|
668
|
-
* over it with `3`. Only used with `build.tool: 'tsdown'`.
|
|
669
|
-
*/
|
|
670
|
-
tsdown?: StarsTsdownConfig;
|
|
671
|
-
}
|
|
672
|
-
/**
|
|
673
|
-
* Typed helper for `stars.config.{ts,mts,cts,js,mjs,cjs}` files.
|
|
674
|
-
*
|
|
675
|
-
* @example
|
|
676
|
-
* ```ts
|
|
677
|
-
* import { defineConfig } from '@wolfstar/http-framework/config';
|
|
678
|
-
*
|
|
679
|
-
* export default defineConfig({
|
|
680
|
-
* entry: 'src/main.ts',
|
|
681
|
-
* build: { tool: 'tsdown' }
|
|
682
|
-
* });
|
|
683
|
-
* ```
|
|
684
|
-
*/
|
|
685
|
-
declare function defineConfig(config: StarsConfig): StarsConfig;
|
|
686
|
-
//#endregion
|
|
687
|
-
//#region src/lib/config/resolve.d.ts
|
|
688
|
-
interface PackageJsonLike {
|
|
689
|
-
name?: string;
|
|
690
|
-
/** `tsdown` reads its options from here as well as from a `tsdown.config.*`. */
|
|
691
|
-
tsdown?: unknown;
|
|
692
|
-
version?: string;
|
|
693
|
-
main?: string;
|
|
694
|
-
type?: string;
|
|
695
|
-
scripts?: Record<string, string>;
|
|
696
|
-
dependencies?: Record<string, string>;
|
|
697
|
-
devDependencies?: Record<string, string>;
|
|
698
|
-
}
|
|
699
|
-
interface ResolvedBuildConfig {
|
|
700
|
-
readonly tool: StarsBuildTool;
|
|
701
|
-
/** Absolute output directory. */
|
|
702
|
-
readonly outDir: string;
|
|
703
|
-
/** Absolute `tsconfig.json` used by `tsc`, `null` for the other tools. */
|
|
704
|
-
readonly tsconfig: string | null;
|
|
705
|
-
/** Absolute path of the file `node` runs, i.e. the built entry (or the entry itself when `tool` is `none`). */
|
|
706
|
-
readonly output: string;
|
|
707
|
-
/**
|
|
708
|
-
* Absolute path of the build tool's own configuration file (`tsdown.config.*`, `vite.config.*`), `null` when the
|
|
709
|
-
* tool has none — which is always the case for `tsdown` with `future.compatibilityVersion` 4, where the build is
|
|
710
|
-
* configured from `stars.config` alone.
|
|
711
|
-
*/
|
|
712
|
-
readonly configFile: string | null;
|
|
713
|
-
}
|
|
714
|
-
interface ResolvedTypecheckConfig {
|
|
715
|
-
readonly enabled: boolean;
|
|
716
|
-
/** Absolute `tsconfig.json` the type checker runs against, `null` when it could not be found. */
|
|
717
|
-
readonly tsconfig: string | null;
|
|
718
|
-
/** The type checker to run, with `'auto'` already resolved. */
|
|
719
|
-
readonly checker: StarsTypechecker;
|
|
720
|
-
}
|
|
721
|
-
type ResolvedTunnelConfig = {
|
|
722
|
-
readonly mode: 'off';
|
|
723
|
-
} |
|
|
724
|
-
/** A `cloudflared` quick tunnel, whose hostname is only known once it is up. */
|
|
725
|
-
{
|
|
726
|
-
readonly mode: 'quick';
|
|
727
|
-
readonly path: string;
|
|
728
|
-
readonly updateEndpoint: boolean;
|
|
729
|
-
} |
|
|
730
|
-
/** An https URL the user already serves. */
|
|
731
|
-
{
|
|
732
|
-
readonly mode: 'url';
|
|
733
|
-
readonly url: string;
|
|
734
|
-
readonly path: string;
|
|
735
|
-
readonly updateEndpoint: boolean;
|
|
736
|
-
};
|
|
737
|
-
interface ResolvedDevConfig {
|
|
738
|
-
readonly banner: readonly string[] | false | null;
|
|
739
|
-
readonly watch: readonly string[];
|
|
740
|
-
readonly ignore: readonly string[];
|
|
741
|
-
readonly debounce: number;
|
|
742
|
-
readonly env: Readonly<Record<string, string>>;
|
|
743
|
-
readonly nodeArgs: readonly string[];
|
|
744
|
-
readonly args: readonly string[];
|
|
745
|
-
readonly url: string | null;
|
|
746
|
-
readonly health: string | null;
|
|
747
|
-
readonly killTimeout: number;
|
|
748
|
-
readonly typecheck: ResolvedTypecheckConfig;
|
|
749
|
-
readonly tunnel: ResolvedTunnelConfig;
|
|
750
|
-
/** Absolute path of the file the dev session's logs are mirrored into, `null` when disabled. */
|
|
751
|
-
readonly logFile: string | null;
|
|
752
|
-
}
|
|
753
|
-
interface ResolvedNitroConfig {
|
|
754
|
-
readonly preset: string;
|
|
755
|
-
}
|
|
756
|
-
interface ResolvedExperimentalConfig {
|
|
757
|
-
readonly enableVite: boolean;
|
|
758
|
-
readonly enableExternalVite: boolean;
|
|
759
|
-
readonly enableNitro: boolean;
|
|
760
|
-
readonly nitro: ResolvedNitroConfig;
|
|
761
|
-
}
|
|
762
|
-
interface ResolvedFutureConfig {
|
|
763
|
-
readonly compatibilityVersion: StarsCompatibilityVersion;
|
|
764
|
-
}
|
|
765
|
-
interface ResolvedImportsConfig {
|
|
766
|
-
readonly enabled: boolean;
|
|
767
|
-
/** Directory glob patterns, relative to the project root (the way `unimport` scans them). */
|
|
768
|
-
readonly dirs: readonly string[];
|
|
769
|
-
readonly presets: readonly string[];
|
|
770
|
-
readonly exclude: readonly string[];
|
|
771
|
-
/** Absolute path of the generated declaration file. */
|
|
772
|
-
readonly dts: string;
|
|
773
|
-
}
|
|
774
|
-
interface ResolvedI18nCodegenConfig {
|
|
775
|
-
readonly locales: string;
|
|
776
|
-
readonly output: string;
|
|
777
|
-
}
|
|
778
|
-
interface ResolvedCodegenConfig {
|
|
779
|
-
readonly i18n: ResolvedI18nCodegenConfig | null;
|
|
780
|
-
}
|
|
781
|
-
interface ResolvedStarsConfig {
|
|
782
|
-
/** Absolute path of the configuration file, `null` when running on defaults. */
|
|
783
|
-
readonly configFile: string | null;
|
|
784
|
-
/** The directory the CLI was invoked from. */
|
|
785
|
-
readonly cwd: string;
|
|
786
|
-
/** Absolute project root. */
|
|
787
|
-
readonly root: string;
|
|
788
|
-
readonly packageJson: PackageJsonLike | null;
|
|
789
|
-
/** Absolute source entry. */
|
|
790
|
-
readonly entry: string;
|
|
791
|
-
readonly build: ResolvedBuildConfig;
|
|
792
|
-
readonly dev: ResolvedDevConfig;
|
|
793
|
-
readonly codegen: ResolvedCodegenConfig;
|
|
794
|
-
readonly imports: ResolvedImportsConfig;
|
|
795
|
-
readonly experimental: ResolvedExperimentalConfig;
|
|
796
|
-
readonly future: ResolvedFutureConfig;
|
|
797
|
-
/** Raw options merged into `vite.config.*`. */
|
|
798
|
-
readonly vite: Readonly<Record<string, unknown>>;
|
|
799
|
-
/** The `tsdown` build's options: merged over `tsdown.config.*` at compatibility version 3, the whole build at 4. */
|
|
800
|
-
readonly tsdown: Readonly<Record<string, unknown>>;
|
|
801
|
-
}
|
|
802
|
-
interface ResolveConfigOptions {
|
|
803
|
-
cwd: string;
|
|
804
|
-
configFile: string | null;
|
|
805
|
-
config: StarsConfig;
|
|
806
|
-
env?: NodeJS.ProcessEnv;
|
|
807
|
-
}
|
|
808
|
-
/**
|
|
809
|
-
* Applies defaults, validates every option and resolves all paths to absolute ones.
|
|
810
|
-
*
|
|
811
|
-
* @throws {Diagnostic} (from `nostics`, via {@link configDiagnostics}) with an actionable `fix` on the first invalid option.
|
|
812
|
-
*/
|
|
813
|
-
declare function resolveStarsConfig(options: ResolveConfigOptions): ResolvedStarsConfig;
|
|
814
|
-
/**
|
|
815
|
-
* Presents an absolute path relative to `root` when possible, for display purposes.
|
|
816
|
-
*/
|
|
817
|
-
declare function displayPath(root: string, path: string): string;
|
|
818
|
-
/**
|
|
819
|
-
* Reads the project's environment layers from `src/.env*` and `.env*` into a plain object, the way `stars dev` and
|
|
820
|
-
* `stars commands` need it:
|
|
821
|
-
* these files are only loaded into `process.env` by the bot itself once it starts (see `@wolfstar/env-utilities`),
|
|
822
|
-
* so by the time the CLI runs they are not there yet. This is a minimal line reader, not a full dotenv
|
|
823
|
-
* implementation — quoting is stripped, but expansion (`dotenv-expand`) is not. Earlier files win, matching
|
|
824
|
-
* dotenv's own precedence.
|
|
825
|
-
*/
|
|
826
|
-
declare function readProjectEnvFiles(root: string, environment?: string): Record<string, string>;
|
|
827
|
-
//#endregion
|
|
828
|
-
export { StarsTypecheckConfig as A, LoadConfigFileOptions as B, StarsExperimentalConfig as C, StarsNitroConfig as D, StarsImportsConfig as E, loadStarsConfig as F, discoverConfigFile as H, ConfigDiagnosticCode as I, configDiagnostics as L, StarsViteConfig as M, defineConfig as N, StarsTsdownConfig as O, LoadStarsConfigOptions as P, CONFIG_EXTENSIONS as R, StarsDevConfig as S, StarsI18nCodegenConfig as T, loadConfigFile as U, LoadedConfigFile as V, StarsBuildConfig as _, ResolvedDevConfig as a, StarsCompatibilityVersion as b, ResolvedI18nCodegenConfig as c, ResolvedStarsConfig as d, ResolvedTunnelConfig as f, resolveStarsConfig as g, readProjectEnvFiles as h, ResolvedCodegenConfig as i, StarsTypechecker as j, StarsTunnelConfig as k, ResolvedImportsConfig as l, displayPath as m, ResolveConfigOptions as n, ResolvedExperimentalConfig as o, ResolvedTypecheckConfig as p, ResolvedBuildConfig as r, ResolvedFutureConfig as s, PackageJsonLike as t, ResolvedNitroConfig as u, StarsBuildTool as v, StarsFutureConfig as w, StarsConfig as x, StarsCodegenConfig as y, CONFIG_FILE_NAMES as z };
|
|
829
|
-
//# sourceMappingURL=resolve-B0J5V4xC.d.ts.map
|