I am used to run yarn
/ npm
and then the command:
yarn build-me
or
npm run build-me
This calls a script command declared in the the local package.json
root file.
In my case I'd like to run a script command declared in the package.json
of a package in node_modules
folder.
How can I do this?
I have installed a test package i wrote inside app. Here is the dependency (in my root app) and I can see it under node_modules
"dependencies": {
"@tester/util-package": "^1.0.2"
}
Under node_modules this util-package also has it's own package.json with the following script
"scripts": {
"process-files": "node ./cli.js"
},
So, I was hoping to run this from the root of my app something like.
yarn util-package process-files
Of course, this doesn't seem to work.