@leverege/build-tools 2.21.6 → 2.21.7

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.
Files changed (3) hide show
  1. package/package.json +1 -1
  2. package/src/dockreate +5 -5
  3. package/.swp +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "2.21.6",
3
+ "version": "2.21.7",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "repository": {
package/src/dockreate CHANGED
@@ -6,8 +6,8 @@ fi
6
6
 
7
7
  # Load common bash functions
8
8
  . `build-tools --bashfun`
9
- GITTOP=`git rev-parse --show-toplevel`
10
- cd $GITTOP/docker
9
+ PKGTOP="$npm_config_local_prefix"
10
+ cd $PKGTOP/docker
11
11
 
12
12
  if [ ! -x "$(command -v jq)" ];
13
13
  then
@@ -19,7 +19,7 @@ NO_JQ
19
19
  exit 1
20
20
  fi
21
21
 
22
- if [ ! -d "$GITTOP/dist" ];
22
+ if [ ! -d "$PKGTOP/dist" ];
23
23
  then
24
24
  cat<<NO_DIST
25
25
 
@@ -30,7 +30,7 @@ NO_DIST
30
30
  fi
31
31
 
32
32
  function packageJson() {
33
- result=$(jq -r $1 $GITTOP/package.json)
33
+ result=$(jq -r $1 $PKGTOP/package.json)
34
34
  if [ "$result" != "null" ]
35
35
  then
36
36
  echo $result
@@ -372,7 +372,7 @@ create_Dockerfile "$version" "$nodeimg" "$apkadds"
372
372
  create_bashrc "$version" "$nodeimg"
373
373
 
374
374
  rm -rf ./workspace && mkdir -p ./workspace
375
- cp -rfp ${GITTOP}/package*json ${GITTOP}/dist/* ./workspace
375
+ cp -rfp ${PKGTOP}/package*json ${PKGTOP}/dist/* ./workspace
376
376
 
377
377
  # grab the read only npmrc token for the image
378
378
  cp -f $NPMRC .npmrc
package/.swp DELETED
Binary file