Skip to content

Commit

Permalink
build: add exports auto to rollup build script
Browse files Browse the repository at this point in the history
- exports: auto for commonjs format ouputs
  • Loading branch information
Ffloriel committed Sep 20, 2020
1 parent 0f17705 commit 7af7215
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ async function build(): Promise<void> {
});

await bundle.write({
exports: "auto",
file: path.resolve(packagesDirectory, pkg.name, `./lib/${pkg.name}.js`),
format: "cjs",
});
Expand All @@ -69,6 +70,7 @@ async function build(): Promise<void> {
external: ["purgecss"],
});
await gruntBundle.write({
exports: "auto",
file: path.resolve(
packagesDirectory,
"grunt-purgecss",
Expand Down

0 comments on commit 7af7215

Please sign in to comment.