Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@ jobs:
- name: Checkout
uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0

- name: Setup pnpm
uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0

- name: Setup Node
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: "22"
cache: yarn

- name: Install Yarn
run: npm install -g yarn@1.22.22
cache: pnpm

- name: Install
run: yarn install --frozen-lockfile
run: pnpm install --frozen-lockfile

- name: Generate API client
run: yarn generate
run: pnpm generate

- name: Typecheck
run: yarn typecheck
run: pnpm typecheck

- name: Test
run: yarn test
run: pnpm test
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ jobs:
with:
fetch-depth: 0

- name: Setup pnpm
uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0

- name: Setup Node
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: "22"
cache: yarn

- name: Install Yarn
run: npm install -g yarn@1.22.22
cache: pnpm

- name: Setup Bun
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
Expand Down Expand Up @@ -58,10 +58,10 @@ jobs:
fi

- name: Install
run: yarn install --frozen-lockfile
run: pnpm install --frozen-lockfile

- name: Generate API client
run: yarn generate
run: pnpm generate

- name: Resolve version
id: version
Expand All @@ -75,7 +75,7 @@ jobs:
- name: Build binaries
env:
VANTA_VERSION: ${{ steps.version.outputs.version }}
run: yarn build:binaries
run: pnpm build:binaries

- name: Sign and notarize macOS binaries
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules/
.pnpm-debug.log*
dist/
src/generated/
.cache/
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,16 @@ curl -fsSL https://raw.githubusercontent.com/OpenVanta/cli/main/scripts/install.

## Development

Requires Node 22+. Bun is required to build standalone binaries.
Requires Node 22+ and pnpm 12. Bun is required to build standalone binaries.

```bash
yarn install
yarn generate # OpenAPI → src/generated
yarn dev version
yarn typecheck
yarn test
yarn build # generate + bundle for Node
VANTA_VERSION=0.2.0 yarn build:binaries
pnpm install
pnpm generate # OpenAPI → src/generated
pnpm dev version
pnpm typecheck
pnpm test
pnpm build # generate + bundle for Node
VANTA_VERSION=0.2.0 pnpm build:binaries
```

The typed API client is generated from [`api-spec.json`](api-spec.json) with [`@hey-api/openapi-ts`](https://heyapi.dev/).
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
"scripts": {
"generate": "openapi-ts",
"dev": "tsx src/cli.ts",
"build": "yarn generate && tsup",
"build": "pnpm run generate && tsup",
"typecheck": "tsc --noEmit",
"test": "node --import tsx --test src/**/*.test.ts",
"build:binaries": "tsx scripts/build-binaries.ts"
},
"packageManager": "yarn@1.22.22",
"packageManager": "pnpm@12.6.0",
"engines": {
"node": ">=22"
},
Expand Down
Loading
Loading