mirror of
https://github.com/garronej/ts-ci.git
synced 2025-11-30 21:43:05 +00:00
update
This commit is contained in:
parent
2a97d59ca6
commit
9f92c32af2
1 changed files with 4 additions and 6 deletions
|
|
@ -1,10 +1,8 @@
|
|||
|
||||
|
||||
import * as fs from "fs";
|
||||
import * as path from "path";
|
||||
|
||||
function getProjectRootRec(dirPath: string): string {
|
||||
if( fs.existSync(path.join(dirPath, "package.json")) ){
|
||||
if (fs.existsSync(path.join(dirPath, "package.json"))) {
|
||||
return dirPath;
|
||||
}
|
||||
return getProjectRootRec(path.join(dirPath, ".."))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue