@leverege/build-tools 2.56.0 → 2.56.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.56.0",
3
+ "version": "2.56.1",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -22,7 +22,7 @@ import {
22
22
  shellCmd } from './Utils.mjs'
23
23
 
24
24
  const commandLineOptions = [ // Use commandLineOptions to tie into the Usage statements
25
- /* eslint-disable max-len */
25
+
26
26
  {
27
27
  name : 'location',
28
28
  type : String,
@@ -48,7 +48,7 @@ const commandLineOptions = [ // Use commandLineOptions to tie into the Usage sta
48
48
  type : Boolean,
49
49
  description : '{green display this help screen}',
50
50
  },
51
- /* eslint-enable max-len */
51
+
52
52
  ]
53
53
 
54
54
  const sections = [
@@ -20,7 +20,6 @@ import {
20
20
  shellCmd } from './Utils.mjs'
21
21
 
22
22
  const commandLineOptions = [ // Use commandLineOptions to tie into the Usage statements
23
- /* eslint-disable max-len */
24
23
  {
25
24
  name : 'location',
26
25
  type : String,
@@ -51,7 +50,6 @@ const commandLineOptions = [ // Use commandLineOptions to tie into the Usage sta
51
50
  type : Boolean,
52
51
  description : '{green display this help screen}',
53
52
  },
54
- /* eslint-enable max-len */
55
53
  ]
56
54
 
57
55
  const sections = [
@@ -118,7 +118,6 @@ await shellCmd( 'npm install', { stdio : 'inherit' } )
118
118
 
119
119
  if ( giveGuidance ) {
120
120
  await docker.repoCleanup() // adjusts gitignore files and removes cruft
121
- /* eslint-disable max-len */
122
121
  log( `
123
122
 
124
123
 
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  /* eslint-disable no-console */
3
3
  // https://github.com/google/zx
4
- /* eslint-disable max-len */
5
4
  import pkg from 'enquirer'
6
5
  import { $, fs, argv, path, chalk } from 'zx'
7
6
 
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
  // https://github.com/google/zx
3
- /* eslint-disable max-len */
4
3
  /* eslint-disable no-console */
5
4
  import pkg from 'enquirer'
6
5
  import { $, fs, argv, path, chalk } from 'zx'
package/src/overwhelm.mjs CHANGED
@@ -266,19 +266,20 @@ const ahoy = glob.sync( '*/', opt )
266
266
 
267
267
  // Verifies that all values in a config block are quoted
268
268
  const validValuesLocalConfig = ( vlf ) => {
269
- if ( ! fs.existsSync( vlf ) ) { return undefined }
269
+ if ( !fs.existsSync( vlf ) ) { return undefined }
270
270
 
271
271
  const valuesLocal = YAML.load( fs.readFileSync( vlf, { encoding : 'utf-8' } ) )
272
272
  const configBlock = valuesLocal.config
273
273
 
274
274
  // only care about validating config at this time
275
275
  if ( configBlock ) {
276
- for ( const [ key, value ] of Object.entries( configBlock ) ) {
277
- if( ! isString( value ) ) {
276
+ Object.entries( configBlock ).forEach( ( cfgLine ) => {
277
+ const [ key, value ] = cfgLine
278
+ if ( !isString( value ) ) {
278
279
  err( { configBlock }, '***Bad config block' )
279
280
  errorExit( `Is ${key} missing quotes around ${value} in ${vlf}?` )
280
281
  }
281
- }
282
+ } )
282
283
  }
283
284
 
284
285
  return true // TODO: return the already read valuesLocal info?
@@ -29,7 +29,6 @@ import { lt as semverLt } from 'semver'
29
29
  import { debug, log, shellCmd } from './Utils.mjs'
30
30
 
31
31
  const refreshTokenOptions = [ // Use refreshTokenOptions to tie into the Usage statements
32
- /* eslint-disable max-len */
33
32
  {
34
33
  name : 'project',
35
34
  type : String,
@@ -60,7 +59,6 @@ const refreshTokenOptions = [ // Use refreshTokenOptions to tie into the Usage s
60
59
  default : false,
61
60
  description : '{green display this help screen}',
62
61
  },
63
- /* eslint-enable max-len */
64
62
  ]
65
63
 
66
64
  const sections = [
@@ -245,7 +243,6 @@ try {
245
243
  const now = ( new Date() ).toLocaleString()
246
244
  const account = await shellCmd( 'gcloud config get account' )
247
245
  const slackData = {
248
- // eslint-disable-next-line max-len
249
246
  text : `--- npmrc refreshed by \`${account}\` at ${now}\n tokens RW [\`${npmrc.token}\`] RO [\`${npmrcRo.token}\`]`,
250
247
  channel : slackConfig.channel,
251
248
  }
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  /* eslint-disable security/detect-unsafe-regex */
3
3
  /* eslint-disable no-console */
4
- /* eslint-disable max-len */
5
4
 
6
5
  import path from 'node:path'
7
6