Skip to content

Commit

Permalink
fix prepack script
Browse files Browse the repository at this point in the history
  • Loading branch information
talentlessguy committed Jun 27, 2024
1 parent 6ef830f commit f2915bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ensjs/scripts/prepack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ function generatePackageJson() {
if (key === '.') continue
if (!value.default || !value.import)
throw new Error('`default` and `import` are required.')

fs.writeFileSync(
`${key}/package.json`,
`{
Expand All @@ -65,6 +64,7 @@ function generatePackageJson() {
})
.join(',\n ')}
}`,
{ flag: 'wx' },
)
files_.push(key.replace('./', ''))
}
Expand Down

0 comments on commit f2915bc

Please sign in to comment.