Skip to content

Commit

Permalink
fix: fix type definitions (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
okwasniewski authored Oct 9, 2024
1 parent 96d431f commit e1d48e1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
12 changes: 1 addition & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"source": "./src/index.tsx",
"main": "./lib/commonjs/index.js",
"module": "./lib/module/index.js",
"types": "./lib/typescript/module/src/index.d.ts",
"exports": {
".": {
"import": {
Expand All @@ -15,16 +16,6 @@
"types": "./lib/typescript/commonjs/src/index.d.ts",
"default": "./lib/commonjs/index.js"
}
},
"./react-navigation": {
"import": {
"types": "./lib/typescript/module/src/react-navigation/index.d.ts",
"default": "./lib/module/react-navigation/index.js"
},
"require": {
"types": "./lib/typescript/commonjs/src/react-navigation/index.d.ts",
"default": "./lib/commonjs/react-navigation/index.js"
}
}
},
"files": [
Expand Down Expand Up @@ -170,7 +161,6 @@
"source": "src",
"output": "lib",
"targets": [
"codegen",
[
"commonjs",
{
Expand Down
19 changes: 15 additions & 4 deletions react-navigation/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
{
"main": "../lib/commonjs/react-navigation/index",
"module": "../lib/module/react-navigation/index",
"react-native": "../src/react-navigation/index",
"types": "../lib/typescript/react-navigation/index"
"main": "../lib/commonjs/react-navigation/index.js",
"module": "../lib/module/react-navigation/index.js",
"types": "../lib/typescript/module/src/react-navigation/index.d.ts",
"exports": {
".": {
"import": {
"types": "../lib/typescript/module/src/react-navigation/index.d.ts",
"default": "../lib/module/react-navigation/index.js"
},
"require": {
"types": "./lib/typescript/commonjs/src/index.d.ts",
"default": "../lib/commonjs/src/react-navigation/index.js"
}
}
}
}

0 comments on commit e1d48e1

Please sign in to comment.