From 545c3d4ea9edbe00c86ebac0ca2284d812015e00 Mon Sep 17 00:00:00 2001 From: ewood Date: Sun, 15 Feb 2026 15:57:01 -0500 Subject: [PATCH] Refactor build process: clean dist before building and adjust TypeScript configuration for root directory --- package.json | 3 ++- tsconfig.prod.json | 9 +++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 931906b..85c2feb 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "type": "module", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "build": "tsc -p tsconfig.prod.json", + "clean": "rm -rf dist *.tsbuildinfo", + "build": "npm run clean && tsc -p tsconfig.prod.json", "build:dev": "tsc", "start": "node ./dist/index.js", "start:discord": "npm run build && node dist/integrations/clients/discord/index.js", diff --git a/tsconfig.prod.json b/tsconfig.prod.json index 5b726c6..c703bf1 100644 --- a/tsconfig.prod.json +++ b/tsconfig.prod.json @@ -2,11 +2,10 @@ "extends": "./tsconfig.json", "compilerOptions": { "types": ["node"], - "rootDir": "." + "rootDir": "./src" }, "include": [ - "src/**/*", - "scripts/**/*" + "src/**/*" ], "exclude": [ "src/ai/simulate/index.ts", @@ -15,8 +14,6 @@ "node_modules", "modules", "**/__tests__/**", - "**/*.test.ts", - "scripts/test-*.ts", - "scripts/**/*.js" + "**/*.test.ts" ] }