Skip to content

Commit

Permalink
fix: monorepo bundle (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Jankowski authored Jul 16, 2021
1 parent e1f78bb commit 2267049
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const getConfigFilePath = (name: string): string => {
return filePath;
}

return path.resolve(process.cwd(), 'node_modules', '@stoplight', 'scripts', name);
return require.resolve(`@stoplight/scripts/${name}`);
};

export const buildPath = (...args: any) => {
Expand Down

0 comments on commit 2267049

Please sign in to comment.