fix: remove double wording in registries mismatch error message

close #2766
This commit is contained in:
Zoltan Kochan
2020-08-16 16:20:54 +03:00
parent 1525fff4c3
commit 51086e6e4f
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@pnpm/get-context": patch
---
Fix text in registries mismatch error message.

View File

@@ -254,7 +254,7 @@ async function validateModules (
await Promise.all(projects.map(purgeModulesDirsOfImporter))
return { purged: true }
}
throw new PnpmError('REGISTRIES_MISMATCH', `This modules directory was created using the following registries configuration: ${JSON.stringify(modules.registries)}. The current configuration is ${JSON.stringify(opts.registries)}. To recreate recreate the modules directory using the new settings, run "pnpm install".`)
throw new PnpmError('REGISTRIES_MISMATCH', `This modules directory was created using the following registries configuration: ${JSON.stringify(modules.registries)}. The current configuration is ${JSON.stringify(opts.registries)}. To recreate the modules directory using the new settings, run "pnpm install".`)
}
if (purged && !rootProject) {
await purgeModulesDirsOfImporter({