@leverege/build-tools 2.93.1 → 2.93.2

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.93.1",
3
+ "version": "2.93.2",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -12,7 +12,7 @@
12
12
  "lint": "find ./src -name \\*.\\*js | xargs npx eslint --report-unused-disable-directives",
13
13
  "prepare": "[ $SKIP_PREPARE ] && exit 0 || ./src/hook-and-release.mjs",
14
14
  "test": "mocha -t 60000 --exit 'test/**/*.mjs'",
15
- "prepack": "npm exec prepack"
15
+ "xprepack": "npm exec prepack"
16
16
  },
17
17
  "bin": {
18
18
  "build-and-push": "src/build-and-push.sh",
@@ -103,4 +103,4 @@
103
103
  "mocha": "^11.7.5",
104
104
  "npm": "^11.6.2"
105
105
  }
106
- }
106
+ }
package/src/bash-funcs CHANGED
@@ -305,6 +305,11 @@ PLUGIN_NOEXEC
305
305
  return 0
306
306
  }
307
307
 
308
+ # simple check to allow us to avoid double settings the k8s context
309
+ function ifNotFromHelmup() {
310
+ [ "$_FROM_HELMUP_" != "true" ]
311
+ }
312
+
308
313
  # simple enforcement of necessary tools that need to be installed
309
314
  function commandChecker() {
310
315
  for cmd in "$@"; do
package/src/helmup.sh CHANGED
@@ -2,6 +2,9 @@
2
2
  #
3
3
  # printf "\n***** RUNNING LOCALLY *****\n" && sleep 2 && alias build-tools="build-tools.js"
4
4
 
5
+ # indicator to the bash-funcs ifNotFromHelmup function
6
+ export _FROM_HELMUP_="true"
7
+
5
8
  # Load the standard helper functions
6
9
  . `build-tools --bashfun`
7
10
 
package/src/k8scale.sh CHANGED
@@ -29,7 +29,8 @@ K8SCALE_HELP
29
29
  exit 1
30
30
  esac
31
31
 
32
- overwhelm
32
+ [ ifNotFromHelmup ] && overwhelm
33
+
33
34
  [ $? -ne 0 ] && printf "\n\n***Aborting helmup...\n\n" && exit 1
34
35
 
35
36
  printf " scaled => `color g $DIRECTION`\n\n"
@@ -1,3 +0,0 @@
1
- {
2
- "editor.formatOnSave": true
3
- }