-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(nodejs): ✨ handle engine versions and package installs (#617)
When using `package.json`, Node can define a number of `engines` and the relative versions that are needed for it. This was not directly supported while we were already looking at `package.json` to figure out the version of node to be installed. This now adds support to ensure that `npm`, `pnpm`, `yarn`, `electron` and other engines are installed in the required versions for the current environment. This also creates an isolation path for node to run `npm install -g` and install tools only for the current work directory. This also adds support for running `npm install`, `pnpm install` or `yarn install` automatically depending on the lock files that are present in the directory, as well as the `engines` listed in the `package.json` file. Both those behaviors default to be enabled, but can be disabled by setting `install_engines` and `install_packages` to `false` when setting up the `node` operation. Closes #293 Closes #294
- Loading branch information
Showing
16 changed files
with
487 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.