Skip to content

Commit

Permalink
fix: remove package.json main prop from dist
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangabriele committed Feb 16, 2022
1 parent 5a55b6d commit eebf90e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build/generatePackageJson.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const distPackageExtraProps = {
const rootPackageJson = await fs.readFile('./package.json', 'utf-8')
const rootPackage = JSON.parse(rootPackageJson)
const distPackage = R.pipe(
R.omit(['devDependencies', 'eslintIgnore', 'prettier', 'private', 'release', 'scripts', 'workspaces']),
R.omit(['devDependencies', 'main', 'prettier', 'private', 'release', 'scripts', 'workspaces']),
R.mergeLeft(distPackageExtraProps),
)(rootPackage)
const distPackageJson = JSON.stringify(distPackage, null, 2)
Expand Down

0 comments on commit eebf90e

Please sign in to comment.