Skip to content

Commit

Permalink
refactor(config): explicit migration string check
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Apr 22, 2021
1 parent ac7a5c4 commit b22a035
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/config/migration.ts
Expand Up @@ -209,7 +209,9 @@ export function migrateConfig(
}
} else if (key === 'ignoreNpmrcFile') {
delete migratedConfig.ignoreNpmrcFile;
migratedConfig.npmrc ||= '';
if (!is.string(migratedConfig.npmrc)) {
migratedConfig.npmrc = '';
}
} else if (
key === 'branchName' &&
is.string(val) &&
Expand Down

0 comments on commit b22a035

Please sign in to comment.