Skip to content

Commit

Permalink
Merge branch 'tgriesser/fix/change-typescript-detection-rules' of git…
Browse files Browse the repository at this point in the history
…hub.com:cypress-io/cypress into tgriesser/fix/change-typescript-detection-rules

* 'tgriesser/fix/change-typescript-detection-rules' of github.com:cypress-io/cypress:
  Update packages/scaffold-config/src/detect.ts
  • Loading branch information
tgriesser committed Jun 2, 2022
2 parents fd8df6e + 83b78e4 commit 136d1f3
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, pkgJson, isMigrating = false }: {
// 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 136d1f3

Please sign in to comment.