@seedcord/cli 0.0.1 → 0.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 +2 -2
- package/bin/seedcord.mjs +22 -0
- package/dist/Hmr-BXZ-LFe5.d.mts +33 -0
- package/dist/api/vite-hmr.d.mts +33 -0
- package/dist/api/vite-hmr.mjs +1 -0
- package/dist/cli.d.mts +1 -0
- package/dist/cli.mjs +1905 -4148
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.mts +73 -0
- package/dist/index.mjs +2 -717
- package/dist/src-BHkD3jCv.mjs +20 -0
- package/dist/src-BHkD3jCv.mjs.map +1 -0
- package/package.json +48 -28
- package/dist/cli.d.ts +0 -2
- package/dist/index.d.ts +0 -207
- package/dist/index.mjs.map +0 -1
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { n as HmrEventType, r as HmrUpdateEvent, t as HmrAware } from "./Hmr-BXZ-LFe5.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/core/config/schema.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Build configuration used by the Seedcord CLI.
|
|
6
|
+
*/
|
|
7
|
+
interface SeedcordBuildConfig {
|
|
8
|
+
/**
|
|
9
|
+
* Directory where build artifacts should be emitted. Defaults to ./dist relative to the config directory.
|
|
10
|
+
*/
|
|
11
|
+
outDir?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Optional tsconfig path to use for builds. Defaults to the nearest tsconfig.build.json or tsconfig.json.
|
|
14
|
+
*/
|
|
15
|
+
tsconfig?: string;
|
|
16
|
+
/**
|
|
17
|
+
* File name (or relative path) for the bootstrap file emitted inside the build output.
|
|
18
|
+
*/
|
|
19
|
+
bootstrap?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* HMR configuration used by the Seedcord CLI.
|
|
23
|
+
*/
|
|
24
|
+
interface SeedcordHmrConfig {
|
|
25
|
+
/**
|
|
26
|
+
* Glob patterns for files that should trigger a full restart when changed.
|
|
27
|
+
*/
|
|
28
|
+
restart?: string[];
|
|
29
|
+
/**
|
|
30
|
+
* Optional tsconfig path to use for type checking in dev mode. Defaults to the nearest tsconfig.json.
|
|
31
|
+
*/
|
|
32
|
+
tsconfig?: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Configuration used by the Seedcord CLI when running `seedcord dev` or `seedcord build`.
|
|
36
|
+
*/
|
|
37
|
+
interface SeedcordDevConfig {
|
|
38
|
+
/**
|
|
39
|
+
* Root directory used for resolving relative paths. Defaults to the config directory.
|
|
40
|
+
*/
|
|
41
|
+
root?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Path to the module whose default export is a configured Seedcord instance.
|
|
44
|
+
*/
|
|
45
|
+
instance: string;
|
|
46
|
+
/**
|
|
47
|
+
* Entry file that should be executed when starting the bot (and copied into the build output).
|
|
48
|
+
*/
|
|
49
|
+
entry: string;
|
|
50
|
+
/**
|
|
51
|
+
* Optional build configuration overrides.
|
|
52
|
+
*/
|
|
53
|
+
build?: SeedcordBuildConfig;
|
|
54
|
+
/**
|
|
55
|
+
* Optional HMR configuration.
|
|
56
|
+
*/
|
|
57
|
+
hmr?: SeedcordHmrConfig;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Supported configuration filenames discovered by the CLI.
|
|
61
|
+
*/
|
|
62
|
+
declare const SEEDCORD_CONFIG_FILENAMES: readonly ["seedcord.config.ts", "seedcord.config.mts"];
|
|
63
|
+
/**
|
|
64
|
+
* Helper so config files receive proper type inference.
|
|
65
|
+
*/
|
|
66
|
+
declare function defineConfig(config: SeedcordDevConfig): SeedcordDevConfig;
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/index.d.ts
|
|
69
|
+
/** Package version. Falls back to '0.0.0' when run unbuilt (dev); the real value is injected at build time. */
|
|
70
|
+
declare const version: string;
|
|
71
|
+
//#endregion
|
|
72
|
+
export { type HmrAware, type HmrEventType, type HmrUpdateEvent, SEEDCORD_CONFIG_FILENAMES, type SeedcordBuildConfig, type SeedcordDevConfig, type SeedcordHmrConfig, defineConfig, version };
|
|
73
|
+
//# sourceMappingURL=index.d.mts.map
|