Skip to content

Conversation

@hongaar
Copy link
Owner

@hongaar hongaar commented Nov 7, 2024

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.

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).
@hongaar hongaar requested a review from Copilot November 16, 2024 11:14
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 5 out of 5 changed files in this pull request and generated no suggestions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Be able to keep full semver requirement in package.json

1 participant