Skip to content

Commit 6ab1de4

Browse files
committed
build: remove clean module meta data
1 parent 3b115e2 commit 6ab1de4

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

release-npm.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ await build({
4848
const mod = "./npm/esm/mod.js";
4949
let modText = await Deno.readTextFile(mod);
5050

51-
modText = shebang(cleanModuleMetadata(modText));
51+
modText = shebang(modText);
5252

5353
await Promise.all(
5454
[
@@ -67,13 +67,6 @@ await build({
6767
},
6868
});
6969

70-
function cleanModuleMetadata(text: string) {
71-
return text.replace(
72-
/if.*\(import.meta.main\).*{([\w\W]*)}/,
73-
"$1",
74-
)!;
75-
}
76-
7770
function shebang(text: string) {
7871
return `#!/usr/bin/env node\n${text}`;
7972
}

0 commit comments

Comments
 (0)