Skip to content

Commit

Permalink
fix load types (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
Schniz committed May 9, 2023
1 parent 8ae749d commit 2f930a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/pink-donkeys-listen.md
@@ -0,0 +1,5 @@
---
'@edge-runtime/primitives': patch
---

Fix `@/primitives/load` types by externalizing `@/primitives/index` in the type definition
2 changes: 2 additions & 0 deletions packages/primitives/scripts/build.ts
Expand Up @@ -24,11 +24,13 @@ async function bundlePackage() {
dts: {
resolve: true,
},
splitting: false,
format: [],
target: TARGET,
entry: filesExt
.map((f) => f.replace(/\.(js|ts)$/, '.d.ts'))
.map((f) => join(__dirname, '../type-definitions', f)),
external: ['./index'],
outDir: resolve(__dirname, '../types'),
})

Expand Down

1 comment on commit 2f930a6

@vercel
Copy link

@vercel vercel bot commented on 2f930a6 May 9, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

edge-runtime – ./

edge-runtime.vercel.app
edge-runtime.vercel.sh
edge-runtime-git-main.vercel.sh

Please sign in to comment.