mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-08-16 19:30:27 +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",
|
"type": "module",
|
||||||
"main": "./index.cjs",
|
"main": "./index.cjs",
|
||||||
"module": "./index.js",
|
"module": "./index.js",
|
||||||
|
"types": "./index.d.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"import": "./index.js",
|
"import": "./index.js",
|
||||||
"require": "./index.cjs"
|
"require": "./index.cjs",
|
||||||
|
"types": "./index.d.ts"
|
||||||
},
|
},
|
||||||
"./*": {
|
"./*": {
|
||||||
"import": "./*.js",
|
"import": "./*.js",
|
||||||
"require": "./*.cjs"
|
"require": "./*.cjs",
|
||||||
|
"types": "./*.d.ts"
|
||||||
},
|
},
|
||||||
"./package.json": "./package.json"
|
"./package.json": "./package.json"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user