diff --git a/package.json b/package.json index 7f08655..5fbac17 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "license": "MIT", "private": false, "scripts": { - "dev": "tsc && node dist" + "dev": "tsc && node dist", + "build_protos": "tsc -p ./tsconfig.proto.json" }, "devDependencies": { "@types/express": "^4.17.13", diff --git a/tsconfig.json b/tsconfig.json index fe828c6..4e41f4b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,5 +6,6 @@ "lib": ["esnext"], "esModuleInterop": true }, - "include": ["src/**/*", "src/proto/**/*"] + "include": ["src/**/*"], + "exclude": ["src/proto/**/*"] } \ No newline at end of file diff --git a/tsconfig.proto.json b/tsconfig.proto.json new file mode 100644 index 0000000..3a7d3fa --- /dev/null +++ b/tsconfig.proto.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "sourceMap": true, + "outDir": "dist/proto", + "strict": true, + "lib": ["esnext"], + "esModuleInterop": true + }, + "include": ["src/proto/**/*"] +} \ No newline at end of file