From aeb4bd5b59af5984ea9ce340349e7a0c5e73b41e Mon Sep 17 00:00:00 2001 From: Nick Tabeling Date: Thu, 9 Apr 2026 18:01:11 +0200 Subject: [PATCH] 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 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index efc41ff..e7c9b25 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,9 @@ "description": "Discord-bot-powered multi-agent workspace manager built on Claude Code", "main": "dist/index.js", "scripts": { - "build": "tsc", + "build": "tsc && node -e \"require('fs').cpSync('src/db/schema.sql', 'dist/db/schema.sql')\"", "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:watch": "vitest", "test:coverage": "vitest run --coverage",