Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] Add exports field and build proper ES modules (no import extensions variant) #821

Merged
merged 7 commits into from
Nov 22, 2024
Prev Previous commit
Next Next commit
Fix file extension typo
  • Loading branch information
michaldudak committed Nov 21, 2024
commit 539cce1d1cd88ba0cfcd96f80334eead40154576
4 changes: 2 additions & 2 deletions scripts/copyFilesUtils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export async function createPackageFile() {
default: './cjs/index.js',
},
import: {
types: './esm/index.d.js',
types: './esm/index.d.ts',
default: './esm/index.js',
},
},
Expand All @@ -125,7 +125,7 @@ export async function createPackageFile() {
default: './cjs/*/index.js',
},
import: {
types: './esm/*/index.d.js',
types: './esm/*/index.d.ts',
default: './esm/*/index.js',
},
},
Expand Down