Skip to content

Commit

Permalink
Remove unused dependencies
Browse files Browse the repository at this point in the history
...and move dependencies only used in Workers to `devDependencies`.
They're bundled in with the Worker code, so don't need to be
installed again. Importantly, this change removes `better-sqlite3`,
meaning Miniflare no longer has any native dependencies other than
`workerd`.

Fixes cloudflare/miniflare#599

Fixes #3423
Fixes #3449
Fixes #3531
Fixes #3534
Fixes #3708
Fixes #3746

Closes cloudflare/cloudflare-docs#10241
  • Loading branch information
mrbbot committed Nov 1, 2023
1 parent 0e467de commit de5b99b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/miniflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,9 @@
"dependencies": {
"acorn": "^8.8.0",
"acorn-walk": "^8.2.0",
"better-sqlite3": "^8.1.0",
"capnp-ts": "^0.7.0",
"exit-hook": "^2.2.1",
"glob-to-regexp": "^0.4.1",
"http-cache-semantics": "^4.1.0",
"kleur": "^4.1.5",
"source-map-support": "0.5.21",
"stoppable": "^1.1.0",
"undici": "^5.22.1",
Expand All @@ -46,18 +43,17 @@
"devDependencies": {
"@cloudflare/kv-asset-handler": "^0.3.0",
"@cloudflare/workers-types": "^4.20230807.0",
"@types/better-sqlite3": "^7.6.2",
"@types/debug": "^4.1.7",
"@types/estree": "^1.0.0",
"@types/glob-to-regexp": "^0.4.1",
"@types/http-cache-semantics": "^4.0.1",
"@types/set-cookie-parser": "^2.4.2",
"@types/source-map-support": "^0.5.6",
"@types/stoppable": "^1.1.1",
"@types/ws": "^8.5.3",
"devalue": "^4.3.0",
"devtools-protocol": "^0.0.1182435",
"semiver": "^1.1.0"
"http-cache-semantics": "^4.1.0",
"kleur": "^4.1.5"
},
"engines": {
"node": ">=16.13"
Expand Down

0 comments on commit de5b99b

Please sign in to comment.