Skip to content

Commit

Permalink
Fix globals.d.ts export (#1148)
Browse files Browse the repository at this point in the history
  • Loading branch information
TarikGul authored Oct 21, 2024
1 parent 3d075dd commit d7c5f7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/dev/scripts/polkadot-dev-build-ts.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -801,8 +801,8 @@ function buildExports () {

pkg.exports = listRoot
.filter(([path, config]) =>
// skip d.ts files
!path.endsWith('.d.ts') &&
// skip d.ts files, except globals.d.ts which is needed for dev-test
(path.startsWith('./globals.d.ts') || !path.endsWith('.d.ts')) &&
// we handle the CJS path at the root below
path !== './cjs/package.json' &&
// we don't export ./deno/* paths (e.g. wasm)
Expand Down

0 comments on commit d7c5f7e

Please sign in to comment.