Skip to content

Commit

Permalink
fix: add binary names for the cloudflare tool
Browse files Browse the repository at this point in the history
  • Loading branch information
petebacondarwin committed Oct 7, 2024
1 parent fb6fe6b commit 58948fd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/cloudflare/cli.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env node
import "./dist/cli/index.mjs";
6 changes: 5 additions & 1 deletion packages/cloudflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
"test": "vitest --run",
"test:watch": "vitest"
},
"bin": "dist/cli/index.mjs",
"bin": {
"opennextjs-cloudflare": "cli.mjs",
"cloudflare": "cli.mjs"
},
"main": "./dist/api/index.mjs",
"types": "./dist/api/index.d.mts",
"exports": {
Expand All @@ -22,6 +25,7 @@
},
"files": [
"README.md",
"cli.mjs",
"dist"
],
"repository": {
Expand Down
1 change: 0 additions & 1 deletion packages/cloudflare/src/cli/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env node
import { build } from "./build";
import { existsSync } from "node:fs";
import { getArgs } from "./args";
Expand Down

0 comments on commit 58948fd

Please sign in to comment.