Skip to content

Commit ee5e649

Browse files
committed
feat(cache): set options.clean as 'true' by default
1 parent e98e0ed commit ee5e649

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const typescript: PluginImpl<RPT2Options> = (options) =>
8686
{
8787
check: true,
8888
verbosity: VerbosityLevel.Warning,
89-
clean: false,
89+
clean: true,
9090
cacheRoot: findCacheDir({ name: "rollup-plugin-typescript2" }),
9191
include: ["*.ts+(|x)", "**/*.ts+(|x)"],
9292
exclude: ["*.d.ts", "**/*.d.ts"],

src/tscache.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ export class TsCache
118118

119119
if (noCache)
120120
{
121+
this.context.warn(yellow("Cleaning cache... If you want to use caching, please set `clean` option to false."));
121122
this.clean();
122123
return;
123124
}

0 commit comments

Comments
 (0)