Skip to content

Instantly share code, notes, and snippets.

@awatson1978
Created November 4, 2015 05:05
Show Gist options
  • Save awatson1978/ec27f561ca3e88716e0d to your computer and use it in GitHub Desktop.
Save awatson1978/ec27f561ca3e88716e0d to your computer and use it in GitHub Desktop.
Package Upgrade/Migration Logic
````js
//packages/clinical-router/lib/version_conflict_error.js
if (Package['cmather:iron-router']) {
throw new Error("\n\n\
Sorry! The cmather:iron-{x} packages were migrated to the new package system with the wrong name, and you have duplicate copies.\n\
You can see which cmather:iron-{x} packages have been installed by using this command:\n\n\
> meteor list\n\n\
Can you remove any installed cmather:iron-{x} packages like this:\
\n\n\
> meteor remove cmather:iron-core\n\
> meteor remove cmather:iron-router\n\
> meteor remove cmather:iron-dynamic-template\n\
> meteor remove cmather:iron-dynamic-layout\n\
\n\
The new packages are named iron:{x}. For example:\n\n\
> meteor add iron:router\n\n\
Sorry for the hassle, but thank you!\
\n\n\
");
}
````
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment