Skip to content

Commit

Permalink
Update packages/scaffold-config/src/detect.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Henkes <mjhenkes@gmail.com>
  • Loading branch information
tgriesser and mjhenkes authored Jun 2, 2022
1 parent 3bb9203 commit 83b78e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/scaffold-config/src/detect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down

0 comments on commit 83b78e4

Please sign in to comment.