Skip to content

Commit

Permalink
Merge pull request #17675 from ckeditor/fix-core-resolve
Browse files Browse the repository at this point in the history
Internal: Add `default` to `exports` entries in `package.json` files. Fixes #17671.
  • Loading branch information
filipsobol authored Dec 19, 2024
2 parents 1e1cbf9 + f6c9960 commit c2705f4
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions scripts/release/utils/updatepackageentrypoint.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export default async function updatePackageEntryPoint( packagePath ) {
pkgJson.exports = {
'.': {
types: './' + types,
import: './' + main
import: './' + main,
default: './' + main
},
'./dist/*': {
/**
Expand All @@ -39,11 +40,13 @@ export default async function updatePackageEntryPoint( packagePath ) {
* files will be moved to the `dist` directory.
*/
types: './' + types,
import: './dist/*'
import: './dist/*',
default: './dist/*'
},
'./src/*': {
types: './' + types,
import: './src/*'
types: './src/*.d.ts',
import: './src/*',
default: './src/*'
}
};

Expand Down

0 comments on commit c2705f4

Please sign in to comment.