From cf9e7ac86c907b312ae773c1f5aedefb2d19e1ea Mon Sep 17 00:00:00 2001 From: Will McClellan Date: Tue, 29 Oct 2019 17:48:26 +1100 Subject: [PATCH] add option to dereference symlinks https://github.com/jprichardson/node-fs-extra/blob/HEAD/docs/copy-sync.md --- src/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index a249ce58..85b38f9b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -197,7 +197,10 @@ export class TypeScriptPlugin { fs.copySync( path.resolve('node_modules'), - path.resolve(path.join(BUILD_FOLDER, 'node_modules')) + path.resolve(path.join(BUILD_FOLDER, 'node_modules')), + { + dereference: true, + } ) } else { if (!fs.existsSync(outModulesPath)) {