Skip to content

Commit

Permalink
generate-blueprint: deprecate withLookups in favor of withJHipsterGen…
Browse files Browse the repository at this point in the history
…erators
  • Loading branch information
mshima committed Sep 26, 2024
1 parent cd963df commit 39fb346
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('SubGenerator <%= subGenerator %> of <%= application.baseName %> JHipst
inline: 'application { }',
<%_ } _%>
})
.withJHipsterLookup()
.withJHipsterGenerators()
.withParentBlueprintLookup();
});

Expand Down
9 changes: 2 additions & 7 deletions lib/testing/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,14 +240,9 @@ class JHipsterRunContext extends RunContext<GeneratorTestType> {
});
}

/** @deprecated use withJHipsterGenerators */
withJHipsterLookup(): this {
return this.withLookups([
{
packagePaths: [getPackageRoot()],
// @ts-expect-error lookups is not exported
lookups: [`${isDistFolder() ? 'dist/' : ''}generators`, `${isDistFolder() ? 'dist/' : ''}generators/*/generators`],
},
]);
return this.withJHipsterGenerators();
}

/**
Expand Down

0 comments on commit 39fb346

Please sign in to comment.