diff --git a/package.json b/package.json index e6c2879..f5598f4 100644 --- a/package.json +++ b/package.json @@ -2,8 +2,10 @@ "name": "carpool-backend", "version": "1.0.0", "description": "", - "main": "index.js", + "main": "dist/index.js", "scripts": { + "build": "tsc", + "start": "node dist/index.js", "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..3e0d3c9 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,7 @@ +{ + "compilerOptions": { + "outDir": "dist/" + }, + "include": ["src/"], + "exclude": ["node_modules/"], +} \ No newline at end of file