From 83b78e4139ee6db36b9db94d7a15c8f4e07cbd0b Mon Sep 17 00:00:00 2001 From: Tim Griesser Date: Thu, 2 Jun 2022 16:13:13 -0400 Subject: [PATCH] Update packages/scaffold-config/src/detect.ts Co-authored-by: Matt Henkes --- packages/scaffold-config/src/detect.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/scaffold-config/src/detect.ts b/packages/scaffold-config/src/detect.ts index 6cd6643f404f..4bf3ea38c1ea 100644 --- a/packages/scaffold-config/src/detect.ts +++ b/packages/scaffold-config/src/detect.ts @@ -123,7 +123,8 @@ export function detectLanguage (projectRoot: string, pkgJson: PkgJson, isMigrati // If we can't find an installed TypeScript or ESBuild, there's no way we can assume the project is using TypeScript, // because it won't work on the next step of installation anyway try { - debug('Resolved typescript from %s', require.resolve('typescript', { paths: [projectRoot] })) + const typescriptFile = require.resolve('typescript', { paths: [projectRoot] }) + debug('Resolved typescript from %s', typescriptFile) } catch { debug('No typescript installed - using js')