Skip to content

Commit

Permalink
[code-infra] Add package.json export
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot committed Feb 27, 2025
1 parent a85cdb7 commit 4060e5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/copyFilesUtils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ export async function createPackageFile(useEsmExports = false) {
const { nyc, scripts, devDependencies, workspaces, ...packageDataOther } =
JSON.parse(packageData);

const packageExports = {};
const packageExports = {
'package.json': './package.json',
};

if (!packageDataOther.exports?.['.']) {
Object.assign(packageExports, {
Expand Down

0 comments on commit 4060e5b

Please sign in to comment.