Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ function getProjectPath(rootPath: string): string {
if (fs.existsSync(svnPath)) return true;
const slPath = path.join(folderPath, ".sl");
if (fs.existsSync(slPath)) return true;
const nodePath = path.join(folderPath, "node_modules");
if (fs.existsSync(nodePath)) return true;
const pkgPath = path.join(folderPath, "package.json");
if (fs.existsSync(pkgPath)) return true;
return false;
}

Expand Down