@cloudflare/autoconfig 0.5.0 → 0.5.1
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 +3 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -52203,7 +52203,9 @@ async function detectFramework(projectPath, context, {
|
|
|
52203
52203
|
context
|
|
52204
52204
|
);
|
|
52205
52205
|
if (maybeDetectedFramework && target === "cf") {
|
|
52206
|
-
const
|
|
52206
|
+
const frameworkId = maybeDetectedFramework.framework.id;
|
|
52207
|
+
const frameworkIsSupported = isKnownFramework(frameworkId) && isFrameworkSupported(frameworkId);
|
|
52208
|
+
const detectedFrameworkSettings = frameworkIsSupported ? project.frameworks.get(maybeDetectedFramework.baseDirectory ?? "")?.find(({ id }) => id === frameworkId) : void 0;
|
|
52207
52209
|
maybeDetectedFramework.devCommand = detectedFrameworkSettings?.dev?.command;
|
|
52208
52210
|
maybeDetectedFramework.buildCommand = detectedFrameworkSettings?.build?.command;
|
|
52209
52211
|
}
|