Skip to content

Commit fbe73f5

Browse files
committed
[types] Get types properly exporting as part of the build
1 parent 746faad commit fbe73f5

File tree

20 files changed

+580
-814
lines changed

20 files changed

+580
-814
lines changed

.babelrc

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
{
2-
"presets": ["react-native"]
2+
"env": {
3+
"development": {
4+
"presets": ["react-native"],
5+
"plugins": [
6+
"transform-flow-strip-types"
7+
]
8+
},
9+
"publish": {
10+
"presets": ["react-native-syntax"],
11+
"plugins": [
12+
"transform-flow-strip-types"
13+
]
14+
}
15+
}
316
}

.flowconfig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,14 @@
7373
.*/node_modules/protobufjs/src/bower.json
7474
.*/node_modules/grpc/node_modules/protobufjs/src/bower.json
7575

76+
# Ignore dist folder
77+
.*/dist/.*
78+
7679
[include]
7780
node_modules/fbjs/lib
7881

7982
[libs]
80-
lib/flow.js
83+
lib/types/flow.js
8184
node_modules/react-native/Libraries/react-native/react-native-interface.js
8285
node_modules/react-native/flow
8386
node_modules/fbjs/flow/lib

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,4 @@ local.properties
7676

7777
**/ios/Pods/**
7878
**/ios/ReactNativeFirebaseDemo.xcworkspace/
79-
79+
dist

index.js

Lines changed: 0 additions & 5 deletions
This file was deleted.
File renamed without changes.

lib/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
* @flow
3+
*/
4+
import Firebase from './modules/core/firebase';
5+
6+
export const AdMob = require('./modules/admob');
7+
8+
export default Firebase;

lib/modules/auth/PhoneAuthListener.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// @flow
2-
import INTERNALS from './../../internals';
2+
import INTERNALS from '../../utils/internals';
33
import { generatePushID, isFunction, isAndroid, isIOS, isString, nativeToJSError } from './../../utils';
44

55
import type Auth from './';

lib/modules/auth/User.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @flow
33
* User representation wrapper
44
*/
5-
import INTERNALS from './../../internals';
5+
import INTERNALS from '../../utils/internals';
66

77
import type Auth from './';
88

lib/modules/auth/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
* Auth representation wrapper
44
*/
55
import User from './User';
6-
import ModuleBase from './../../utils/ModuleBase';
7-
import INTERNALS from './../../internals';
6+
import ModuleBase from '../../utils/ModuleBase';
7+
import INTERNALS from '../../utils/internals';
88
import ConfirmationResult from './ConfirmationResult';
99

1010
// providers
@@ -17,7 +17,7 @@ import FacebookAuthProvider from './providers/FacebookAuthProvider';
1717

1818
import PhoneAuthListener from './PhoneAuthListener';
1919

20-
import type FirebaseApp from '../../firebase-app';
20+
import type FirebaseApp from '../core/firebase-app';
2121

2222
export default class Auth extends ModuleBase {
2323
static _NAMESPACE = 'auth';

lib/modules/base.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)