From 95edc36806a3065b749390f63f1e7dc6a662b4b4 Mon Sep 17 00:00:00 2001 From: James Daniels Date: Fri, 8 Oct 2021 03:30:45 -0400 Subject: [PATCH] chore(release): Quick fixes to 9.1.0 (#3003) * Changelog errors * try/catch around install --- CHANGELOG.md | 4 ++-- src/schematics/deploy/actions.ts | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f056af022..f1f5af452 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,11 +18,11 @@ ### Misc. * `Analytics`, `RemoteConfig`, and `Messaging` can be `null` if `isSupported()` returns false, this guards against runtime failures in unsupported environments at the cost of null checking -* Require Firebase 7.1 peer +* Require Firebase 9.1 peer * `ng add` installs firebase-tools globally, this also addressed the race condition * Requires firebase-tools 9.9+ peer (optional) * Moved peer dependencies for the schematics to proper dependencies -* Mark compatability with rxjs 7 +* Mark compatibility with rxjs 7 * Increase the accuracy of performance marks * `ng deploy` echos out the firebase-tools version and the user * Error message improvements diff --git a/src/schematics/deploy/actions.ts b/src/schematics/deploy/actions.ts index 0c2c6b320..e4e50e4e8 100644 --- a/src/schematics/deploy/actions.ts +++ b/src/schematics/deploy/actions.ts @@ -226,7 +226,11 @@ export const deployToFunction = async ( // tslint:disable-next-line:no-non-null-assertion const siteTarget = options.target ?? context.target!.project; - execSync(`npm --prefix ${functionsOut} i`); + try { + execSync(`npm --prefix ${functionsOut} i`); + } catch (e) { + console.warn(e.messsage); + } if (options.preview) {