Skip to content

Commit 34274bf

Browse files
danielronnkvistfilipesilva
authored andcommitted
fix(@angular/cli): Changed init order to make sure all files gets committed
With the update of npm 5 and the introduction of package-lock.json all files weren't committed into the first commit.
1 parent 168c963 commit 34274bf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/@angular/cli/tasks/init.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ export default Task.extend({
8888

8989
return installBlueprint.run(blueprintOpts)
9090
.then(function () {
91-
if (commandOptions.skipGit === false) {
92-
return gitInit.run(commandOptions, rawArgs);
91+
if (!commandOptions.skipInstall) {
92+
return npmInstall.run();
9393
}
9494
})
9595
.then(function () {
96-
if (!commandOptions.skipInstall) {
97-
return npmInstall.run();
96+
if (commandOptions.skipGit === false) {
97+
return gitInit.run(commandOptions, rawArgs);
9898
}
9999
})
100100
.then(function () {

0 commit comments

Comments
 (0)