Skip to content

Commit

Permalink
fix: use correct registry prop for arborist (#440)
Browse files Browse the repository at this point in the history
  • Loading branch information
murukal committed Nov 29, 2022
1 parent 332459e commit 48a33d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/environment.js
Expand Up @@ -331,7 +331,7 @@ class Environment extends Base {

this.repository = new YeomanRepository({
repositoryPath: this.options.yeomanRepository,
arboristRegister: this.options.arboristRegister
arboristRegistry: this.options.arboristRegistry
});

if (!this.options.experimental) {
Expand Down
6 changes: 3 additions & 3 deletions lib/util/repository.js
Expand Up @@ -14,12 +14,12 @@ const REPOSITORY_FOLDER = '.yo-repository';
* @private
*/
class YeomanRepository {
constructor({repositoryPath = REPOSITORY_FOLDER, arboristRegister} = {}) {
constructor({repositoryPath = REPOSITORY_FOLDER, arboristRegistry} = {}) {
this.log = logger();
this.tracker = logger.tracker;

this.repositoryPath = repositoryPath;
this.arboristRegister = arboristRegister;
this.arboristRegistry = arboristRegistry;
}

/**
Expand Down Expand Up @@ -106,7 +106,7 @@ class YeomanRepository {
path: this.repositoryPath,
globalStyle: true,
log: this.tracker,
register: this.arboristRegister
registry: this.arboristRegistry
});
return this.arb.reify(options);
}
Expand Down

0 comments on commit 48a33d1

Please sign in to comment.