mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-07-14 19:10:28 +03:00
fix(api): add type definitions to package.json exports (#9486)
This commit is contained in:
parent
aaa332c6e7
commit
be7eab209c
5
.changes/api-type-definitions.md
Normal file
5
.changes/api-type-definitions.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@tauri-apps/api": patch:bug
|
||||
---
|
||||
|
||||
Set the `exports > types` package.json field.
|
@ -21,14 +21,17 @@
|
||||
"type": "module",
|
||||
"main": "./index.cjs",
|
||||
"module": "./index.js",
|
||||
"types": "./index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./index.js",
|
||||
"require": "./index.cjs"
|
||||
"require": "./index.cjs",
|
||||
"types": "./index.d.ts"
|
||||
},
|
||||
"./*": {
|
||||
"import": "./*.js",
|
||||
"require": "./*.cjs"
|
||||
"require": "./*.cjs",
|
||||
"types": "./*.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user