Skip to content

Commit

Permalink
Add changelog, add timer to ng-add
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdaniels committed May 18, 2021
1 parent e97bcac commit 3a4854d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
@@ -1,7 +1,11 @@
<a name="6.1.5"></a>
# [6.1.5](https://github.com/angular/angularfire/compare/6.1.4...6.1.5) (2021-05-17)

* Support Angular 12 peer
Support Angular 12 peer

### Bug Fixes

* **auth:** set the passed settings individually ([#2826](https://github.com/angular/angularfire/issues/2826)) ([984803d](https://github.com/angular/angularfire/commit/984803d))

<a name="6.1.4"></a>
# [6.1.4](https://github.com/angular/angularfire/compare/6.1.3...6.1.4) (2020-12-03)
Expand Down
9 changes: 7 additions & 2 deletions src/schematics/ng-add.ts
Expand Up @@ -105,8 +105,13 @@ export const ngAdd = (options: DeployOptions) => (

const {project} = getProject(options, host);

return projectTypePrompt(project).then(
({ universalProject }: { universalProject: boolean }) => {
// In Angular 12 it appears I might need some sort of timeout to allow
// node_modules to resolve?
const timeout = new Promise(resolve => setTimeout(resolve, 1_000));

return timeout.
then(() => projectTypePrompt(project)).
then(({ universalProject }: { universalProject: boolean }) => {
if (universalProject) {
addFirebaseFunctionsDependencies(host, context);
}
Expand Down

0 comments on commit 3a4854d

Please sign in to comment.