Skip to content

Commit e1f139e

Browse files
committed
chore: wip
1 parent e113dc4 commit e1f139e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages/launchpad/src/dev/dump.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -805,6 +805,10 @@ export async function dump(dir: string, options: DumpOptions = {}): Promise<void
805805

806806
outputShellCode(dir, envBinPath, envSbinPath, projectHash, sniffResult, globalBinPath, globalSbinPath)
807807
}
808+
else if (!effectiveQuiet) {
809+
// Final success summary for non-shell runs (used by tests)
810+
console.log('Successfully set up environment')
811+
}
808812
}
809813
catch (error) {
810814
// Check if this is a package installation failure (which should be handled gracefully)

packages/launchpad/src/dev/sniff.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,8 @@ export default async function sniff(dir: SimplePath | { string: string }): Promi
852852

853853
// Support shorthand: services.infer: true (and deprecated: inferServices / framework)
854854
const wantsInference = (obj as any).services?.infer === true || (obj as any).inferServices === true || (obj as any).framework === true
855-
if (wantsInference) {
855+
// Only infer when globally allowed by environment/config toggles
856+
if (wantsInference && shouldInferServices()) {
856857
if (!services || !services.enabled) {
857858
const inferred = await inferServicesFromFramework(dirPath.string)
858859
if (inferred.autoStart.length > 0) {

0 commit comments

Comments
 (0)