-
Notifications
You must be signed in to change notification settings - Fork 11.9k
feat(@schematics/angular): introduce addDependency
rule to utilities
#23067
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
63baf75
to
4fc986f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great stuff @clydin, glad to get this in!
4fc986f
to
d77bbc2
Compare
An `addDependency` schematics rule has been added to the newly introduced `utility` subpath export for the `@schematics/angular` package. This new rule allows for adding a package as a dependency to a `package.json`. By default the `package.json` located at the schematic's root will be used. The `packageJsonPath` option can be used to explicitly specify a `package.json` in a different location. The type of the dependency can also be specified instead of the default of the `dependencies` section by using the `type` option for either development or peer dependencies.
d77bbc2
to
c8434bb
Compare
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
An
addDependency
schematics rule has been added to the newly introducedutility
subpath export for the@schematics/angular
package.This new rule allows for adding a package as a dependency to a
package.json
. By default thepackage.json
locatedat the schematic's root will be used. The
packageJsonPath
option can be used to explicitly specifya
package.json
in different location. The type of the dependency can also be specified insteadof the default of the
dependencies
section by using thetype
option for either development or peer dependencies.Will be added to the export path in #23041