1
0
mirror of synced 2024-12-04 19:17:58 +01:00

Add a separate option to compile only the protobuf defs

because the 6 second compile time would drive me mad
This commit is contained in:
Rin 2022-07-11 09:20:09 +01:00
parent 886d0e8df2
commit 300ff4d24e
3 changed files with 14 additions and 2 deletions

View File

@ -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",

View File

@ -6,5 +6,6 @@
"lib": ["esnext"],
"esModuleInterop": true
},
"include": ["src/**/*", "src/proto/**/*"]
"include": ["src/**/*"],
"exclude": ["src/proto/**/*"]
}

10
tsconfig.proto.json Normal file
View File

@ -0,0 +1,10 @@
{
"compilerOptions": {
"sourceMap": true,
"outDir": "dist/proto",
"strict": true,
"lib": ["esnext"],
"esModuleInterop": true
},
"include": ["src/proto/**/*"]
}