This commit is contained in:
Joseph Garrone 2020-05-14 02:01:29 +02:00
parent 00d8b42822
commit 2a97d59ca6

View file

@ -3,7 +3,7 @@
import * as fs from "fs";
import * as path from "path";
function getProjectRootRec(dirPath: string){
function getProjectRootRec(dirPath: string): string{
if( fs.existSync(path.join(dirPath, "package.json")) ){
return dirPath;
}