From b8c832529227287e5d4c36c4364cc73928aecf4f Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Fri, 6 Aug 2021 12:46:41 -0700 Subject: [PATCH] Copy olm and remove dompurify symlink --- scripts/post-install.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/scripts/post-install.js b/scripts/post-install.js index fe8743b6..39ccf06a 100644 --- a/scripts/post-install.js +++ b/scripts/post-install.js @@ -75,7 +75,7 @@ async function populateLib() { const olmDstDir = path.join(libDir, "olm/"); await fs.mkdir(olmDstDir); for (const file of ["olm.js", "olm.wasm", "olm_legacy.js"]) { - await fs.symlink(path.join(olmSrcDir, file), path.join(olmDstDir, file)); + await fs.copyFile(path.join(olmSrcDir, file), path.join(olmDstDir, file)); } // transpile node-html-parser to esm await fs.mkdir(path.join(libDir, "node-html-parser/")); @@ -83,12 +83,6 @@ async function populateLib() { require.resolve('node-html-parser/dist/index.js'), path.join(libDir, "node-html-parser/index.js") ); - // Symlink dompurify - await fs.mkdir(path.join(libDir, "dompurify/")); - await fs.symlink( - require.resolve('dompurify/dist/purify.es.js'), - path.join(libDir, "dompurify/index.js") - ); // transpile another-json to esm await fs.mkdir(path.join(libDir, "another-json/")); await commonjsToESM(