Fix real codegen bugs: unused proto import, missing runtime deps, no barrel index
protoc warned that print_job.proto imported template.proto without using it - removed. ts-types/package.json was missing protobufjs and long, which the ts-proto-generated code imports at runtime - tsc failed with 'cannot find module'. src/index.ts also re-exports './generated' as a namespace, but ts-proto wasn't configured to emit an index barrel file for it - added outputIndex=true to the protoc invocation. Verified with a clean 'bun run build' (both TS and Rust codegen) and 'tsc -b'.
This commit is contained in:
@@ -3,6 +3,10 @@ dist/
|
||||
target/
|
||||
*.log
|
||||
.env
|
||||
bun.lockb
|
||||
bun.lock
|
||||
Cargo.lock
|
||||
*.tsbuildinfo
|
||||
|
||||
packages/ts-types/src/generated/*
|
||||
!packages/ts-types/src/generated/.gitkeep
|
||||
|
||||
Reference in New Issue
Block a user