Skip to content

Commit e1d48e1

Browse files
authored
fix: fix type definitions (#23)
1 parent 96d431f commit e1d48e1

File tree

2 files changed

+16
-15
lines changed

2 files changed

+16
-15
lines changed

package.json

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"source": "./src/index.tsx",
66
"main": "./lib/commonjs/index.js",
77
"module": "./lib/module/index.js",
8+
"types": "./lib/typescript/module/src/index.d.ts",
89
"exports": {
910
".": {
1011
"import": {
@@ -15,16 +16,6 @@
1516
"types": "./lib/typescript/commonjs/src/index.d.ts",
1617
"default": "./lib/commonjs/index.js"
1718
}
18-
},
19-
"./react-navigation": {
20-
"import": {
21-
"types": "./lib/typescript/module/src/react-navigation/index.d.ts",
22-
"default": "./lib/module/react-navigation/index.js"
23-
},
24-
"require": {
25-
"types": "./lib/typescript/commonjs/src/react-navigation/index.d.ts",
26-
"default": "./lib/commonjs/react-navigation/index.js"
27-
}
2819
}
2920
},
3021
"files": [
@@ -170,7 +161,6 @@
170161
"source": "src",
171162
"output": "lib",
172163
"targets": [
173-
"codegen",
174164
[
175165
"commonjs",
176166
{

react-navigation/package.json

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
{
2-
"main": "../lib/commonjs/react-navigation/index",
3-
"module": "../lib/module/react-navigation/index",
4-
"react-native": "../src/react-navigation/index",
5-
"types": "../lib/typescript/react-navigation/index"
2+
"main": "../lib/commonjs/react-navigation/index.js",
3+
"module": "../lib/module/react-navigation/index.js",
4+
"types": "../lib/typescript/module/src/react-navigation/index.d.ts",
5+
"exports": {
6+
".": {
7+
"import": {
8+
"types": "../lib/typescript/module/src/react-navigation/index.d.ts",
9+
"default": "../lib/module/react-navigation/index.js"
10+
},
11+
"require": {
12+
"types": "./lib/typescript/commonjs/src/index.d.ts",
13+
"default": "../lib/commonjs/src/react-navigation/index.js"
14+
}
15+
}
16+
}
617
}

0 commit comments

Comments
 (0)