Skip to content

Commit

Permalink
Add stub CLI recommending wrangler dev (#570)
Browse files Browse the repository at this point in the history
Miniflare 3 no longer includes a CLI. We're encouraging people to use
Wrangler instead.

Closes DEVX-627
  • Loading branch information
mrbbot committed Oct 31, 2023
1 parent b286446 commit 06f0c95
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions packages/miniflare/bootstrap.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const { Log } = require(".");

const log = new Log();
log.error(
[
"`miniflare@3` no longer includes a CLI. Please use `npx wrangler dev` instead.",
"As of `wrangler@3`, this will use Miniflare by default.",
"See https://miniflare.dev/get-started/migrating for more details.",
].join("\n")
);
3 changes: 2 additions & 1 deletion packages/miniflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"files": [
"dist/src"
"dist/src",
"bootstrap.js"
],
"dependencies": {
"acorn": "^8.8.0",
Expand Down

0 comments on commit 06f0c95

Please sign in to comment.