Skip to content

Commit cb160fd

Browse files
committed
Cleaning up
1 parent 4ed421c commit cb160fd

File tree

3 files changed

+248
-145
lines changed

3 files changed

+248
-145
lines changed

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@
3333
},
3434
"homepage": "https://github.com/angular/angularfire2#readme",
3535
"dependencies": {
36-
"@angular-devkit/architect": "^0.800.0-rc.4 || >=8.0.0 <9 || ^9.0.0-0",
37-
"@angular-devkit/core": ">=6.0.0 <9 || ^8.0.0-0 || ^9.0.0-0",
38-
"@angular-devkit/schematics": ">=6.0.0 <9 || ^8.0.0-0 || ^9.0.0-0",
39-
"@angular/common": ">=6.0.0 <9 || ^8.0.0-0 || ^9.0.0-0",
40-
"@angular/compiler": ">=6.0.0 <9 || ^8.0.0-0 || ^9.0.0-0",
41-
"@angular/core": ">=6.0.0 <9 || ^8.0.0-0 || ^9.0.0-0",
42-
"@angular/platform-browser": ">=6.0.0 <9 || ^8.0.0-0 || ^9.0.0-0",
43-
"@angular/platform-browser-dynamic": ">=6.0.0 <9 || ^8.0.0-0 || ^9.0.0-0",
44-
"@angular/router": ">=6.0.0 <9 || ^8.0.0-0 || ^9.0.0-0",
36+
"@angular-devkit/architect": "<0.900 || ^0.800.0 || ^0.900.0-0 || ^9.0.0-0",
37+
"@angular-devkit/core": ">=6.0.0 <9 || ^9.0.0-0",
38+
"@angular-devkit/schematics": ">=6.0.0 <9 || ^9.0.0-0",
39+
"@angular/common": ">=6.0.0 <9 || ^9.0.0-0",
40+
"@angular/compiler": ">=6.0.0 <9 || ^9.0.0-0",
41+
"@angular/core": ">=6.0.0 <9 || ^9.0.0-0",
42+
"@angular/platform-browser": ">=6.0.0 <9 || ^9.0.0-0",
43+
"@angular/platform-browser-dynamic": ">=6.0.0 <9 || ^9.0.0-0",
44+
"@angular/router": ">=6.0.0 <9 || ^9.0.0-0",
4545
"firebase": ">= 5.5.7 <7",
4646
"firebase-tools": "^6.10.0",
4747
"fuzzy": "^0.1.3",
@@ -50,16 +50,16 @@
5050
"rxjs": "^6.0.0",
5151
"ws": "^3.3.2",
5252
"xhr2": "^0.1.4",
53-
"zone.js": "^0.8.0 || ^0.9.0"
53+
"zone.js": "<0.10"
5454
},
5555
"optionalDependencies": {
5656
"bufferutil": "~3.0.0",
5757
"utf-8-validate": "~4.0.0"
5858
},
5959
"devDependencies": {
60-
"@angular/animations": ">=6.0.0 <9 || ^8.0.0-0 || ^9.0.0-0",
61-
"@angular/compiler-cli": ">=6.0.0 <9 || ^8.0.0-0 || ^9.0.0-0",
62-
"@angular/platform-server": ">=6.0.0 <9 || ^8.0.0-0 || ^9.0.0-0",
60+
"@angular/animations": ">=6.0.0 <9 || ^9.0.0-0",
61+
"@angular/compiler-cli": ">=6.0.0 <9 || ^9.0.0-0",
62+
"@angular/platform-server": ">=6.0.0 <9 || ^9.0.0-0",
6363
"@types/inquirer": "^0.0.44",
6464
"@types/jasmine": "^2.5.36",
6565
"@types/request": "0.0.30",

src/schematics/ng-add.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { SchematicsException, Tree, SchematicContext } from '@angular-devkit/sch
22
import { NodePackageInstallTask, RunSchematicTask } from '@angular-devkit/schematics/tasks';
33
import { FirebaseJSON, FirebaseRc, FirebaseHostingConfig } from './interfaces';
44
import { experimental, JsonParseMode, parseJson } from '@angular-devkit/core';
5-
import { from, of } from 'rxjs';
5+
import { from } from 'rxjs';
66
import { map, switchMap } from 'rxjs/operators';
77
import { Project } from './interfaces';
88
import { listProjects, projectPrompt } from './utils';
@@ -157,12 +157,11 @@ interface DeployOptions {
157157

158158
// You don't have to export the function as default. You can also have more than one rule factory
159159
// per file.
160-
export const setupNgDeploy = ({ project }: DeployOptions) => (host: Tree) => {
161-
return from(listProjects()).pipe(
160+
export const setupNgDeploy = ({ project }: DeployOptions) => (host: Tree) =>
161+
from(listProjects()).pipe(
162162
switchMap((projects: Project[]) => projectPrompt(projects)),
163163
map(({ firebaseProject }: any) => setupFirebaseProject(host, { firebaseProject, project }))
164164
);
165-
}
166165

167166
export const ngAdd = (options: DeployOptions) => (host: Tree, context: SchematicContext) => {
168167
const packageJson = host.exists('package.json') && safeReadJSON('package.json', host);

0 commit comments

Comments
 (0)