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).
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:
which would expand to:
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).