UNPKG
just-scripts
Version:
beta (0.14.2)
latest (2.5.0)
2.5.0
2.4.2
2.4.1
2.4.0
2.3.3
2.3.2
2.3.1
2.3.0
2.2.3
2.2.2
2.2.1
2.2.0
2.1.3
2.1.2
2.1.1
2.1.0
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.8.2
1.8.1
1.8.0
1.7.0
1.6.2
1.6.1
1.6.0
1.5.8
1.5.7
1.5.6
1.5.5
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.2
1.4.1
1.4.0
1.3.3
1.3.2
1.3.1
1.3.0
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.0
1.0.0
0.44.8
0.44.7
0.44.6
0.44.5
0.44.4
0.44.3
0.44.2
0.44.1
0.44.0
0.43.4
0.43.3
0.43.2
0.43.1
0.43.0
0.42.0
0.41.0
0.40.0
0.39.1
0.39.0
0.38.0
0.37.2
0.37.1
0.37.0
0.36.1
0.36.0
0.35.0
0.34.1
0.34.0
0.33.0
0.32.1
0.32.0
0.31.1
0.31.0
0.30.0
0.29.0
0.28.3
0.28.2
0.28.1
0.28.0
0.27.0
0.26.0
0.25.4
0.25.3
0.25.2
0.25.1
0.25.0
0.24.2
0.24.1
0.24.0
0.23.1
0.20.0
0.18.0
0.17.0
0.16.0
0.15.3
0.15.2
0.15.1
0.15.0
0.14.4
0.14.3
0.14.2
0.14.1
0.14.0
0.13.0
0.12.3
0.12.2
0.12.1
0.12.0
0.11.2
0.11.1
0.11.0
0.10.1
0.10.0
0.9.0
0.8.1
0.8.0
0.7.9
0.7.8
0.7.7
0.7.6
0.7.5
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.0
0.5.0
0.4.1
0.4.0
Just Stack Scripts
github.com/microsoft/just
microsoft/just
just-scripts
/
src
/
monorepo
/
isMonoRepo.ts
8 lines
(6 loc)
•
206 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
import
*
as
path
from
'path'
;
import
*
as
fs
from
'fs'
;
export
function
isMonoRepo
(
rootPath
:
string
):
boolean
{
const
scriptsPath = path.
join
(rootPath,
'scripts'
);
return
fs.
existsSync
(scriptsPath); }