Skip to content
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

feat: add support for full semantic versioning in engines field #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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).
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