Skip to content

Commit 333b3c3

Browse files
authored
Fix/typings export (wix#719)
* point to index.js to avoid typing reference issues * define types instead of typings in package.json
1 parent 6424252 commit 333b3c3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// import * as UILIB from './src/index';
22
// module.exports = {...UILIB};
33

4-
module.exports = require('./src/index').default;
4+
module.exports = require('./src/index.js').default;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "react-native-ui-lib",
33
"version": "4.2.0",
44
"main": "index.js",
5-
"typings": "index.d.ts",
5+
"types": "index.d.ts",
66
"author": "Ethan Sharabi <[email protected]>",
77
"homepage": "https://github.com/wix/react-native-ui-lib",
88
"license": "MIT",

0 commit comments

Comments
 (0)