From 8f3d71dc5fd0e91407737a4b82c58c31269ed2be Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Sat, 16 Oct 2021 01:53:12 -0400 Subject: [PATCH] admin: fixed alias script (#1494). --- misc/admin/src.ts/cmds/esm-alias.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/admin/src.ts/cmds/esm-alias.ts b/misc/admin/src.ts/cmds/esm-alias.ts index d2dbea230c..f8339e9dea 100644 --- a/misc/admin/src.ts/cmds/esm-alias.ts +++ b/misc/admin/src.ts/cmds/esm-alias.ts @@ -52,7 +52,7 @@ async function alias(name: string): Promise { if (replace) { inputFilename = replace; transform = function(content: string) { - content = content.replace(/(\/\/# sourceMappingURL=)(.*)$/g, (all, prefix, mapFilename) => { + content = content.replace(/^(\/\/# sourceMappingURL=)(.*)$/mg, (all, prefix, mapFilename) => { return prefix + filename + ".map"; }); return content; @@ -132,7 +132,7 @@ async function alias(name: string): Promise { console.log(colorify.bold(`Aliasing Node ESM to Browser ESM...`)); const dirnames = getOrdered(true); for (let i = 0; i < dirnames.length; i++) { - //if (dirnames[i] !== "base64") { continue; } + //if (dirnames[i] !== "signing-key") { continue; } await alias(dirnames[i]); } })();