diff --git a/package.json b/package.json index 5e69b5d..984f697 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "dev": "tsx watch src/index.ts", "build": "tsc", - "start": "node dist/index.js", + "start": "node dist/src/index.js", "schema:index": "ts-node scripts/generate-schema-index.ts" }, "repository": { diff --git a/src/routes/resources/main.ts b/src/routes/resources/main.ts index 4a77cba..514aa9f 100644 --- a/src/routes/resources/main.ts +++ b/src/routes/resources/main.ts @@ -12,7 +12,7 @@ import { -import {resourceConfig} from "../../resource.config"; +import {resourceConfig} from "../../utils/resource.config"; // ------------------------------------------------------------- // SQL Volltextsuche auf mehreren Feldern diff --git a/src/resource.config.ts b/src/utils/resource.config.ts similarity index 99% rename from src/resource.config.ts rename to src/utils/resource.config.ts index 47be3c3..9c62711 100644 --- a/src/resource.config.ts +++ b/src/utils/resource.config.ts @@ -8,7 +8,7 @@ import { projects, projecttypes, servicecategories, services, spaces, tasks, texttemplates, units, vehicles, vendors -} from "../db/schema"; +} from "../../db/schema"; export const resourceConfig = { projects: { diff --git a/tsconfig.json b/tsconfig.json index 268fa98..29f598d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,6 +11,6 @@ "forceConsistentCasingInFileNames": true, "rootDir": "." }, - "include": ["src","db"], + "include": ["src","db","*.ts"], "exclude": ["node_modules", "dist"] } \ No newline at end of file