Skip to content

Commit 224a2f0

Browse files
move cloudflare from devDeps to dep since it is required at runtime (#779)
1 parent 7968508 commit 224a2f0

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

.changeset/social-bushes-laugh.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
"@opennextjs/cloudflare": patch
3+
---
4+
5+
Ensure that the `cloudflare` library is available at runtime
6+
7+
Previously it was only a `devDependency` which meant it was missing in real life installations of the tool.
8+
9+
The error looked like:
10+
11+
```text
12+
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'cloudflare' imported from @opennextjs/cloudflare/dist/cli/commands/skew-protection.js
13+
```

packages/cloudflare/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"dependencies": {
5555
"@dotenvx/dotenvx": "catalog:",
5656
"@opennextjs/aws": "3.7.0",
57+
"cloudflare": "^4.4.1",
5758
"enquirer": "^2.4.1",
5859
"glob": "catalog:",
5960
"ts-tqdm": "^0.8.6"
@@ -65,7 +66,6 @@
6566
"@types/mock-fs": "catalog:",
6667
"@types/node": "catalog:",
6768
"@types/picomatch": "^4.0.0",
68-
"cloudflare": "^4.4.1",
6969
"diff": "^8.0.2",
7070
"esbuild": "catalog:",
7171
"eslint": "catalog:",

pnpm-lock.yaml

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)