Copy olm and remove dompurify symlink
This commit is contained in:
parent
31c6aa647b
commit
b8c8325292
1 changed files with 1 additions and 7 deletions
|
@ -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(
|
||||
|
|
Reference in a new issue