Skip to content

Add troubleshooting instructions for ERR_REQUIRE_ESM (#43) #44

Add troubleshooting instructions for ERR_REQUIRE_ESM (#43)

Add troubleshooting instructions for ERR_REQUIRE_ESM (#43) #44

Workflow file for this run

name: CLI Build
on:
push:
branches: [main]
paths: ["cli/**"]
pull_request:
paths: ["cli/**"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
working-directory: ./cli
run: bun install
- name: Type check
working-directory: ./cli
run: bun run typecheck
- name: Build CLI
working-directory: ./cli
run: bun run build
- name: Check build artifacts
working-directory: ./cli
run: |
ls -la dist/
test -f dist/index.js