Skip to content

Commit

Permalink
fix(upgrade): fix breaking changes for yeoman-generator
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvdutt committed Oct 26, 2018
1 parent cefe6b3 commit f057ecf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/generators/add-generator.ts
Expand Up @@ -432,7 +432,7 @@ export default class AddGenerator extends Generator {
] = `new ${pluginName}`;
this.configuration.config.item = answerToAction.actionAnswer;
done();
this.runInstall(getPackageManager(), this.dependencies, {
this.scheduleInstallTask(getPackageManager(), this.dependencies, {
"save-dev": true,
});
} else {
Expand Down
6 changes: 4 additions & 2 deletions packages/generators/addon-generator.ts
Expand Up @@ -75,9 +75,11 @@ export default function addonGenerator(
public install() {
this.npmInstall(["webpack-defaults", "bluebird"], {
"save-dev": true,
}).then((_: void): void => {
this.spawnCommand("npm", ["run", "defaults"]);
});
}

public end() {
this.spawnCommand("npm", ["run", "defaults"]);
}
};
}
2 changes: 1 addition & 1 deletion packages/generators/init-generator.ts
Expand Up @@ -439,7 +439,7 @@ export default class InitGenerator extends Generator {
dev?: boolean,
"save-dev"?: boolean,
} = packager === "yarn" ? { dev: true } : { "save-dev": true };
this.runInstall(packager, this.dependencies, opts);
this.scheduleInstallTask(packager, this.dependencies, opts);
}

public writing() {
Expand Down

0 comments on commit f057ecf

Please sign in to comment.