S
S
sinneren2020-02-14 11:55:55
Node.js
sinneren, 2020-02-14 11:55:55

How to run yarn scripts in package.json from a different directory?

There is a project in the path1 folder. i am in path2 folder. How can I reach path1 from path2 by running `yarn run myscript`?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sinneren, 2020-02-14
@sinneren

yarn --cwd path/to/package command_script
found. --cwd.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question