forked from projen/projen
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(node): deprecate "xxxDependencies" in favor of "xxxDeps" (warning)
Mark the `xxxDependencies` options as deprecated and issue a warning during synthesis. The alternative is to use the `xxxDeps` option which allows managing versions in `package.json` file. This is a superior approach as it allows external tools such as dependabot to manage your module versions. Instead of: dependencies: { 'express': Server.caret('2.0.0') } Use: deps: [ 'express' ] Or if you need a specific version (unlikely): deps: [ 'express@^2' ] When a version is not specified, projen will behave like `npm i` or `yarn add`. It will install the latest version and record it as a caret dependency in your `package.json` file. From here on out, the version will be managed in your `package.json` file.
- Loading branch information
Elad Ben-Israel
committed
Oct 27, 2020
1 parent
55b8f84
commit a9f3890
Showing
6 changed files
with
392 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.