@leverege/build-tools 2.59.0-beta.1 → 2.59.0-beta.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.59.0-beta.1",
3
+ "version": "2.59.0-beta.3",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "repository": {
package/src/Docker.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import fs from 'node:fs'
2
- import * as path from 'node:path';
3
- import { fileURLToPath } from 'node:url';
2
+ import path from 'node:path'
3
+ import url from 'node:url'
4
4
 
5
5
  import chalk from 'chalk'
6
6
  import handlebars from 'handlebars'
@@ -15,8 +15,7 @@ import {
15
15
  warning
16
16
  } from './Utils.mjs'
17
17
 
18
- const __filename = fileURLToPath( import.meta.url )
19
- const __dirname = path.dirname( __filename )
18
+ const DIRNAME = path.dirname( url.fileURLToPath( import.meta.url ) )
20
19
 
21
20
  // TODO: change default to node 22 (jod) after 01/01/25
22
21
  const dockerfileNodeVersion = process.env.USE_NODEJS_22 ? 'jod-alpine' : 'iron-alpine'
@@ -41,16 +40,16 @@ const pluginTemplate = `
41
40
  # footprints small, so adding packages "just because" is not considered
42
41
  # a best practice.
43
42
  `
44
- const dockerfileTemplate = fs.readFileSync( path.join( __dirname, './dockerfileTemplate.hbs' ), 'utf8' )
45
- const bashrcTemplate = fs.readFileSync( path.join( __dirname, './bashrcTemplate.hbs' ), 'utf8' )
46
- const cloudBuildSteps = fs.readFileSync( path.join( __dirname, './cloudBuildSteps.hbs' ), 'utf8' )
43
+ const dockerfileTemplate = fs.readFileSync( path.join( DIRNAME, './templates/dockerfileTemplate.hbs' ), 'utf8' )
44
+ const bashrcTemplate = fs.readFileSync( path.join( DIRNAME, './templates/bashrcTemplate.hbs' ), 'utf8' )
45
+ const cloudBuildSteps = fs.readFileSync( path.join( DIRNAME, './templates/cloudBuildSteps.hbs' ), 'utf8' )
47
46
 
48
47
  const defaultSettings = {
49
48
  apkadds : '',
50
49
  date : getDateTimestamp(),
51
50
  nodeimage : process.env.USE_NODEJS_22 ? 'jod-alpine' : 'iron-alpine',
52
51
  imageBase : process.env.USE_NODEJS_22 ? 'node:jod-alpine' : 'node:iron-alpine',
53
- npmlogging : process.env.VERBOSE_NPM_LOGGING ? '--ddd' : '--ddd',
52
+ npmlogging : process.env.VERBOSE_NPM_LOGGING ? '--ddd' : '--silent',
54
53
  pluginfile : '# NO PLUGIN',
55
54
  preInstallPluginfile : '# NO PRE-INSTALL PLUGIN',
56
55
  regvers : 'package.version',
@@ -32,8 +32,6 @@ RUN if [ "${BUILD_ENV}" = "debian" ]; then \
32
32
  npm install -g npm@10; \
33
33
  fi
34
34
 
35
- {{preInstallPluginfile}}
36
-
37
35
  # Use SKIP_PREPARE to disable hook-and-release from running
38
36
  ENV SKIP_PREPARE=true
39
37