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
How can I configure workspaceA/package.json for updating mockServiceWorker.js?
I don't want to write msw.workerDirectory in the rootpackage.json, Because I don't want to leak workspaceA information out.
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
-
Suppose
npm workspaces
is constructed as follows.And assume that
msw
is used only withinworkspaceA
.Running
npm i -D msw@latest -w workspaceA
in this situation will not updatemockServiceWorker.js
to seepackage.json
in theroot
directory.msw/config/scripts/postinstall.js
Line 8 in b3e47f7
How can I configure
workspaceA/package.json
for updatingmockServiceWorker.js
?I don't want to write
msw.workerDirectory
in theroot
package.json
, Because I don't want to leakworkspaceA
information out.Beta Was this translation helpful? Give feedback.
All reactions