diff --git a/package.json b/package.json index 44e0d2d..579c4d0 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ }, "scripts": { "build": "tsc && copyfiles -u 3 \"src/db/migrations/*.sql\" dist/db/migrations && copyfiles -u 3 \"src/db/seed/*.sql\" dist/db/seed && copyfiles -u 2 \"src/messages/*.txt\" dist/messages", - "start": "node dist/index.js" + "start": "node dist/index.js", + "test": "tsc -p tsconfig.tests.json" } -} +} \ No newline at end of file diff --git a/tsconfig.tests.json b/tsconfig.tests.json new file mode 100644 index 0000000..8dd932a --- /dev/null +++ b/tsconfig.tests.json @@ -0,0 +1,10 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "./dist-tests", + "rootDir": "./" + }, + "include": [ + "tests/**/*" + ] +} \ No newline at end of file