@seedcord/cli 0.3.0 → 0.3.1-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/dist/cli.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as SEEDCORD_CONFIG_FILENAMES, t as version } from "./src-CdZI_LJd.mjs";
1
+ import { n as SEEDCORD_CONFIG_FILENAMES, t as version } from "./src-fizkfNwI.mjs";
2
2
  import { createRequire } from "node:module";
3
3
  import { Command } from "@commander-js/extra-typings";
4
4
  import { Logger, LoggerChannelRegistry, StrictEventEmitter } from "@seedcord/services";
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { n as SEEDCORD_CONFIG_FILENAMES, r as defineConfig, t as version } from "./src-CdZI_LJd.mjs";
1
+ import { n as SEEDCORD_CONFIG_FILENAMES, r as defineConfig, t as version } from "./src-fizkfNwI.mjs";
2
2
 
3
3
  export { SEEDCORD_CONFIG_FILENAMES, defineConfig, version };
@@ -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.3.0";
16
+ const version = "0.3.1-next.0";
17
17
 
18
18
  //#endregion
19
19
  export { SEEDCORD_CONFIG_FILENAMES as n, defineConfig as r, version as t };
20
- //# sourceMappingURL=src-CdZI_LJd.mjs.map
20
+ //# sourceMappingURL=src-fizkfNwI.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"src-CdZI_LJd.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.\n *\n * @defaultValue `./dist` relative to the config directory\n */\n outDir?: string;\n /**\n * Optional tsconfig path to use for builds.\n *\n * @defaultValue 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.\n *\n * @defaultValue 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.\n *\n * @defaultValue 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":";;;;AAkGA,MAAa,4BAA4B,CAAC,sBAAsB,qBAAqB;;;;AAKrF,SAAgB,aAAa,QAA8C;CACvE,OAAO;AACX;;;;;AChGA,MAAa"}
1
+ {"version":3,"file":"src-fizkfNwI.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.\n *\n * @defaultValue `./dist` relative to the config directory\n */\n outDir?: string;\n /**\n * Optional tsconfig path to use for builds.\n *\n * @defaultValue 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.\n *\n * @defaultValue 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.\n *\n * @defaultValue 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":";;;;AAkGA,MAAa,4BAA4B,CAAC,sBAAsB,qBAAqB;;;;AAKrF,SAAgB,aAAa,QAA8C;CACvE,OAAO;AACX;;;;;AChGA,MAAa"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@seedcord/cli",
3
3
  "type": "module",
4
- "version": "0.3.0",
4
+ "version": "0.3.1-next.0",
5
5
  "description": "CLI for seedcord",
6
6
  "bin": {
7
7
  "seedcord": "./bin/seedcord.mjs"
@@ -50,8 +50,8 @@
50
50
  "react": "^19.2.7",
51
51
  "tsx": "^4.22.4",
52
52
  "vite": "^8.0.16",
53
- "@seedcord/errors": "0.2.0",
54
- "@seedcord/services": "0.8.1",
53
+ "@seedcord/errors": "0.2.1-next.0",
54
+ "@seedcord/services": "0.8.2-next.0",
55
55
  "@seedcord/types": "0.7.0",
56
56
  "@seedcord/utils": "0.6.1"
57
57
  },