fix: add back main, module and types field in top-level package.json (#742)

closes #738

`"moduleResolution": "node"` doesn't handle the `exports` field
This commit is contained in:
Amr Bashir
2023-11-20 16:00:55 +02:00
committed by GitHub
parent 5a8bbe2967
commit eea3df56ef
24 changed files with 72 additions and 0 deletions
+3
View File
@@ -7,6 +7,9 @@
"Tauri Programme within The Commons Conservancy"
],
"type": "module",
"types": "./dist-js/index.d.ts",
"main": "./dist-js/index.cjs",
"module": "./dist-js/index.js",
"exports": {
"types": "./dist-js/index.d.ts",
"import": "./dist-js/index.js",