tatethurston/TwirpScript

root in config

Blancduman opened this issue · 4 comments

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 .

{
   "root": "my/protos",
   "dest": "my/api"
}

And it's windows case

Thanks for reporting @Blancduman I’ll take a look

@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