@jundle/cloudflare 0.0.1-16 → 0.0.1-17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -1
- package/src/config.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jundle/cloudflare",
|
|
3
|
-
"version": "0.0.1-
|
|
3
|
+
"version": "0.0.1-17",
|
|
4
4
|
"description": "Cloudflare Workers runtime for the jundle dev server (workerd via Miniflare).",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"type": "module",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"unplugin": "3.7.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
+
"jundle": "0.0.1-17",
|
|
23
24
|
"wrangler": "4.156.0"
|
|
24
25
|
}
|
|
25
26
|
}
|
package/src/config.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Wrangler config reading for the CF plugin (SPEC §16.3).
|
|
2
2
|
// The single jundle-side setting is which wrangler config file
|
|
3
|
-
// to use (dev.
|
|
3
|
+
// to use (the dev entry's options.wranglerConfig, relative to
|
|
4
4
|
// the jundle config dir). Everything else comes from the
|
|
5
5
|
// wrangler file on disk — nothing is duplicated in jundle
|
|
6
6
|
// config. If wranglerConfig is omitted, auto-discover from the
|
|
@@ -27,7 +27,7 @@ export function resolveWranglerFile({ configDir, wranglerConfig }) {
|
|
|
27
27
|
const file = path.resolve(configDir, wranglerConfig);
|
|
28
28
|
if (!fs.existsSync(file)) {
|
|
29
29
|
throw new Error(
|
|
30
|
-
`CF plugin: wrangler config file not found: ${file} (
|
|
30
|
+
`CF plugin: wrangler config file not found: ${file} (options.wranglerConfig on the dev entry)`,
|
|
31
31
|
);
|
|
32
32
|
}
|
|
33
33
|
return file;
|
|
@@ -38,7 +38,7 @@ export function resolveWranglerFile({ configDir, wranglerConfig }) {
|
|
|
38
38
|
}
|
|
39
39
|
throw new Error(
|
|
40
40
|
`CF plugin: no wrangler config file found (looked for ${DISCOVER_ORDER.join(", ")} in ${configDir}). ` +
|
|
41
|
-
`
|
|
41
|
+
`Create a wrangler.jsonc in the project root, or set options.wranglerConfig on the dev entry to the wrangler config file to use.`,
|
|
42
42
|
);
|
|
43
43
|
}
|
|
44
44
|
|