currently we have to manually generate by running:
$> pbjs -t static-module -w commonjs -o compiled.js file1.proto file2.proto
$> pbts -o compiled.d.ts compiled.js
A couple further issues with protobufjs typescript.
*.proto files cannot have package keyword. Otherwise using two DTOs in one file causes runtime error. (could be incorrect importing of namespaces in ts)
certain functions in generated DTO class has to be deleted, otherwise typescript compilation won't pass. (fixed. do not use @types/protobufjs. protobufjs version6.x.x has its own index.d.ts)
currently we have to manually generate by running: $> pbjs -t static-module -w commonjs -o compiled.js file1.proto file2.proto $> pbts -o compiled.d.ts compiled.js
Write a script to automate this process