-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for full semantic versioning in engines field
Fixes #21 Add support for full semantic versioning in `engines` field of `package.json`. * **action.yml** - Add a new input `updaters.engines.fullVersion` to enable full semantic versioning. * **src/index.ts** - Add a new constant `updatersEnginesFullVersion` to get the input for full semantic versioning. - Add `updatersEnginesFullVersion` to the `inputs` object. * **src/updateNodeVersions.ts** - Add `updatersEnginesFullVersion` to the `Inputs` type. - Pass `updatersEnginesFullVersion` to the `engines` function. * **src/updaters/engines.ts** - Add a new parameter `fullVersion` to the `engines` function. - Update the `engines` function to set the `engines.node` field to `>=` followed by the full version if `fullVersion` is true. * **README.md** - Update the `Engines` section to mention support for full semantic versioning. - Add an example of using the `updaters.engines.fullVersion` input. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/hongaar/update-node-versions/issues/21?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information
Showing
5 changed files
with
25 additions
and
3 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
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