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:
parent
886d0e8df2
commit
300ff4d24e
@ -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",
|
||||
|
@ -6,5 +6,6 @@
|
||||
"lib": ["esnext"],
|
||||
"esModuleInterop": true
|
||||
},
|
||||
"include": ["src/**/*", "src/proto/**/*"]
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["src/proto/**/*"]
|
||||
}
|
10
tsconfig.proto.json
Normal file
10
tsconfig.proto.json
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"sourceMap": true,
|
||||
"outDir": "dist/proto",
|
||||
"strict": true,
|
||||
"lib": ["esnext"],
|
||||
"esModuleInterop": true
|
||||
},
|
||||
"include": ["src/proto/**/*"]
|
||||
}
|
Loading…
Reference in New Issue
Block a user