N
N
newUser20212021-10-06 09:10:20
JavaScript
newUser2021, 2021-10-06 09:10:20

How to add yarn run build command to lerna?

Good afternoon.
There is a command in package.json It is necessary to make sure that in the same command, right after lerna bootstrap , the yarn run build command starts. Can you please tell me how to add this command here?
"postinstall": "lerna bootstrap",

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2021-10-06
@newUser2021

Either use the npm-run-all package or write a lerna bootstrap && yarn run build. But on Windows, emnip will swear at &&.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question