Skip to content

Commit 051460b

Browse files
committed
feat!: v9, publish raw TypeScript, target node 24
1 parent 4918761 commit 051460b

35 files changed

Lines changed: 3011 additions & 3563 deletions

.github/workflows/deploy.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,21 @@ on:
88
jobs:
99
publish-npm:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
id-token: write
14+
attestations: write
1115
steps:
1216
- uses: actions/checkout@v4
1317

1418
- uses: pnpm/action-setup@v4
1519

1620
- uses: actions/setup-node@v4
1721
with:
22+
node-version: 24
23+
registry-url: https://registry.npmjs.org/
1824
cache: 'pnpm'
19-
registry-url: 'https://registry.npmjs.org'
2025

2126
- run: make
2227

23-
- run: pnpm publish --access=public --no-git-checks
24-
env:
25-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
28+
- run: pnpm publish --access=public --no-git-checks --provenance

.github/workflows/pr.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,21 @@ on:
66

77
jobs:
88
test:
9-
runs-on: ubuntu-latest
109
strategy:
1110
matrix:
12-
node-version: [20, 22]
11+
version: [24]
12+
os: [ubuntu-latest]
13+
14+
runs-on: ${{ matrix.os }}
15+
1316
steps:
1417
- uses: actions/checkout@v4
1518

1619
- uses: pnpm/action-setup@v4
1720

1821
- uses: actions/setup-node@v4
1922
with:
20-
node-version: ${{ matrix.node-version }}
23+
node-version: ${{ matrix.version }}
2124
cache: 'pnpm'
22-
registry-url: 'https://registry.npmjs.org'
2325

2426
- run: make test

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
node_modules
22
dist
33
coverage
4+
tmp/
5+
.vscode/

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20
1+
24

Makefile

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,27 @@
11

22
SRCS = $(wildcard lib/**)
33

4-
all: test
4+
all: typecheck
55

66
.PHONY: deps
77
deps: node_modules
88

9-
.PHONY: clean
10-
clean:
11-
pnpm exec tsc -b --clean
12-
rm -rf dist
13-
rm -rf __tests__/dist
14-
rm __tests__/fixtures/*/*.ts
9+
.PHONY: distclean
10+
distclean:
11+
rm -rf node_modules
12+
13+
.PHONY: typecheck
14+
typecheck: node_modules tsconfig.json $(SRCS)
15+
pnpm exec tsc
1516

1617
.PHONY: test
1718
test: node_modules
18-
pnpm exec tsc -b
19+
pnpm exec tsc
1920
pnpm exec vitest
2021

2122
node_modules: package.json
2223
pnpm install
2324

24-
.PHONY: dev
25-
dev:
26-
pnpm tsc -b -w
27-
2825
.PHONY: fixtures
2926
fixtures:
3027
$(MAKE) petstore test1 openai docker
@@ -64,14 +61,6 @@ docker: __tests__/fixtures/docker.json
6461
-i $< \
6562
-o __tests__/fixtures/docker
6663
pnpm exec biome check --unsafe --write __tests__/fixtures/docker
67-
68-
69-
# .PHONY: cloudflare
70-
# cloudflare: __tests__/fixtures/cloudflare/openapi.json
71-
# node --enable-source-maps bin/index.js \
72-
# -i __tests__/fixtures/cloudflare/openapi.json \
73-
# -o __tests__/fixtures/cloudflare
74-
# pnpm prettier --write __tests__/fixtures/cloudflare
7564

7665
.PHONY: pretty
7766
pretty: node_modules

__tests__/fixtures/docker/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* WARN: Do not edit directly.
55
*
6-
* Generated on 2026-01-09T08:35:53.827Z
6+
* Generated on 2026-03-06T07:45:59.608Z
77
*
88
*/
99
/** eslint-disable max-classes */

0 commit comments

Comments
 (0)