The main package.json (the one sitting in root) was able to run scripts in subfolders using the --prefix option.
I'm trying to reproduce the same setup with nps. Is this possible?
When running the nps server.start from the the root dir in CLI, I'm attempting to trigger this: nps "server:start --prefix server/" which server:start from the package scripts in child folder.
Second Try
Trying with the config option to target a child package-scripts.json:
start: nps -c server/package-scripts.yml "server:start"
nps
5.10.0:node
v15.4.0:npm
7.5.0:Scripts file (or at least the relevant bits):
Sits in
/server
Sits in root
The main package.json (the one sitting in root) was able to run scripts in subfolders using the
--prefix
option. I'm trying to reproduce the same setup with nps. Is this possible?When running the
nps server.start
from the the root dir in CLI, I'm attempting to trigger this:nps "server:start --prefix server/"
whichserver:start
from the package scripts in child folder.Second Try
Trying with the config option to target a child
package-scripts.json
:start: nps -c server/package-scripts.yml "server:start"
Also..
start: "nps -c server/package-scripts.yml server:start"
Results in
Scripts must resolve to strings. There is no script that can be resolved from "server:start"