Skip to content

Commit 8bd487c

Browse files
authored
Merge pull request #1 from BlockRunAI/achiurizo-ci
Add CI to test, lint and typecheck
2 parents 95ef832 + 4823067 commit 8bd487c

10 files changed

Lines changed: 903 additions & 41 deletions

File tree

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
ci:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
node-version: [20, 22, 24]
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Setup pnpm
18+
uses: pnpm/action-setup@v4
19+
20+
- name: Setup Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
cache: pnpm
25+
26+
- name: Install dependencies
27+
run: pnpm install --frozen-lockfile
28+
29+
- name: Lint
30+
run: pnpm run lint
31+
32+
- name: Typecheck
33+
run: pnpm run typecheck
34+
35+
- name: Test
36+
run: pnpm run test --run
37+
38+
- name: Build
39+
run: pnpm run build

eslint.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import eslint from "@eslint/js";
2+
import tseslint from "typescript-eslint";
3+
4+
export default tseslint.config(
5+
eslint.configs.recommended,
6+
...tseslint.configs.recommended,
7+
{
8+
ignores: ["dist/", "node_modules/"],
9+
}
10+
);

package.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
{
22
"name": "@blockrun/llm",
33
"version": "0.1.1",
4+
"type": "module",
45
"description": "BlockRun LLM Gateway SDK - Pay-per-request AI via x402 on Base",
56
"main": "dist/index.js",
67
"module": "dist/index.mjs",
78
"types": "dist/index.d.ts",
89
"exports": {
910
".": {
11+
"types": "./dist/index.d.ts",
1012
"import": "./dist/index.mjs",
11-
"require": "./dist/index.js",
12-
"types": "./dist/index.d.ts"
13+
"require": "./dist/index.js"
1314
}
1415
},
1516
"files": [
@@ -49,12 +50,16 @@
4950
"viem": "^2.21.0"
5051
},
5152
"devDependencies": {
53+
"@eslint/js": "^9.0.0",
5254
"@types/node": "^20.0.0",
55+
"eslint": "^9.0.0",
5356
"tsup": "^8.0.0",
5457
"typescript": "^5.0.0",
58+
"typescript-eslint": "^8.0.0",
5559
"vitest": "^1.0.0"
5660
},
5761
"engines": {
58-
"node": ">=18"
59-
}
62+
"node": ">=20"
63+
},
64+
"packageManager": "pnpm@9.15.4"
6065
}

0 commit comments

Comments
 (0)