You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
▶ npm run-script dev --workspace=@project/api
npm ERR! missing script: dev
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/chance/.npm/_logs/2020-08-17T17_47_10_286Z-debug.log
I'm also not sure if NPM can pass arguments on to scripts. For example, I don't think this will work, right?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there a way to specify a workspace for context on running scripts or commands?
For example, my package.json looks like this:
so that I can run
yarn api dev
oryarn api add lodash
edit:
I just found the the RFC for workspace commands.
I'm also not sure if NPM can pass arguments on to scripts. For example, I don't think this will work, right?
npm run api install lodash
I don't mind having to move the base package commands over to a Makefile but I will definitely need the
--workspace
flag to work.Beta Was this translation helpful? Give feedback.
All reactions