Skip to content

Commit 8f3d71d

Browse files
committed
admin: fixed alias script (ethers-io#1494).
1 parent a5c6a46 commit 8f3d71d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

misc/admin/src.ts/cmds/esm-alias.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ async function alias(name: string): Promise<void> {
5252
if (replace) {
5353
inputFilename = replace;
5454
transform = function(content: string) {
55-
content = content.replace(/(\/\/# sourceMappingURL=)(.*)$/g, (all, prefix, mapFilename) => {
55+
content = content.replace(/^(\/\/# sourceMappingURL=)(.*)$/mg, (all, prefix, mapFilename) => {
5656
return prefix + filename + ".map";
5757
});
5858
return content;
@@ -132,7 +132,7 @@ async function alias(name: string): Promise<void> {
132132
console.log(colorify.bold(`Aliasing Node ESM to Browser ESM...`));
133133
const dirnames = getOrdered(true);
134134
for (let i = 0; i < dirnames.length; i++) {
135-
//if (dirnames[i] !== "base64") { continue; }
135+
//if (dirnames[i] !== "signing-key") { continue; }
136136
await alias(dirnames[i]);
137137
}
138138
})();

0 commit comments

Comments
 (0)