We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b115e2 commit 6ab1de4Copy full SHA for 6ab1de4
1 file changed
release-npm.ts
@@ -48,7 +48,7 @@ await build({
48
const mod = "./npm/esm/mod.js";
49
let modText = await Deno.readTextFile(mod);
50
51
- modText = shebang(cleanModuleMetadata(modText));
+ modText = shebang(modText);
52
53
await Promise.all(
54
[
@@ -67,13 +67,6 @@ await build({
67
},
68
});
69
70
-function cleanModuleMetadata(text: string) {
71
- return text.replace(
72
- /if.*\(import.meta.main\).*{([\w\W]*)}/,
73
- "$1",
74
- )!;
75
-}
76
-
77
function shebang(text: string) {
78
return `#!/usr/bin/env node\n${text}`;
79
}
0 commit comments