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
Background:
When testable-artifact-builder runs installSnapshots it adds the test dependencies to the dependencies object in the package.json so that npm won't throw errors about dependency mismatches. However, some projects don't want any modules in the dependencies object. For instance, if a projects is bundled using webpack instead of npm and then is published as a resulting dist then adding modules to the dependencies object will just cause extra installs to occur downstream for no reason. In that case it would be nice if testable-artifact-builder was parameterized so that the user could tell it to add the dependencies to the devDependencies object instead. That would prevent version mismatch errors, but downstream projects wouldn't have to install extraneous dependencies.
AC:
Add a --install-as-dev option to the installSnapshots command in testable-artifact-builder that tells it to install test dependencies to the devDependencies object.
The text was updated successfully, but these errors were encountered:
Background:
When testable-artifact-builder runs
installSnapshots
it adds the test dependencies to thedependencies
object in the package.json so that npm won't throw errors about dependency mismatches. However, some projects don't want any modules in thedependencies
object. For instance, if a projects is bundled using webpack instead of npm and then is published as a resulting dist then adding modules to thedependencies
object will just cause extra installs to occur downstream for no reason. In that case it would be nice if testable-artifact-builder was parameterized so that the user could tell it to add the dependencies to thedevDependencies
object instead. That would prevent version mismatch errors, but downstream projects wouldn't have to install extraneous dependencies.AC:
--install-as-dev
option to theinstallSnapshots
command in testable-artifact-builder that tells it to install test dependencies to thedevDependencies
object.The text was updated successfully, but these errors were encountered: