Skip to content

Commit

Permalink
fix: 🐛 fixed binary execution
Browse files Browse the repository at this point in the history
  • Loading branch information
mazshakibaii committed Nov 6, 2024
1 parent eee08fe commit 87b6ae0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"types": "./dist/index.d.ts",
"type": "module",
"bin": {
"reppy": "./dist/index.js"
"reppy": "./dist/index.cjs"
},
"exports": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default defineConfig({
sourcemap: true,
noExternal: ["log-symbols", "is-unicode-supported", "chalk"],
banner: {
js: `import { createRequire } from 'module';const require = createRequire(import.meta.url);`,
js: `#!/usr/bin/env node`,
},
esbuildOptions(options) {
options.platform = "node"
Expand Down

0 comments on commit 87b6ae0

Please sign in to comment.