@seedcord/cli 0.1.0-next.0 → 0.2.0-next.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/dist/cli.mjs +359 -20
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.mts +1 -3
- package/dist/index.mjs +1 -1
- package/dist/{src-CCX-T6t_.mjs → src-CZDimuFi.mjs} +2 -2
- package/dist/{src-CCX-T6t_.mjs.map → src-CZDimuFi.mjs.map} +1 -1
- package/package.json +9 -10
- package/dist/Hmr-BXZ-LFe5.d.mts +0 -33
- package/dist/api/vite-hmr.d.mts +0 -33
- package/dist/api/vite-hmr.mjs +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { n as HmrEventType, r as HmrUpdateEvent, t as HmrAware } from "./Hmr-BXZ-LFe5.mjs";
|
|
2
|
-
|
|
3
1
|
//#region src/core/config/schema.d.ts
|
|
4
2
|
/**
|
|
5
3
|
* Build configuration used by the Seedcord CLI.
|
|
@@ -69,5 +67,5 @@ declare function defineConfig(config: SeedcordDevConfig): SeedcordDevConfig;
|
|
|
69
67
|
/** Package version. Falls back to '0.0.0' when run unbuilt (dev); the real value is injected at build time. */
|
|
70
68
|
declare const version: string;
|
|
71
69
|
//#endregion
|
|
72
|
-
export {
|
|
70
|
+
export { SEEDCORD_CONFIG_FILENAMES, type SeedcordBuildConfig, type SeedcordDevConfig, type SeedcordHmrConfig, defineConfig, version };
|
|
73
71
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.mjs
CHANGED
|
@@ -13,8 +13,8 @@ function defineConfig(config) {
|
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/index.ts
|
|
15
15
|
/** Package version. Falls back to '0.0.0' when run unbuilt (dev); the real value is injected at build time. */
|
|
16
|
-
const version = "0.
|
|
16
|
+
const version = "0.2.0-next.0";
|
|
17
17
|
|
|
18
18
|
//#endregion
|
|
19
19
|
export { SEEDCORD_CONFIG_FILENAMES as n, defineConfig as r, version as t };
|
|
20
|
-
//# sourceMappingURL=src-
|
|
20
|
+
//# sourceMappingURL=src-CZDimuFi.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"src-
|
|
1
|
+
{"version":3,"file":"src-CZDimuFi.mjs","names":[],"sources":["../src/core/config/schema.ts","../src/index.ts"],"sourcesContent":["/**\n * Build configuration used by the Seedcord CLI.\n */\nexport interface SeedcordBuildConfig {\n /**\n * Directory where build artifacts should be emitted. Defaults to ./dist relative to the config directory.\n */\n outDir?: string;\n /**\n * Optional tsconfig path to use for builds. Defaults to the nearest tsconfig.build.json or tsconfig.json.\n */\n tsconfig?: string;\n /**\n * File name (or relative path) for the bootstrap file emitted inside the build output.\n */\n bootstrap?: string;\n}\n\n/**\n * HMR configuration used by the Seedcord CLI.\n */\nexport interface SeedcordHmrConfig {\n /**\n * Glob patterns for files that should trigger a full restart when changed.\n */\n restart?: string[];\n\n /**\n * Optional tsconfig path to use for type checking in dev mode. Defaults to the nearest tsconfig.json.\n */\n tsconfig?: string;\n}\n\n/**\n * Configuration used by the Seedcord CLI when running `seedcord dev` or `seedcord build`.\n */\nexport interface SeedcordDevConfig {\n /**\n * Root directory used for resolving relative paths. Defaults to the config directory.\n */\n root?: string;\n /**\n * Path to the module whose default export is a configured Seedcord instance.\n */\n instance: string;\n /**\n * Entry file that should be executed when starting the bot (and copied into the build output).\n */\n entry: string;\n /**\n * Optional build configuration overrides.\n */\n build?: SeedcordBuildConfig;\n /**\n * Optional HMR configuration.\n */\n hmr?: SeedcordHmrConfig;\n}\n\nexport interface ResolvedSeedcordBuildConfig {\n outDir: string;\n bootstrap: string;\n tsconfig?: string;\n}\n\n/**\n * Fully resolved configuration with absolute file system paths.\n */\nexport interface ResolvedSeedcordDevConfig extends Required<Omit<SeedcordDevConfig, 'build' | 'hmr'>> {\n /**\n * Absolute path to the config file that produced this resolution.\n */\n configFile: string;\n /**\n * Resolved build options with absolute paths.\n */\n build: ResolvedSeedcordBuildConfig;\n /**\n * Resolved tsconfig path to use for type checking in dev mode.\n */\n tsconfig?: string | undefined;\n /**\n * HMR configuration carried through from the user config (restart globs are matched as-is).\n */\n hmr?: SeedcordHmrConfig | undefined;\n}\n\n/**\n * Supported configuration filenames discovered by the CLI.\n */\nexport const SEEDCORD_CONFIG_FILENAMES = ['seedcord.config.ts', 'seedcord.config.mts'] as const;\n\n/**\n * Helper so config files receive proper type inference.\n */\nexport function defineConfig(config: SeedcordDevConfig): SeedcordDevConfig {\n return config;\n}\n","export {\n defineConfig,\n SEEDCORD_CONFIG_FILENAMES,\n type SeedcordBuildConfig,\n type SeedcordDevConfig,\n type SeedcordHmrConfig\n} from '@core/config/schema';\n\n/** Package version. Falls back to '0.0.0' when run unbuilt (dev); the real value is injected at build time. */\nexport const version = process.env.PACKAGE_VERSION ?? '0.0.0';\n"],"mappings":";;;;AA0FA,MAAa,4BAA4B,CAAC,sBAAsB,qBAAqB;;;;AAKrF,SAAgB,aAAa,QAA8C;CACvE,OAAO;AACX;;;;;ACxFA,MAAa"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seedcord/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.0-next.0",
|
|
5
5
|
"description": "CLI for seedcord",
|
|
6
6
|
"bin": {
|
|
7
7
|
"seedcord": "./bin/seedcord.mjs"
|
|
@@ -29,9 +29,6 @@
|
|
|
29
29
|
"types": "./dist/index.d.cts",
|
|
30
30
|
"default": "./dist/index.cjs"
|
|
31
31
|
}
|
|
32
|
-
},
|
|
33
|
-
"./vite-hmr": {
|
|
34
|
-
"types": "./dist/api/vite-hmr.d.mts"
|
|
35
32
|
}
|
|
36
33
|
},
|
|
37
34
|
"peerDependencies": {
|
|
@@ -41,6 +38,7 @@
|
|
|
41
38
|
"@commander-js/extra-typings": "^15.0.0",
|
|
42
39
|
"chalk": "^5.6.2",
|
|
43
40
|
"commander": "^15.0.0",
|
|
41
|
+
"discord-api-types": "^0.38.40",
|
|
44
42
|
"fix-esm-import-path": "^1.10.3",
|
|
45
43
|
"ink": "7.0.3",
|
|
46
44
|
"ink-spinner": "^5.0.0",
|
|
@@ -49,18 +47,19 @@
|
|
|
49
47
|
"react": "^19.2.6",
|
|
50
48
|
"tsx": "^4.22.3",
|
|
51
49
|
"vite": "^8.0.14",
|
|
52
|
-
"@seedcord/services": "0.7.
|
|
53
|
-
"@seedcord/types": "0.
|
|
54
|
-
"@seedcord/utils": "0.
|
|
50
|
+
"@seedcord/services": "0.7.1-next.0",
|
|
51
|
+
"@seedcord/types": "0.5.0-next.0",
|
|
52
|
+
"@seedcord/utils": "0.5.0-next.0"
|
|
55
53
|
},
|
|
56
54
|
"devDependencies": {
|
|
57
55
|
"@types/react": "^19.2.15",
|
|
56
|
+
"discord.js": "^14.26.4",
|
|
58
57
|
"eslint-plugin-react": "^7.37.5",
|
|
59
58
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
60
59
|
"ink-testing-library": "^4.0.0",
|
|
61
60
|
"typescript": "^6.0.3",
|
|
62
|
-
"@seedcord/eslint-config": "1.4.0
|
|
63
|
-
"@seedcord/tsconfig": "2.0.0
|
|
61
|
+
"@seedcord/eslint-config": "1.4.0",
|
|
62
|
+
"@seedcord/tsconfig": "2.0.0",
|
|
64
63
|
"@seedcord/tsdown-config": "2.0.0"
|
|
65
64
|
},
|
|
66
65
|
"publishConfig": {
|
|
@@ -81,5 +80,5 @@
|
|
|
81
80
|
"test:watch": "vitest dev",
|
|
82
81
|
"coverage": "vitest run --coverage"
|
|
83
82
|
},
|
|
84
|
-
"readme": "<p align=\"center\">\n <img src=\"
|
|
83
|
+
"readme": "<p align=\"center\">\n <img src=\"https://raw.githubusercontent.com/seedcord/seedcord/main/assets/banner.png\" alt=\"seedcord\" width=\"100%\" />\n</p>\n\n---\n\n_This repository is a work in progress._\n\n- There are no stable releases yet but changes are being made actively.\n- Till a major v1.0.0 release for seedcord, expect breaking changes in minor versions.\n- Documentation will come soon as well!\n\nIf you'd like to try it out, you can check out the code in `mock`\n"
|
|
85
84
|
}
|
package/dist/Hmr-BXZ-LFe5.d.mts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
//#region src/api/Hmr.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Type of HMR event.
|
|
4
|
-
*/
|
|
5
|
-
type HmrEventType = 'create' | 'createDir' | 'update' | 'delete' | 'deleteDir';
|
|
6
|
-
/**
|
|
7
|
-
* Payload for the HMR update event.
|
|
8
|
-
*/
|
|
9
|
-
interface HmrUpdateEvent {
|
|
10
|
-
file: string;
|
|
11
|
-
type: HmrEventType;
|
|
12
|
-
/**
|
|
13
|
-
* List of files that are affected by this update (e.g., importers).
|
|
14
|
-
* Only populated for 'update' events.
|
|
15
|
-
*/
|
|
16
|
-
affectedModules?: string[];
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Interface for HMR handlers that can process hot updates for specific modules.
|
|
20
|
-
*/
|
|
21
|
-
interface HmrAware {
|
|
22
|
-
/**
|
|
23
|
-
* A name to identify the HMR-aware module (for logging/debugging purposes).
|
|
24
|
-
*/
|
|
25
|
-
readonly name: string;
|
|
26
|
-
/**
|
|
27
|
-
* Method that is called on HMR update and receives the full update event.
|
|
28
|
-
*/
|
|
29
|
-
onHmr(event: HmrUpdateEvent): Promise<void>;
|
|
30
|
-
}
|
|
31
|
-
//#endregion
|
|
32
|
-
export { HmrEventType as n, HmrUpdateEvent as r, HmrAware as t };
|
|
33
|
-
//# sourceMappingURL=Hmr-BXZ-LFe5.d.mts.map
|
package/dist/api/vite-hmr.d.mts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { r as HmrUpdateEvent } from "../Hmr-BXZ-LFe5.mjs";
|
|
2
|
-
|
|
3
|
-
//#region src/api/vite-hmr.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Map of HMR events sent from the framework (client) to the CLI (server).
|
|
6
|
-
*
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
|
-
interface SeedcordFrameworkEvents {
|
|
10
|
-
'seedcord:register-critical-files': {
|
|
11
|
-
patterns: string[];
|
|
12
|
-
};
|
|
13
|
-
'seedcord:commands-update-prompt': {
|
|
14
|
-
files: string[];
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Map of HMR events sent from the CLI (server) to the framework (client).
|
|
19
|
-
*
|
|
20
|
-
* @internal
|
|
21
|
-
*/
|
|
22
|
-
interface SeedcordCliEvents {
|
|
23
|
-
'seedcord:hmr': HmrUpdateEvent;
|
|
24
|
-
'seedcord:refresh-commands': {
|
|
25
|
-
shouldRefresh: boolean;
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
declare module 'vite/types/customEvent.d.ts' {
|
|
29
|
-
interface CustomEventMap extends SeedcordFrameworkEvents, SeedcordCliEvents {}
|
|
30
|
-
}
|
|
31
|
-
//#endregion
|
|
32
|
-
export { SeedcordCliEvents, SeedcordFrameworkEvents };
|
|
33
|
-
//# sourceMappingURL=vite-hmr.d.mts.map
|
package/dist/api/vite-hmr.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|