Skip to content

Commit

Permalink
Remove explicit README and LICENSE from files array
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwooding committed Nov 15, 2022
1 parent 4e9aa65 commit 0e7c7b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/modular-scripts/src/build/buildPackage/makeBundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,13 +307,15 @@ export async function makeBundle(
...packageJson.dependencies,
...localImports,
},
/**
* Certain files are always included, regardless of settings.
* https://docs.npmjs.com/cli/v9/configuring-npm/package-json#files
*/
files: distinct([
...(packageJson.files || []),
'dist-cjs',
'dist-es',
'dist-types',
'README.md',
'LICENSE',
]),
};
}

0 comments on commit 0e7c7b6

Please sign in to comment.