@leverege/build-tools 2.108.0 → 2.108.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.108.0",
3
+ "version": "2.108.1",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -13,14 +13,16 @@
13
13
  * - Line-targeted edits, so no YAML dependency is needed.
14
14
  */
15
15
 
16
+ import { join } from 'node:path'
16
17
  import fs from 'node:fs'
17
18
  import { execSync } from 'node:child_process'
18
19
 
19
- const pkg = JSON.parse( fs.readFileSync( new URL( '../package.json', import.meta.url ), 'utf8' ) )
20
+ const cdir = process.cwd()
21
+ const pkg = JSON.parse( fs.readFileSync( new URL( join( cdir, 'package.json' ), import.meta.url ), 'utf8' ) )
20
22
  const version = pkg.version
21
23
  const appVersion = `v${version}`
22
24
 
23
- const chartUrl = new URL( '../helm/Chart.yaml', import.meta.url )
25
+ const chartUrl = new URL( join( cdir, join( 'helm', 'Chart.yaml' ) ), import.meta.url )
24
26
  let chart
25
27
  try {
26
28
  chart = fs.readFileSync( chartUrl, 'utf8' )