@leverege/build-tools 2.40.0 → 2.40.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/dirty-git.sh +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "2.40.0",
3
+ "version": "2.40.1",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -57,7 +57,7 @@
57
57
  "deepmerge": "^4.3.1",
58
58
  "enquirer": "^2.4.1",
59
59
  "execa": "^8.0.1",
60
- "glob": "^10.3.7",
60
+ "glob": "^10.3.10",
61
61
  "js-yaml": "^4.1.0",
62
62
  "ms": "^2.1.3",
63
63
  "npm-registry-fetch": "^16.0.0",
package/src/dirty-git.sh CHANGED
@@ -4,9 +4,10 @@ CLEAN="\e[32m✔\e[0m"
4
4
  DIRTY="\e[31m✘\e[0m"
5
5
  STASH="\e[33;44m$\e[0m"
6
6
  AHEAD="\e[34;42m!\e[0m"
7
+ LOCKD="\e[35m\e[0m"
7
8
 
8
9
  clear
9
- printf "${CLEAN} clean ${DIRTY} dirty ${STASH} stashed ${AHEAD} unpushed\n\n"
10
+ printf "${CLEAN} clean ${DIRTY} dirty ${STASH} stashed ${AHEAD} unpushed ${LOCKD} locked\n\n"
10
11
  for dir in $@;
11
12
  do
12
13
  [ ! -d $dir ] || [ ! -d $dir/.git ] && continue
@@ -17,6 +18,7 @@ do
17
18
  [ $scount -gt 0 ] && stash="\e[33;44m$\e[0m" || stash=" "
18
19
  ahead=`git rev-list FETCH_HEAD..HEAD --count`
19
20
  [ $ahead -gt 0 ] && ahead="$AHEAD" || ahead=" "
21
+ [ -f "Versions.json" ] && locked="$LOCKD" || locked=" "
20
22
  cd - &>/dev/null
21
- printf "${status} %-28s ${stash}${ahead} %s\n" $dir $branch
23
+ printf "${status} %-28s ${stash}${ahead}${locked} %s\n" $dir $branch
22
24
  done