From 6c52699db831ed281314573eda9a6ac7dc332692 Mon Sep 17 00:00:00 2001 From: Zhou xiao Date: Mon, 20 Nov 2023 11:40:25 +0800 Subject: [PATCH] fix: optimize type prompt (#651) --- packages/bridge-react-v18/package.json | 3 ++- packages/bridge-react/package.json | 3 ++- packages/bridge-vue-v2/package.json | 3 ++- packages/bridge-vue-v3/package.json | 3 ++- packages/browser-snapshot/package.json | 3 ++- packages/browser-vm/package.json | 3 ++- packages/core/package.json | 3 ++- packages/css-scope/package.json | 3 ++- packages/es-module/package.json | 3 ++- packages/garfish/package.json | 3 ++- packages/hooks/package.json | 3 ++- packages/loader/package.json | 3 ++- packages/remote-module/package.json | 3 ++- packages/router/package.json | 3 ++- packages/test-suite/package.json | 3 ++- packages/utils/package.json | 3 ++- 16 files changed, 32 insertions(+), 16 deletions(-) diff --git a/packages/bridge-react-v18/package.json b/packages/bridge-react-v18/package.json index 42be14853..da50984ee 100644 --- a/packages/bridge-react-v18/package.json +++ b/packages/bridge-react-v18/package.json @@ -22,7 +22,8 @@ "exports": { ".": { "import": "./dist/esm/index.js", - "require": "./dist/index.js" + "require": "./dist/index.js", + "types": "./dist/index.d.ts" }, "./*": "./*" }, diff --git a/packages/bridge-react/package.json b/packages/bridge-react/package.json index 32d38137f..081c7dd57 100644 --- a/packages/bridge-react/package.json +++ b/packages/bridge-react/package.json @@ -22,7 +22,8 @@ "exports": { ".": { "import": "./dist/esm/index.js", - "require": "./dist/index.js" + "require": "./dist/index.js", + "types": "./dist/index.d.ts" }, "./*": "./*" }, diff --git a/packages/bridge-vue-v2/package.json b/packages/bridge-vue-v2/package.json index 12288f970..5602d620e 100644 --- a/packages/bridge-vue-v2/package.json +++ b/packages/bridge-vue-v2/package.json @@ -23,7 +23,8 @@ "exports": { ".": { "import": "./dist/esm/index.js", - "require": "./dist/index.js" + "require": "./dist/index.js", + "types": "./dist/index.d.ts" }, "./*": "./*" }, diff --git a/packages/bridge-vue-v3/package.json b/packages/bridge-vue-v3/package.json index 928ade010..c67775cae 100644 --- a/packages/bridge-vue-v3/package.json +++ b/packages/bridge-vue-v3/package.json @@ -23,7 +23,8 @@ "exports": { ".": { "import": "./dist/esm/index.js", - "require": "./dist/index.js" + "require": "./dist/index.js", + "types": "./dist/index.d.ts" }, "./*": "./*" }, diff --git a/packages/browser-snapshot/package.json b/packages/browser-snapshot/package.json index 05190a03f..1127fb097 100644 --- a/packages/browser-snapshot/package.json +++ b/packages/browser-snapshot/package.json @@ -19,7 +19,8 @@ "exports": { ".": { "import": "./dist/esm/index.js", - "require": "./dist/index.js" + "require": "./dist/index.js", + "types": "./dist/index.d.ts" }, "./*": "./*" }, diff --git a/packages/browser-vm/package.json b/packages/browser-vm/package.json index eaa290d07..7d51d5fb5 100644 --- a/packages/browser-vm/package.json +++ b/packages/browser-vm/package.json @@ -19,7 +19,8 @@ "exports": { ".": { "import": "./dist/esm/index.js", - "require": "./dist/index.js" + "require": "./dist/index.js", + "types": "./dist/index.d.ts" }, "./*": "./*" }, diff --git a/packages/core/package.json b/packages/core/package.json index fe9d0437f..2bad4719a 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -20,7 +20,8 @@ "exports": { ".": { "import": "./dist/esm/index.js", - "require": "./dist/index.js" + "require": "./dist/index.js", + "types": "./dist/index.d.ts" }, "./*": "./*" }, diff --git a/packages/css-scope/package.json b/packages/css-scope/package.json index 980117356..e883e5f73 100644 --- a/packages/css-scope/package.json +++ b/packages/css-scope/package.json @@ -19,7 +19,8 @@ "exports": { ".": { "import": "./dist/esm/index.js", - "require": "./dist/index.js" + "require": "./dist/index.js", + "types": "./dist/index.d.ts" }, "./*": "./*" }, diff --git a/packages/es-module/package.json b/packages/es-module/package.json index 28e154856..05b868221 100644 --- a/packages/es-module/package.json +++ b/packages/es-module/package.json @@ -19,7 +19,8 @@ "exports": { ".": { "import": "./dist/esm/index.js", - "require": "./dist/index.js" + "require": "./dist/index.js", + "types": "./dist/index.d.ts" }, "./*": "./*" }, diff --git a/packages/garfish/package.json b/packages/garfish/package.json index 874449916..7ae608de1 100644 --- a/packages/garfish/package.json +++ b/packages/garfish/package.json @@ -19,7 +19,8 @@ "exports": { ".": { "import": "./dist/esm/index.js", - "require": "./dist/index.js" + "require": "./dist/index.js", + "types": "./index.d.ts" }, "./*": "./*" }, diff --git a/packages/hooks/package.json b/packages/hooks/package.json index af6d926a5..dc65d055b 100644 --- a/packages/hooks/package.json +++ b/packages/hooks/package.json @@ -12,7 +12,8 @@ "exports": { ".": { "import": "./dist/esm/index.js", - "require": "./dist/index.js" + "require": "./dist/index.js", + "types": "./dist/index.d.ts" }, "./*": "./*" }, diff --git a/packages/loader/package.json b/packages/loader/package.json index 68ac19f8e..9fc9fc83b 100644 --- a/packages/loader/package.json +++ b/packages/loader/package.json @@ -19,7 +19,8 @@ "exports": { ".": { "import": "./dist/esm/index.js", - "require": "./dist/index.js" + "require": "./dist/index.js", + "types": "./dist/index.d.ts" }, "./*": "./*" }, diff --git a/packages/remote-module/package.json b/packages/remote-module/package.json index aaf765c41..1ad475be0 100644 --- a/packages/remote-module/package.json +++ b/packages/remote-module/package.json @@ -19,7 +19,8 @@ "exports": { ".": { "import": "./dist/esm/index.js", - "require": "./dist/index.js" + "require": "./dist/index.js", + "types": "./dist/index.d.ts" }, "./*": "./*" }, diff --git a/packages/router/package.json b/packages/router/package.json index 204d48201..3e3bf784e 100644 --- a/packages/router/package.json +++ b/packages/router/package.json @@ -19,7 +19,8 @@ "exports": { ".": { "import": "./dist/esm/index.js", - "require": "./dist/index.js" + "require": "./dist/index.js", + "types": "./dist/index.d.ts" }, "./*": "./*" }, diff --git a/packages/test-suite/package.json b/packages/test-suite/package.json index 6f423ad9f..ecf2a09a2 100644 --- a/packages/test-suite/package.json +++ b/packages/test-suite/package.json @@ -19,7 +19,8 @@ "exports": { ".": { "import": "./dist/esm/index.js", - "require": "./dist/index.js" + "require": "./dist/index.js", + "types": "./dist/index.d.ts" }, "./*": "./*" }, diff --git a/packages/utils/package.json b/packages/utils/package.json index 0c383c6bc..299799424 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -19,7 +19,8 @@ "exports": { ".": { "import": "./dist/esm/index.js", - "require": "./dist/index.js" + "require": "./dist/index.js", + "types": "./dist/index.d.ts" }, "./*": "./*" },