Skip to content

Commit

Permalink
ci: executable file name
Browse files Browse the repository at this point in the history
  • Loading branch information
slon2015 committed Jun 5, 2024
1 parent 15f8e7c commit 506e3eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@
"build": "rollup -c"
},
"bin": {
"drew": "bin/cli.js"
"drew": "bin/drew.js"
},
"files": [
"bin/cli.js",
"README.md"
"!src"
],
"author": "",
"license": "ISC",
Expand Down
4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import shebang from "rollup-plugin-add-shebang";
export default defineConfig({
input: "src/index.ts",
output: {
file: path.resolve("bin", "cli.js"),
file: path.resolve("bin", "drew.js"),
format: "es",
},
external: [
Expand All @@ -30,7 +30,7 @@ export default defineConfig({
}),
terser(),
shebang({
include: path.resolve("bin", "cli.js"),
include: path.resolve("bin", "drew.js"),
shebang: "#!/usr/bin/env node",
}),
],
Expand Down

0 comments on commit 506e3eb

Please sign in to comment.