UNPKG
jquery-migrate
Version:
latest (3.5.2)
3.5.2
3.5.1
3.5.0
3.4.1
3.4.0
3.3.2
3.3.1
3.3.0
3.2.0
3.1.0
3.0.1
3.0.0
3.0.0-rc1
1.4.1
1.4.0
1.3.0
1.2.1
Migrate older jQuery code to jQuery 3.0+
github.com/jquery/jquery-migrate
jquery/jquery-migrate
jquery-migrate
/
build
/
tasks
/
lib
/
isCleanWorkingDir.js
9 lines
(7 loc)
•
278 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
import
util
from
"node:util"
;
import
{ exec
as
nodeExec }
from
"node:child_process"
;
const
exec = util.
promisify
( nodeExec );
export
async
function
isCleanWorkingDir
(
) {
const
{ stdout } =
await
exec
(
"git status --untracked-files=no --porcelain"
);
return
!stdout.
trim
(); }