File tree Expand file tree Collapse file tree 2 files changed +11
-27
lines changed Expand file tree Collapse file tree 2 files changed +11
-27
lines changed Original file line number Diff line number Diff line change 56
56
"rollup-plugin-uglify" : " 6.0.2" ,
57
57
"typescript" : " 3.4.3"
58
58
},
59
- "typings" : " index.d.ts"
59
+ "typings" : " index.d.ts" ,
60
+ "components" : [
61
+ " auth" ,
62
+ " database" ,
63
+ " firestore" ,
64
+ " functions" ,
65
+ " messaging" ,
66
+ " storage"
67
+ ]
60
68
}
Original file line number Diff line number Diff line change @@ -24,22 +24,6 @@ import { uglify } from 'rollup-plugin-uglify';
24
24
import pkg from './package.json' ;
25
25
26
26
import appPkg from './app/package.json' ;
27
- import authPkg from './auth/package.json' ;
28
- import databasePkg from './database/package.json' ;
29
- import firestorePkg from './firestore/package.json' ;
30
- import functionsPkg from './functions/package.json' ;
31
- import messagingPkg from './messaging/package.json' ;
32
- import storagePkg from './storage/package.json' ;
33
-
34
- const pkgsByName = {
35
- app : appPkg ,
36
- auth : authPkg ,
37
- database : databasePkg ,
38
- firestore : firestorePkg ,
39
- functions : functionsPkg ,
40
- messaging : messagingPkg ,
41
- storage : storagePkg
42
- } ;
43
27
44
28
const plugins = [
45
29
sourcemaps ( ) ,
@@ -88,17 +72,9 @@ const appBuilds = [
88
72
}
89
73
] ;
90
74
91
- const components = [
92
- 'auth' ,
93
- 'database' ,
94
- 'firestore' ,
95
- 'functions' ,
96
- 'messaging' ,
97
- 'storage'
98
- ] ;
99
- const componentBuilds = components
75
+ const componentBuilds = pkg . components
100
76
. map ( component => {
101
- const pkg = pkgsByName [ component ] ;
77
+ const pkg = require ( `./ ${ component } /package.json` ) ;
102
78
return [
103
79
{
104
80
input : `${ component } /index.ts` ,
You can’t perform that action at this time.
0 commit comments