Skip to content

Commit

Permalink
Fix: Add default to exports entries in package.json files..
Browse files Browse the repository at this point in the history
  • Loading branch information
filipsobol committed Dec 19, 2024
1 parent ce59f23 commit 32570b4
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 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,12 +40,10 @@ 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/*'
}
'./src/*': './src/*'
};

if ( files.includes( 'build' ) ) {
Expand Down

0 comments on commit 32570b4

Please sign in to comment.