Skip to content

Commit

Permalink
Merge pull request #58 from minop1205/feature-clean-build
Browse files Browse the repository at this point in the history
fix: add 'clean' option to typescript plugin in rollup.config.js
  • Loading branch information
minop1205 authored Aug 23, 2021
2 parents 06ea6b0 + 3da1872 commit 7f584bb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const packageJson = require("./package.json");

export default {
input: "src/index.ts",
cache: false,
output: [
{
file: packageJson.main,
Expand All @@ -20,6 +19,9 @@ export default {
],
plugins: [
peerDepsExternal(),
typescript({ useTsconfigDeclarationDir: true }),
typescript({
useTsconfigDeclarationDir: true,
clean: true,
}),
],
};

0 comments on commit 7f584bb

Please sign in to comment.