Skip to content

Conversation

per1234
Copy link
Contributor

@per1234 per1234 commented Mar 21, 2022

The version field is only needed if the package is to be published. In this project, package.json is used only for management of the dependencies and scripts for internal development.

For this reason, having a version field in the file is harmful because it increases the effort and complexity of making a release, and also is likely to get out of sync with the true version.

Reference:

https://docs.npmjs.com/cli/v8/configuring-npm/package-json#version

If you don't plan to publish your package, the name and version fields are optional.


This was done last year for the arduino/setup-task action without any ill effects: arduino/setup-task#49

The `version` field is only needed if the package is to be published. In this project, package.json is only used for
manage dependencies and scripts for internal development.

For this reason, having a `version` field is harmful because it increases the effort and complexity of making a release,
and also is likely to get out of sync with the true version.
@per1234 per1234 added type: enhancement Proposed improvement topic: infrastructure Related to project infrastructure labels Mar 21, 2022
@per1234 per1234 requested a review from umbynos March 21, 2022 13:31
@per1234 per1234 self-assigned this Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: infrastructure Related to project infrastructure type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants