Scope
Improves an existing behavior
Compatibility
Feature description
Current behavior
This package has a postinstall script that auto-copies the worker script to the consumer's specified directory. Executing arbitrary scripts in NPM packages is not a good idea.
Expected behavior
The consumer should instead include the auto-update functionality in their package.json as an explicit command they wish to have any time they reinstall dependencies:
{
"scripts": {
"postinstall": "npx msw update-worker"
}
}
Possible CLI command names:
Scope
Improves an existing behavior
Compatibility
Feature description
Current behavior
This package has a
postinstallscript that auto-copies the worker script to the consumer's specified directory. Executing arbitrary scripts in NPM packages is not a good idea.Expected behavior
The consumer should instead include the auto-update functionality in their
package.jsonas an explicit command they wish to have any time they reinstall dependencies:{ "scripts": { "postinstall": "npx msw update-worker" } }Possible CLI command names: