@cloudflare/autoconfig 0.4.6 → 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 +4 -2
- package/dist/metafile-esm.json +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -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
|