From f4606d5dd3350115fce2c429813e383fc0310a53 Mon Sep 17 00:00:00 2001 From: Jakub Jankowski Date: Thu, 15 Jul 2021 14:14:13 +0200 Subject: [PATCH] fix: monorepo bundle --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index 341cd91..a7c605d 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -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) => {