@leverege/build-tools 2.51.2 → 2.51.3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "2.51.2",
3
+ "version": "2.51.3",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -74,7 +74,7 @@
74
74
  "readline-sync": "^1.4.10",
75
75
  "semver": "^7.6.3",
76
76
  "simple-git": "^3.26.0",
77
- "zx": "^8.1.6"
77
+ "zx": "^8.1.7"
78
78
  },
79
79
  "devDependencies": {
80
80
  "@leverege/eslint-config-leverege": "^4.2.0",
package/src/Utils.mjs CHANGED
@@ -9,7 +9,7 @@ import YAML from 'js-yaml'
9
9
 
10
10
  let debugEnabled = process.env.BUILD_TOOLS_DEBUG === '1'
11
11
 
12
- export const disableDebug = () => debugEnabled = false
12
+ export const disableDebug = () => { debugEnabled = false }
13
13
 
14
14
  /* eslint-disable no-console */
15
15
  export const err = console.error
@@ -135,11 +135,10 @@ const checkAndAnnounce = () => {
135
135
  checkForLatest()
136
136
  .then( ( latestVersion ) => {
137
137
  if ( semverLt( thisVersion, latestVersion ) ) {
138
- console.log( chalk.white`
139
- Update available ${chalk.grey( thisVersion )} \u2b62 ${chalk.green( latestVersion )}
140
- Run ${chalk.cyan( 'npm i -g @leverege/build-tools' )} to update
141
- `
142
- )
138
+ console.log( chalk.white( '\n' +
139
+ ` Update available ${chalk.yellow( thisVersion )} \u2b62 ${chalk.green( latestVersion )}\n` +
140
+ ` Run ${chalk.cyan( 'npm i -g @leverege/build-tools' )} to update\n`
141
+ ) )
143
142
  process.exit( 1 )
144
143
  } else {
145
144
  process.exit( 0 )