CLI
glyria build
Compile your bot for production.
Usage
npm run build
# or
npx glyria build
What it does
glyria build prepares your bot for production in two steps:
- Generates auto-imports — runs
glyria generateto update.glyria/imports.d.ts - Compiles TypeScript — runs
tscand outputs compiled files todist/
Output
After a successful build, your project will have a dist/ folder mirroring your src/ structure:
dist/
commands/
ping.js
events/
ready.js
utils/
useDatabase.js
index.js
Errors
If the TypeScript compilation fails, glyria build exits with a non-zero code and prints the compiler errors. Fix the reported errors and run glyria build again.
Run
glyria build before starting your bot in production. glyria start runs the compiled dist/index.js — not your TypeScript source.
