borp icon indicating copy to clipboard operation
borp copied to clipboard

Proposal: Automatically set --enable-source-maps when sourceMap is active in tsConfig.json

Open Palaxx opened this issue 1 year ago • 2 comments

Hello,

Running borp without additional configurations does not generate the source maps files, even if sourceMap is active in tsconfig.json file.

I know we can achive the goal setting the NODE_OPTIONS enviroment variable before running the tests, somenthing like this

NODE_OPTIONS=--enable-source-maps borp ...

but probably we can automatically set it from borp only if sourceMap=true exists in tsconfig.json. What do you think about it? If you think it is ok, i can open a new PR in the next days

Palaxx avatar May 17 '24 16:05 Palaxx

Definitely! Would you like to send a PR?

mcollina avatar May 17 '24 17:05 mcollina

Sure I'll do in the next days. Thanks

Palaxx avatar May 18 '24 07:05 Palaxx