Skip to content

Commit

Permalink
feat(cache): set options.clean as 'true' by default
Browse files Browse the repository at this point in the history
  • Loading branch information
oscard0m committed Sep 10, 2022
1 parent e98e0ed commit ee5e649
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const typescript: PluginImpl<RPT2Options> = (options) =>
{
check: true,
verbosity: VerbosityLevel.Warning,
clean: false,
clean: true,
cacheRoot: findCacheDir({ name: "rollup-plugin-typescript2" }),
include: ["*.ts+(|x)", "**/*.ts+(|x)"],
exclude: ["*.d.ts", "**/*.d.ts"],
Expand Down
1 change: 1 addition & 0 deletions src/tscache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export class TsCache

if (noCache)
{
this.context.warn(yellow("Cleaning cache... If you want to use caching, please set `clean` option to false."));
this.clean();
return;
}
Expand Down

0 comments on commit ee5e649

Please sign in to comment.