Skip to content

Commit 0898cf6

Browse files
chore: place outside ff (#5111)
* chore: place outside ff * chore: update snapshot --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent f507194 commit 0898cf6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/build-info/src/node/get-build-info.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ export async function getBuildInfo(
6767
try {
6868
// if the framework detection is crashing we should not crash the build info and package-manager detection
6969
info.frameworks = (await listFrameworks({ projectDir: project.baseDirectory })) as unknown as DetectedFramework[]
70-
info.langRuntimes = await project.detectRuntime()
7170
} catch (error) {
7271
report(error, { client: config.bugsnagClient })
7372
info.frameworks = []
7473
}
7574
}
7675

7776
info.settings = await project.getBuildSettings()
77+
info.langRuntimes = await project.detectRuntime()
7878

7979
// some framework detection like NX can update the workspace in the project so assign it later on
8080
info.jsWorkspaces = project.workspace

packages/build-info/tests/bin.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ test('CLI does not print js-workspaces if given a project without it', async (ct
4343
expect(stdout).toMatchInlineSnapshot(`
4444
"{
4545
\\"frameworks\\": [],
46+
\\"settings\\": [],
4647
\\"langRuntimes\\": [
4748
{
4849
\\"id\\": \\"node\\",
4950
\\"name\\": \\"NodeJS\\"
5051
}
5152
],
52-
\\"settings\\": [],
5353
\\"buildSystems\\": [],
5454
\\"packageManager\\": {
5555
\\"name\\": \\"pnpm\\",

0 commit comments

Comments
 (0)