seedcord 0.18.0 → 0.18.1
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-
|
|
1
|
+
import { n as SEEDCORD_CONFIG_FILENAMES, t as version } from "./src-Cro9AuGj.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { Command } from "@commander-js/extra-typings";
|
|
4
4
|
import { LEVEL_COLOR, Logger, LoggerChannelRegistry } from "@seedcord/logger";
|
package/dist/index.mjs
CHANGED
|
@@ -12,8 +12,8 @@ function defineConfig(config) {
|
|
|
12
12
|
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/core/version.ts
|
|
15
|
-
const version = "0.18.
|
|
15
|
+
const version = "0.18.1";
|
|
16
16
|
|
|
17
17
|
//#endregion
|
|
18
18
|
export { SEEDCORD_CONFIG_FILENAMES as n, defineConfig as r, version as t };
|
|
19
|
-
//# sourceMappingURL=src-
|
|
19
|
+
//# sourceMappingURL=src-Cro9AuGj.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"src-
|
|
1
|
+
{"version":3,"file":"src-Cro9AuGj.mjs","names":[],"sources":["../src/core/config/schema.ts","../src/core/version.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 * Type-checking options for `seedcord dev`, passed as the object form of\n * {@link SeedcordHmrConfig.typecheck}.\n */\ninterface SeedcordTypecheckConfig {\n /**\n * Which tsconfig `tsc --watch` runs against.\n *\n * @defaultValue the nearest `tsconfig.json`\n */\n tsconfig?: 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 * Whether a failed hot-reload rolls back to the last-good version of the file.\n *\n * @defaultValue `true`\n */\n rollback?: boolean;\n\n /**\n * Runs `tsc --watch` alongside the bot and reports type errors on the `tsc` channel.\n *\n * @defaultValue `false`\n */\n typecheck?: boolean | SeedcordTypecheckConfig;\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 * How `seedcord dev` exposes an http bot's interactions server. This has no effect on a gateway bot.\n *\n * `true` opens a cloudflared quick tunnel and writes the interactions endpoint on every run,\n * since the hostname changes each time. An https URL is one you already serve, through a named\n * cloudflared tunnel, a tailscale funnel, or any reverse proxy. The CLI checks that URL reaches\n * this process, writes the endpoint when the stored value differs, and leaves it in place.\n *\n * @defaultValue `true`\n */\n tunnel?: boolean | string;\n /**\n * Runs any always-on animations in `seedcord dev`.\n *\n * @defaultValue `true`\n */\n idleAnimation?: boolean;\n /**\n * Optional build configuration overrides.\n */\n build?: SeedcordBuildConfig;\n /**\n * Optional HMR configuration.\n */\n hmr?: SeedcordHmrConfig;\n}\n\nexport type ResolvedTunnel = { mode: 'off' } | { mode: 'quick' } | { mode: 'url'; url: string };\n\nexport type ResolvedTypecheck = { enabled: false } | { enabled: true; tsconfig?: string };\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' | 'tunnel'>> {\n tunnel: ResolvedTunnel;\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 * Whether `tsc --watch` runs, with the tsconfig it runs against resolved to an absolute path.\n */\n typecheck: ResolvedTypecheck;\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 const version = process.env.PACKAGE_VERSION ?? '0.0.0';\n"],"mappings":";;;;AA4IA,MAAa,4BAA4B,CAAC,sBAAsB,qBAAqB;;;;AAKrF,SAAgB,aAAa,QAA8C;CACvE,OAAO;AACX;;;;ACnJA,MAAa"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "seedcord",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.18.
|
|
4
|
+
"version": "0.18.1",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=24.11"
|
|
7
7
|
},
|
|
8
|
-
"description": "
|
|
8
|
+
"description": "The seedcord CLI. Dev server, build, and codegen for a typed Discord bot.",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"discord",
|
|
11
11
|
"discord-bot",
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"@seedcord/core": "^0.2.0",
|
|
67
67
|
"@seedcord/errors": "^0.4.0",
|
|
68
68
|
"@seedcord/event-emitter": "^0.1.3",
|
|
69
|
-
"@seedcord/logger": "^0.2.0",
|
|
70
69
|
"@seedcord/types": "^0.9.0",
|
|
70
|
+
"@seedcord/logger": "^0.2.0",
|
|
71
71
|
"@seedcord/utils": "^0.8.5"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|