Skip to content

Commit

Permalink
fix: add back main, module and types field in top-level package…
Browse files Browse the repository at this point in the history
….json (#742)

closes #738

`"moduleResolution": "node"` doesn't handle the `exports` field
  • Loading branch information
amrbashir authored Nov 20, 2023
1 parent 5a8bbe2 commit eea3df5
Show file tree
Hide file tree
Showing 24 changed files with 72 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/authenticator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions plugins/autostart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,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",
Expand Down
3 changes: 3 additions & 0 deletions plugins/barcode-scanner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions plugins/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,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",
Expand Down
3 changes: 3 additions & 0 deletions plugins/clipboard-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,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",
Expand Down
3 changes: 3 additions & 0 deletions plugins/deep-link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions plugins/dialog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,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",
Expand Down
3 changes: 3 additions & 0 deletions plugins/fs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions plugins/global-shortcut/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,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",
Expand Down
3 changes: 3 additions & 0 deletions plugins/http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,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",
Expand Down
3 changes: 3 additions & 0 deletions plugins/log/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions plugins/notification/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,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",
Expand Down
3 changes: 3 additions & 0 deletions plugins/os/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,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",
Expand Down
3 changes: 3 additions & 0 deletions plugins/positioner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions plugins/process/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,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",
Expand Down
3 changes: 3 additions & 0 deletions plugins/shell/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,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",
Expand Down
3 changes: 3 additions & 0 deletions plugins/sql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions plugins/store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions plugins/stronghold/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions plugins/updater/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,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",
Expand Down
3 changes: 3 additions & 0 deletions plugins/upload/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions plugins/websocket/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,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",
Expand Down
3 changes: 3 additions & 0 deletions plugins/window-state/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions shared/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,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",
Expand Down

0 comments on commit eea3df5

Please sign in to comment.