Skip to content

Commit

Permalink
WIP: avoid overriden package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Oct 10, 2024
1 parent 7f7fffe commit 21c35fa
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions packages/next/src/build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1419,16 +1419,16 @@ export default async function build(
await fs.mkdir(path.join(distDir, 'static', buildId), {
recursive: true,
})
await fs.writeFile(
path.join(distDir, 'package.json'),
JSON.stringify(
{
type: 'commonjs',
},
null,
2
)
)
// await fs.writeFile(
// path.join(distDir, 'package.json'),
// JSON.stringify(
// {
// type: 'commonjs',
// },
// null,
// 2
// )
// )

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const entrypointsSubscription = project.entrypointsSubscribe()
Expand Down

0 comments on commit 21c35fa

Please sign in to comment.