Skip to content

Commit

Permalink
Fix/blob/types import (#381)
Browse files Browse the repository at this point in the history
* fix(blob): Fix types imports for main, to avoid weird paths

* changeset

* fix(blob): fix types given detected issues

https://arethetypeswrong.github.io/?p=%40vercel%2Fblob%400.12.1

* let types be inferred automatically
  • Loading branch information
vvo committed Sep 15, 2023
1 parent 613a5bb commit 15f7eef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/shy-chairs-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@vercel/blob': patch
---

Fix types for old module resolution. Before this commit types for the main package would be imported with a dot in the import path on autocompletion.
5 changes: 0 additions & 5 deletions packages/blob/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./client": {
"types": "./dist/client.d.ts",
"import": "./dist/client.js",
"require": "./dist/client.cjs"
}
Expand All @@ -32,9 +30,6 @@
"types": "./dist/index.d.ts",
"typesVersions": {
"*": {
".": [
"dist/index.d.ts"
],
"client": [
"dist/client.d.ts"
]
Expand Down

1 comment on commit 15f7eef

@vercel
Copy link

@vercel vercel bot commented on 15f7eef Sep 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.