Skip to content

Commit

Permalink
Merge pull request #26 from vordgi/cm-25
Browse files Browse the repository at this point in the history
cm-25 clear dist when disableDistDeletion changed to falsable
  • Loading branch information
vordgi authored Apr 18, 2024
2 parents 1d09c55 + 92016b2 commit d131d8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/validateDist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ const validateDist = (pluginOptions: Config) => {
if (prevData.version !== CODE_VERSION) {
configDiffMessages.push(`Different package version: "${prevData.version}" -> "${CODE_VERSION}"`);
}
if (prevData.disableDistDeletion && !disableDistDeletion) {
configDiffMessages.push(`"disableDistDeletion" set to "${disableDistDeletion}"`);
}
if (configDiffMessages.length) {
configurationError = `Changes found in package configuration: \n${configDiffMessages.map((message) => `- ${message};\n`)}`;
}
Expand Down

0 comments on commit d131d8e

Please sign in to comment.