A
A
Adel Khalitov2019-08-30 01:17:25
Node.js
Adel Khalitov, 2019-08-30 01:17:25

How to implement such a sequence in package.json?

So there is a small stack of plugins.
babel-node (parses files into RAM), source-map-support, nodemon.
You need to make the following logic:
nodemon --inspect-brk source-map-support babel-node
server.js , then source-map-support creates a source map, and the whole thing starts the nodemon with the --inspect-brk tag.
In fact, the opposite is true, the nodemon runs --inspect-brk source-map-support, that's it.
How can I change it to fit my logic?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Kitmanov, 2019-08-30
@k12th

Try dancing from this recipe: https://gist.github.com/sam-artuso/d39dc04650f9455...
I don't really know about source-map-support...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question