From 9256187b7c7eb97609c4c58ebd102ab5b2f6e760 Mon Sep 17 00:00:00 2001 From: sam Date: Fri, 28 May 2021 16:26:57 -0700 Subject: [PATCH] use `opts.root` when doing the fs.readFileSync fixing for monorepo setups --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d939093..04e35eb 100644 --- a/index.js +++ b/index.js @@ -100,7 +100,7 @@ exports.createConfig = function createConfig(opts) { new webpack.EnvironmentPlugin(Object.keys(process.env)), new WrapperPlugin({ test: /\.js$/, - header: fs.readFileSync(path.join(process.cwd(), 'node_modules', 'extendscript-es5-shim-ts', 'index.js'), 'utf8') + header: fs.readFileSync(path.join( opts.root, 'node_modules', 'extendscript-es5-shim-ts', 'index.js'), 'utf8') }) ], target: 'web',