Skip to content

Commit

Permalink
improve deprecation check
Browse files Browse the repository at this point in the history
  • Loading branch information
FredKSchott committed May 31, 2020
1 parent 7f95e4c commit 5b44882
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -475,12 +475,12 @@ function validateConfigAgainstV1(rawConfig: any, cliFlags: any) {
'[Snowpack v1 -> v2] top-level `rollup` config is now `installOptions.rollup`.',
);
}
if (rawConfig.installOptions?.include) {
if (rawConfig.installOptions?.include || cliFlags.include) {
handleDeprecatedConfigError(
'[Snowpack v1 -> v2] `installOptions.include` is now `include` but its syntax has also changed!',
'[Snowpack v1 -> v2] `installOptions.include` is now handled via "mount" build scripts!',
);
}
if (rawConfig.installOptions?.exclude) {
if (rawConfig.installOptions?.exclude || cliFlags.exclude) {
handleDeprecatedConfigError('[Snowpack v1 -> v2] `installOptions.exclude` is now `exclude`.');
}
if (Array.isArray(rawConfig.webDependencies)) {
Expand Down

0 comments on commit 5b44882

Please sign in to comment.