gaztec 1.0.2 → 1.1.0

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.
@@ -0,0 +1,48 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ jobs:
9
+ release-please:
10
+ name: Create Release
11
+ runs-on: ubuntu-latest
12
+ permissions:
13
+ contents: write
14
+ issues: write
15
+ pull-requests: write
16
+ id-token: write
17
+
18
+ steps:
19
+ - name: Run release-please
20
+ id: release
21
+ uses: googleapis/release-please-action@v4
22
+ with:
23
+ token: ${{ secrets.GITHUB_TOKEN }}
24
+ config-file: release-please-config.json
25
+
26
+ - name: Checkout
27
+ if: ${{ steps.release.outputs.release_created }}
28
+ uses: actions/checkout@v4
29
+
30
+ - name: Setup pnpm
31
+ if: ${{ steps.release.outputs.release_created }}
32
+ uses: pnpm/action-setup@v4
33
+
34
+ - name: Setup Node.js
35
+ if: ${{ steps.release.outputs.release_created }}
36
+ uses: actions/setup-node@v4
37
+ with:
38
+ node-version: 24
39
+ cache: "pnpm"
40
+ registry-url: "https://registry.npmjs.org"
41
+
42
+ - name: Install dependencies
43
+ if: ${{ steps.release.outputs.release_created }}
44
+ run: pnpm install --frozen-lockfile
45
+
46
+ - name: Publish to npm
47
+ if: ${{ steps.release.outputs.release_created }}
48
+ run: pnpm publish
@@ -10,7 +10,7 @@ jobs:
10
10
  - uses: pnpm/action-setup@v4
11
11
  - uses: actions/setup-node@v4
12
12
  with:
13
- node-version: 22
13
+ node-version: 24
14
14
  cache: "pnpm"
15
15
 
16
16
  - name: Install dependencies
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "1.1.0"
3
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,28 @@
1
+ # Changelog
2
+
3
+ ## [1.1.0](https://github.com/nemi-fi/gaztec/compare/v1.0.3...v1.1.0) (2026-03-04)
4
+
5
+
6
+ ### Features
7
+
8
+ * Add support for nargo command in gaztec ([5d8ec8d](https://github.com/nemi-fi/gaztec/commit/5d8ec8dfac7c5108dbecd33754d3f703d4a514b7))
9
+ * Fallback to latest ([7fd4ec7](https://github.com/nemi-fi/gaztec/commit/7fd4ec7eab450465d263d0083705b48fdffbe67c))
10
+ * Show gaztec version ([6aff490](https://github.com/nemi-fi/gaztec/commit/6aff4909800b966ac526f015902757c993d28f42))
11
+ * Support aztec v4 dockerless cli ([#2](https://github.com/nemi-fi/gaztec/issues/2)) ([6589e7d](https://github.com/nemi-fi/gaztec/commit/6589e7df67500ddfa53fd2a77a32865d81ded476))
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * Add NARGO path to gaztec-install script ([b7e0dad](https://github.com/nemi-fi/gaztec/commit/b7e0dade2339536089b186bfb9be7cb905907435))
17
+ * Bb path ([5ba1cd1](https://github.com/nemi-fi/gaztec/commit/5ba1cd120511967305dd9c0fd6262b110cc26d30))
18
+ * Correct filename from .gaztecrc to .aztecrc in README.md ([a8819bb](https://github.com/nemi-fi/gaztec/commit/a8819bb4bffa0901a9c7f27fcacde475fa135fa1))
19
+ * Fetch the latest version from github ([70d53c8](https://github.com/nemi-fi/gaztec/commit/70d53c8c23736243b12e41bd6943d5780c467f2f))
20
+ * Fix installation ([77643a8](https://github.com/nemi-fi/gaztec/commit/77643a89816a396f9dd4b8cbe8b5fc6a516d8a74))
21
+ * Handle npm prefix in CI environments ([a0e7ef7](https://github.com/nemi-fi/gaztec/commit/a0e7ef782f55353643fd8d17e951e835d49e8afe))
22
+ * Update gaztec-install to set AZTEC_VERSION and modify GITHUB_PATH for CI ([1c7925d](https://github.com/nemi-fi/gaztec/commit/1c7925d57a6909e547624caa762905287a8db5ef))
23
+
24
+ ## [1.0.3] - 2025-03-04
25
+
26
+ ### Added
27
+
28
+ - Support dockerless `aztec` installation
@@ -0,0 +1,10 @@
1
+ # Contributing
2
+
3
+ ## Releasing
4
+
5
+ Releases are automated with [release-please](https://github.com/googleapis/release-please). Use [Conventional Commits](https://www.conventionalcommits.org/) in your PRs (`feat:`, `fix:`, etc.). When a Release PR is merged, it will:
6
+
7
+ 1. Create a GitHub release and tag
8
+ 2. Publish to npm
9
+
10
+ **Required secret:** Add `NPM_TOKEN` (npm automation token) to your repo secrets for publishing. Create one at npmjs.com → Account → Access Tokens.
package/README.md CHANGED
@@ -1,30 +1,70 @@
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.
3
+ Manage your `aztec` versions without hassle. Automatically switch between versions in projects by creating a `.aztecrc` file.
4
4
 
5
- ## Installation
5
+ ## Why gaztec?
6
+
7
+ - **No installation** — just run `npx gaztec` and go. No global install, no `npm i` required
8
+ - **Automatic version switching** — drop a `.aztecrc` in your project and gaztec picks the right version
9
+ - **No `aztec-up` needed** — versions are fetched on demand when you run a command
10
+ - **Simple** — `npx gaztec <command>` replaces `aztec <command>` everywhere
11
+
12
+ ## Quick start
6
13
 
7
14
  ```sh
8
- npm i -g gaztec
15
+ # create a file that defines the version of Aztec for your project
16
+ echo "4.0.0-devnet.2-patch.2" > .aztecrc
17
+
18
+ # use gaztec where you would use aztec (no install needed)
19
+ npx gaztec --version
20
+ #> 4.0.0-devnet.2-patch.2
9
21
  ```
10
22
 
11
- You can also install it locally and use it in your project:
23
+ ## `gaztec nargo`
24
+
25
+ `gaztec nargo` exposes the pinned version of `nargo` that is compatible with the installed version of Aztec. Useful if you don't want to manage the version of `nargo` yourself.
12
26
 
13
27
  ```sh
14
- npm i gaztec -D
28
+ # runs `nargo check` with the pinned version of `nargo`
29
+ npx gaztec nargo check
15
30
  ```
16
31
 
17
- **WARNING**: if you use `pnpm` or `yarn`, you must use `npx gaztec` instead of `pnpm gaztec` or `yarn gaztec`.
32
+ ## Installation (optional)
18
33
 
19
- ## Use in your project
34
+ You can install gaztec globally or as a dev dependency (to pin the version) if you prefer:
20
35
 
21
36
  ```sh
22
- # create a file that defines the version of Aztec for your project
23
- echo "4.0.0-devnet.2-patch.2" > .gaztecrc
37
+ npm i -g gaztec
38
+ # or
39
+ npm i gaztec -D
40
+ ```
24
41
 
25
- # use `gaztec` where you would use `aztec`
26
- gaztec --version
27
- #> 4.0.0-devnet.2-patch.2
42
+ **Note**: with `pnpm` or `yarn`, use `npx gaztec` instead of `pnpm gaztec` or `yarn gaztec`.
43
+
44
+ ## CI
45
+
46
+ Commit a `.aztecrc` file to your repo and use `npx gaztec` in your workflow. No setup step needed:
47
+
48
+ ```yaml
49
+ name: Test
50
+
51
+ on: [push]
52
+
53
+ jobs:
54
+ test:
55
+ runs-on: ubuntu-latest
56
+ steps:
57
+ - uses: actions/checkout@v4
58
+ - uses: pnpm/action-setup@v4
59
+ - uses: actions/setup-node@v4
60
+ with:
61
+ node-version: 24
62
+
63
+ - name: Compile Aztec contracts
64
+ run: npx gaztec compile
65
+
66
+ - name: Start Aztec Local Network
67
+ run: npx gaztec start --local-network
28
68
  ```
29
69
 
30
70
  ## Compatibility with `aztec`
package/gaztec CHANGED
@@ -3,4 +3,10 @@ set -euo pipefail
3
3
 
4
4
  source "$(dirname -- "${BASH_SOURCE[0]}")/gaztec-install"
5
5
 
6
- $AZTEC $@
6
+ # if the subcommand is "nargo", run nargo instead
7
+ if [[ "$1" == "nargo" ]]; then
8
+ shift
9
+ $NARGO $@
10
+ else
11
+ $AZTEC $@
12
+ fi
package/gaztec-install CHANGED
@@ -51,6 +51,8 @@ if ! $AZTEC_UP list | grep $AZTEC_VERSION; then
51
51
  $AZTEC_UP install $AZTEC_VERSION
52
52
  fi
53
53
 
54
+ $AZTEC_UP use $AZTEC_VERSION
55
+
54
56
  # needed due to a bug. Without this line, it tries to use bb from ~/.bb
55
57
  export BB="$AZTEC_PATH/versions/$AZTEC_VERSION/node_modules/.bin/bb"
56
58
  # needed due to a bug. Without this line, it tries to use nargo from ~/.nargo
@@ -61,4 +63,10 @@ if [[ -n "${CI:-}" ]] && command -v npm >/dev/null 2>&1; then
61
63
  npm config delete prefix
62
64
  fi
63
65
 
66
+ # on github CI (GITHUB_PATH exists), add the aztec path to the path
67
+ if [[ -n "${GITHUB_PATH:-}" ]]; then
68
+ echo "$AZTEC_PATH/versions/$AZTEC_VERSION/bin" >> $GITHUB_PATH
69
+ echo "$AZTEC_PATH/versions/$AZTEC_VERSION/node_modules/.bin" >> $GITHUB_PATH
70
+ fi
71
+
64
72
  AZTEC="$AZTEC_PATH/versions/$AZTEC_VERSION/node_modules/.bin/aztec"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gaztec",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
4
4
  "type": "module",
5
5
  "description": "Aztec version manager",
6
6
  "repository": {
@@ -0,0 +1,14 @@
1
+ {
2
+ "release-type": "simple",
3
+ "bump-minor-pre-major": true,
4
+ "bump-patch-for-minor-pre-major": true,
5
+ "pull-request-title-pattern": "chore: Release ${version}",
6
+ "group-pull-request-title-pattern": "chore: Release ${version}",
7
+ "packages": {
8
+ ".": {
9
+ "release-type": "node",
10
+ "include-component-in-tag": false
11
+ }
12
+ },
13
+ "plugins": ["sentence-case"]
14
+ }
package/test/test.sh CHANGED
@@ -3,4 +3,6 @@ set -euo pipefail
3
3
 
4
4
  source $(dirname -- "${BASH_SOURCE[0]}")/../gaztec --version
5
5
 
6
+ source $(dirname -- "${BASH_SOURCE[0]}")/../gaztec nargo --version
7
+
6
8
  echo "Test passed"