fix(DIS-108): copy schema.sql to dist/ after tsc build
TypeScript does not copy non-.ts files. Add a cpSync step to the build and dev scripts so dist/db/schema.sql exists at runtime. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
3dd75ddc30
commit
aeb4bd5b59
1 changed files with 2 additions and 2 deletions
|
|
@ -4,9 +4,9 @@
|
||||||
"description": "Discord-bot-powered multi-agent workspace manager built on Claude Code",
|
"description": "Discord-bot-powered multi-agent workspace manager built on Claude Code",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc",
|
"build": "tsc && node -e \"require('fs').cpSync('src/db/schema.sql', 'dist/db/schema.sql')\"",
|
||||||
"start": "node dist/index.js",
|
"start": "node dist/index.js",
|
||||||
"dev": "tsc && node dist/index.js",
|
"dev": "tsc && node -e \"require('fs').cpSync('src/db/schema.sql', 'dist/db/schema.sql')\" && node dist/index.js",
|
||||||
"test": "vitest run",
|
"test": "vitest run",
|
||||||
"test:watch": "vitest",
|
"test:watch": "vitest",
|
||||||
"test:coverage": "vitest run --coverage",
|
"test:coverage": "vitest run --coverage",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue