Skip to content

Commit

Permalink
fix: Remove shebang from npm release
Browse files Browse the repository at this point in the history
  • Loading branch information
eliassjogreen committed Sep 24, 2024
1 parent 4e10b27 commit e67c9d9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@denosaurs/typefetch",
"version": "0.0.23",
"version": "0.0.24",
"exports": {
".": "./main.ts"
},
Expand Down
7 changes: 0 additions & 7 deletions scripts/npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,5 @@ await build({
postBuild() {
Deno.copyFileSync("LICENSE", "npm/LICENSE");
Deno.copyFileSync("README.md", "npm/README.md");

// Add shebang to main.js
const main = Deno.readTextFileSync("npm/esm/main.js");
Deno.writeTextFileSync(
"npm/esm/main.js",
`#!/usr/bin/env node --no-warnings=ExperimentalWarning\n${main}`,
);
},
});

0 comments on commit e67c9d9

Please sign in to comment.