File tree Expand file tree Collapse file tree 5 files changed +39
-2
lines changed Expand file tree Collapse file tree 5 files changed +39
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @firebase/remote-config ' : patch
3
+ ' @firebase/analytics ' : patch
4
+ ' firebase ' : patch
5
+ ---
6
+
7
+ Add rollup config to generate modular typings for google3
Original file line number Diff line number Diff line change 49
49
"devDependencies" : {
50
50
"@firebase/app" : " 0.13.1" ,
51
51
"rollup" : " 2.79.2" ,
52
+ "rollup-plugin-dts" : " 5.3.1" ,
52
53
"@rollup/plugin-commonjs" : " 21.1.0" ,
53
54
"@rollup/plugin-json" : " 6.1.0" ,
54
55
"@rollup/plugin-node-resolve" : " 16.0.0" ,
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import json from '@rollup/plugin-json';
19
19
import typescriptPlugin from 'rollup-plugin-typescript2' ;
20
20
import replace from 'rollup-plugin-replace' ;
21
21
import typescript from 'typescript' ;
22
+ import dts from 'rollup-plugin-dts' ;
22
23
import { generateBuildTargetReplaceConfig } from '../../scripts/build/rollup_replace_build_target' ;
23
24
import { emitModulePackageFile } from '../../scripts/build/rollup_emit_module_package_file' ;
24
25
import pkg from './package.json' ;
@@ -77,4 +78,17 @@ const cjsBuilds = [
77
78
}
78
79
] ;
79
80
80
- export default [ ...esmBuilds , ...cjsBuilds ] ;
81
+ const google3TypingsBuild = {
82
+ input : 'dist/src/index.d.ts' ,
83
+ output : {
84
+ file : 'dist/src/global_index.d.ts' ,
85
+ format : 'es'
86
+ } ,
87
+ plugins : [
88
+ dts ( {
89
+ respectExternal : true
90
+ } )
91
+ ]
92
+ } ;
93
+
94
+ export default [ ...esmBuilds , ...cjsBuilds , google3TypingsBuild ] ;
Original file line number Diff line number Diff line change 50
50
"devDependencies" : {
51
51
"@firebase/app" : " 0.13.1" ,
52
52
"rollup" : " 2.79.2" ,
53
+ "rollup-plugin-dts" : " 5.3.1" ,
53
54
"rollup-plugin-typescript2" : " 0.36.0" ,
54
55
"typescript" : " 5.5.4"
55
56
},
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import json from '@rollup/plugin-json'; // Enables package.json import in TypeSc
19
19
import typescriptPlugin from 'rollup-plugin-typescript2' ;
20
20
import replace from 'rollup-plugin-replace' ;
21
21
import typescript from 'typescript' ;
22
+ import dts from 'rollup-plugin-dts' ;
22
23
import { generateBuildTargetReplaceConfig } from '../../scripts/build/rollup_replace_build_target' ;
23
24
import { emitModulePackageFile } from '../../scripts/build/rollup_emit_module_package_file' ;
24
25
import pkg from './package.json' ;
@@ -70,4 +71,17 @@ const cjsBuild = {
70
71
]
71
72
} ;
72
73
73
- export default [ esmBuild , cjsBuild ] ;
74
+ const google3TypingsBuild = {
75
+ input : 'dist/src/index.d.ts' ,
76
+ output : {
77
+ file : 'dist/src/global_index.d.ts' ,
78
+ format : 'es'
79
+ } ,
80
+ plugins : [
81
+ dts ( {
82
+ respectExternal : true
83
+ } )
84
+ ]
85
+ } ;
86
+
87
+ export default [ esmBuild , cjsBuild , google3TypingsBuild ] ;
You can’t perform that action at this time.
0 commit comments