Skip to content

Commit

Permalink
fix: use VSCODE_CWD to autodetect if in editor (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
kehwar committed Feb 7, 2024
1 parent ab920d9 commit 5c628ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/factory.ts
Expand Up @@ -57,7 +57,7 @@ export async function antfu(
const {
componentExts = [],
gitignore: enableGitignore = true,
isInEditor = !!((process.env.VSCODE_PID || process.env.JETBRAINS_IDE || process.env.VIM) && !process.env.CI),
isInEditor = !!((process.env.VSCODE_PID || process.env.VSCODE_CWD || process.env.JETBRAINS_IDE || process.env.VIM) && !process.env.CI),
react: enableReact = false,
svelte: enableSvelte = false,
typescript: enableTypeScript = isPackageExists('typescript'),
Expand Down

0 comments on commit 5c628ff

Please sign in to comment.