Skip to content

Commit

Permalink
Adjusts to nodePackageManager option
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Mar 6, 2021
1 parent 683da92 commit ff30d6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,8 @@ class Environment extends Base {
*/
loadEnvironmentOptions(options) {
const environmentOptions = _.pick(options, [
'skipInstall'
'skipInstall',
'nodePackageManager'
]);
_.defaults(this.options, environmentOptions);
return environmentOptions;
Expand Down
2 changes: 1 addition & 1 deletion lib/package-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Changes to package.json were detected.`);
return false;
}

let packageManagerName = this.options.nodePackageManager || await this.detectPackageManager();
let packageManagerName = await this.detectPackageManager();
if (!packageManagerName) {
packageManagerName = 'npm';
this.adapter.log('Error detecting the package manager. Falling back to npm.');
Expand Down

0 comments on commit ff30d6c

Please sign in to comment.