Skip to content

Commit

Permalink
fix: try loading canary plugin first
Browse files Browse the repository at this point in the history
  • Loading branch information
lshadler committed Oct 21, 2021
1 parent 47db891 commit e72fde5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/core/src/utils/load-plugins.ts
Expand Up @@ -166,18 +166,18 @@ export function findPlugin(
return userPlugin;
}

const officialPlugin = path.join("@auto-it", pluginPath);
const canaryPlugin = path.join("@auto-canary", pluginPath);

// Try importing official plugin
if (exists(officialPlugin)) {
return officialPlugin;
if (exists(canaryPlugin)) {
return canaryPlugin;
}

const canaryPlugin = path.join("@auto-canary", pluginPath);
const officialPlugin = path.join("@auto-it", pluginPath);

// Try importing official plugin
if (exists(canaryPlugin)) {
return canaryPlugin;
if (exists(officialPlugin)) {
return officialPlugin;
}

// Try requiring a package
Expand Down

0 comments on commit e72fde5

Please sign in to comment.