Skip to content

Commit

Permalink
Merge pull request #27017 from mshima/npmw
Browse files Browse the repository at this point in the history
fix npm execution with default buildTool
  • Loading branch information
DanielFran authored Aug 20, 2024
2 parents fc68c16 + 95f76fe commit d2344be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generators/server/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ export default class JHipsterServerGenerator extends BaseApplicationGenerator {
useNpmWrapperInstallTask() {
this.setFeatures({
customInstallTask: async function customInstallTask(preferredPm, defaultInstallTask) {
const buildTool = this.jhipsterConfig.buildTool;
const buildTool = this.jhipsterConfigWithDefaults.buildTool;
if ((preferredPm && preferredPm !== 'npm') || this.jhipsterConfig.skipClient || (buildTool !== GRADLE && buildTool !== MAVEN)) {
return defaultInstallTask();
}
Expand Down

0 comments on commit d2344be

Please sign in to comment.