mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-01 03:02:28 +03:00
fix(api): add top-level main
, module
and types
fields (#8268)
This commit is contained in:
parent
c2ad4d28c4
commit
46451aee13
5
.changes/api-top-level-main-module.md
Normal file
5
.changes/api-top-level-main-module.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
'@tauri-apps/api': 'patch:bug'
|
||||
---
|
||||
|
||||
Add top-level `main`, `module` and `types` fields in `package.json` to be compliant with typescripts's `"moduleResolution": "node"`
|
@ -19,6 +19,12 @@
|
||||
},
|
||||
"homepage": "https://github.com/tauri-apps/tauri#readme",
|
||||
"type": "module",
|
||||
"types": "./types/index.d.ts",
|
||||
"main": "./index.cjs",
|
||||
"module": "./index.js",
|
||||
"exports": {
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "rollup -c --configPlugin typescript",
|
||||
"npm-pack": "yarn build && cd ./dist && npm pack",
|
||||
@ -48,9 +54,6 @@
|
||||
"tslib": "2.6.2",
|
||||
"typescript": "5.2.2"
|
||||
},
|
||||
"exports": {
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18",
|
||||
"npm": ">= 6.6.0",
|
||||
|
Loading…
Reference in New Issue
Block a user