@cloudflare/autoconfig 0.4.5 → 0.4.7
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/dist/index.js +5 -3
- package/dist/metafile-esm.json +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -45688,7 +45688,7 @@ var allKnownFrameworks = [
|
|
|
45688
45688
|
// in https://github.com/cloudflare/workers-sdk/pull/12938
|
|
45689
45689
|
// earlier versions might also be supported but we haven't checked them
|
|
45690
45690
|
minimumVersion: "4.0.0",
|
|
45691
|
-
maximumKnownMajorVersion: "
|
|
45691
|
+
maximumKnownMajorVersion: "7"
|
|
45692
45692
|
},
|
|
45693
45693
|
supported: true
|
|
45694
45694
|
},
|
|
@@ -52900,9 +52900,11 @@ async function buildOperationsSummary(autoConfigDetails, workerConfig, configura
|
|
|
52900
52900
|
const scriptOverrides = target === "wrangler" ? packageJsonScriptsOverrides : void 0;
|
|
52901
52901
|
const buildCommandPrefix = target === "wrangler" && autoConfigDetails.buildCommand ? `${autoConfigDetails.buildCommand} && ` : "";
|
|
52902
52902
|
summary.scripts = {
|
|
52903
|
-
deploy: scriptOverrides?.deploy ?? `${buildCommandPrefix}${target} deploy
|
|
52904
|
-
preview: scriptOverrides?.preview ?? `${buildCommandPrefix}${target} dev`
|
|
52903
|
+
deploy: scriptOverrides?.deploy ?? `${buildCommandPrefix}${target} deploy`
|
|
52905
52904
|
};
|
|
52905
|
+
if (target === "wrangler") {
|
|
52906
|
+
summary.scripts.preview = scriptOverrides?.preview ?? `${buildCommandPrefix}${target} dev`;
|
|
52907
|
+
}
|
|
52906
52908
|
const containsServerSideCode = (
|
|
52907
52909
|
// If there is an entrypoint then we know that there is server side code
|
|
52908
52910
|
!!workerConfig?.entrypoint
|