gaztec 0.0.4 → 0.0.6

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/README.md CHANGED
@@ -6,6 +6,14 @@
6
6
  npm i -g gaztec
7
7
  ```
8
8
 
9
+ You can also install it locally and use it in your project:
10
+
11
+ ```sh
12
+ npm i gaztec -D
13
+ ```
14
+
15
+ **WARNING**: if you use `pnpm` or `yarn`, you must use `npx gaztec` instead of `pnpm gaztec` or `yarn gaztec`.
16
+
9
17
  ## Use in your project
10
18
 
11
19
  ```sh
package/gaztec-install CHANGED
@@ -12,6 +12,7 @@ install_aztec() {
12
12
  fi
13
13
  }
14
14
 
15
+ AZTEC_VERSION=""
15
16
  # go from the current dir to the root of the filesystem and find the first .gaztecrc file
16
17
  dir=$(pwd)
17
18
  while [[ $dir != "/" ]]; do
@@ -21,6 +22,7 @@ while [[ $dir != "/" ]]; do
21
22
  fi
22
23
  dir=$(dirname $dir)
23
24
  done
25
+ # if AZTEC_VERSION is still empty, exit
24
26
  if [[ -z "$AZTEC_VERSION" ]]; then
25
27
  echo "No .gaztecrc file found in the current or parent directories starting from $(pwd)"
26
28
  exit 1
package/package.json CHANGED
@@ -1,8 +1,12 @@
1
1
  {
2
2
  "name": "gaztec",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "type": "module",
5
5
  "description": "Aztec version manager",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/nemi-fi/gaztec.git"
9
+ },
6
10
  "bin": {
7
11
  "gaztec-install": "./gaztec-install",
8
12
  "gaztec": "./gaztec",