tatethurston / TwirpScript

A protobuf RPC framework for JavaScript and TypeScript
MIT License
141 stars 14 forks source link

root in config #199

Closed Blancduman closed 1 year ago

Blancduman commented 2 years ago

Hello.

Specifing a path with nesting in root -> twirp.json cause error.

Error: Cannot find module 'path\to\protos\node_modules\twirpscript\dist\compiler.js'

It's trying to find compiler.js in nested path, not in project's nodes_modules .

Blancduman commented 2 years ago
{
   "root": "my/protos",
   "dest": "my/api"
}
Blancduman commented 2 years ago

And it's windows case

tatethurston commented 2 years ago

Thanks for reporting @Blancduman I’ll take a look

tatethurston commented 1 year ago

@Blancduman Can you let me know if you still encounter this issue on v0.0.63 https://github.com/tatethurston/TwirpScript/releases/tag/v0.0.63