Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
fix: add ability to perform package override in config
Browse files Browse the repository at this point in the history
  • Loading branch information
wtrocki authored Sep 18, 2020
1 parent da63b19 commit c2dffa5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/graphback/src/loadPlugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ export function loadPlugins(pluginConfig: any): GraphbackPlugin[] {
// Internal graphback plugins needs rename
pluginName = pluginLabel.replace('graphback-', '@graphback/codegen-');
}
if(config.packageOverride){
pluginName = config.packageOverride;
}

try {
// eslint-disable-next-line @typescript-eslint/no-require-imports
const plugin = require(pluginName);
Expand Down

0 comments on commit c2dffa5

Please sign in to comment.