gaztec 0.1.0 → 0.1.2

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
@@ -1,5 +1,7 @@
1
1
  # Aztec version manager
2
2
 
3
+ Manage your `aztec` versions without hussle. Automatically switch between versions in projects by creating a `.gaztecrc` file.
4
+
3
5
  ## Installation
4
6
 
5
7
  ```sh
package/gaztec-install CHANGED
@@ -23,10 +23,13 @@ while [[ $dir != "/" ]]; do
23
23
  fi
24
24
  dir=$(dirname $dir)
25
25
  done
26
- # if AZTEC_VERSION is still empty, exit
26
+
27
+ # fallback
27
28
  if [[ -z "$AZTEC_VERSION" ]]; then
28
- echo "No .gaztecrc file found in the current or parent directories starting from $(pwd)"
29
- exit 1
29
+ echo "No .gaztecrc file found in the current or parent directories starting from $(pwd). Falling back to the latest version."
30
+ # fetch the latest version from github releases, remove the v prefix
31
+ AZTEC_VERSION=$(curl -s https://api.github.com/repos/AztecProtocol/aztec-packages/releases/latest | jq -r '.tag_name' | sed 's/^v//')
32
+ echo "Latest version is $AZTEC_VERSION"
30
33
  fi
31
34
 
32
35
  export VERSION=$AZTEC_VERSION
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gaztec",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "description": "Aztec version manager",
6
6
  "repository": {