@leverege/build-tools 2.57.0 → 2.57.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "2.57.0",
3
+ "version": "2.57.1",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -10,7 +10,7 @@
10
10
  "scripts": {
11
11
  "clean": "rm -rf lib",
12
12
  "lint": "find ./src -name \\*.\\*js | xargs npx eslint --report-unused-disable-directives",
13
- "prepare": "hook-and-release",
13
+ "prepare": "[ $SKIP_PREPARE ] && exit 0 || hook-and-release",
14
14
  "test": "echo \"no tests specified\" && exit 0"
15
15
  },
16
16
  "bin": {
package/src/Docker.mjs CHANGED
@@ -45,6 +45,7 @@ RUN apk --no-cache add openssh-client && \
45
45
  {{preInstallPluginfile}}
46
46
 
47
47
  # Removed --ignore-scripts from npm ci because it was causing issues with python native build
48
+ ENV SKIP_PREPARE=true
48
49
  RUN npm ci --only=production --no-optional {{npmlogging}} && \
49
50
  rm -f /usr/src/app/.npmrc /root/.ssh/*
50
51
 
@@ -153,8 +154,8 @@ images:
153
154
  const defaultSettings = {
154
155
  apkadds : '',
155
156
  date : getDateTimestamp(),
156
- nodeimage : 'iron-alpine',
157
- npmlogging : '--silent',
157
+ nodeimage : process.env.USE_NODEJS_22 ? 'jod-alpine' : 'iron-alpine',
158
+ npmlogging : process.env.VERBOSE_NPM_LOGGING ? '--ddd' : '--silent',
158
159
  pluginfile : '# NO PLUGIN',
159
160
  preInstallPluginfile : '# NO PRE-INSTALL PLUGIN',
160
161
  regvers : 'package.version',
package/src/helmup.sh CHANGED
@@ -178,6 +178,7 @@ function makeUniformBucketWithCors() {
178
178
  gsutil mb -l $GCE_REGION -p $GCP_PROJECT_ID $BUCKET_NAME &> /dev/null
179
179
  [ "$?" -ne 0 ] && errorExit "failed to create the bucket: `color y $BUCKET_NAME`"
180
180
  fi
181
+ gcloud storage buckets update $BUCKET_NAME --uniform-bucket-level-access
181
182
  CORS_JSON_FILE="$(build-tools --reporoot)/src/helmup-cors-for-buckets.json"
182
183
  printf " Applying CORS policy\n"
183
184
  gsutil cors set $CORS_JSON_FILE $BUCKET_NAME &> /dev/null