Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Extract and use version from package.json #49

Open
@wereHamster

Description

@wereHamster

It would be nice if there was a way to automatically install the correct nodejs version by extracting the version from a projects package.json file. I'm thinking about something like this:

nodejs::project { '/path/to/some/project': }

which would expand to:

nodejs::local { '/path/to/some/project':
  version => $version_from_package_json
}

That way I could keep the source of truth in the project repo, because there are other tools which read the version from the package.json file (e.g. when deploying to heroku).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions