Skip to content

Commit f5bf497

Browse files
committed
fix: add publint and attw CI checks
1 parent 44fdc6f commit f5bf497

3 files changed

Lines changed: 364 additions & 3 deletions

File tree

.github/workflows/pkg-check.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Check package exports
2+
on:
3+
push:
4+
branches:
5+
- "**"
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
cancel-in-progress: true
9+
10+
jobs:
11+
pkg-check:
12+
runs-on: ubuntu-latest
13+
env:
14+
CI_RUN: true
15+
steps:
16+
- uses: actions/checkout@v6
17+
- uses: ./.github/actions/prepare-runner
18+
- run: pnpm --filter nanotags run build
19+
- run: pnpm --filter nanotags run lint:publint
20+
- run: pnpm --filter nanotags run lint:attw

packages/nanotags/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
"lint:oxlint": "oxlint .",
5050
"lint:types": "pnpm run typecheck",
5151
"lint:size": "pnpm run build:size && size-limit",
52+
"lint:publint": "publint",
53+
"lint:attw": "attw --pack --profile esm-only",
5254
"format": "pnpm run /^format:/",
5355
"format:oxlint": "oxlint --fix --fix-suggestions .",
5456
"format:oxfmt": "oxfmt src/",
@@ -58,16 +60,18 @@
5860
"@standard-schema/spec": "^1.1.0"
5961
},
6062
"devDependencies": {
63+
"@arethetypeswrong/cli": "^0.18.2",
6164
"@size-limit/file": "^12.0.1",
6265
"@vitest/coverage-v8": "^4.1.0",
6366
"happy-dom": "^20.8.4",
6467
"nanostores": "^1.2.0",
65-
"valibot": "^1.3.1",
6668
"oxfmt": "^0.35.0",
6769
"oxlint": "^1.56.0",
70+
"publint": "^0.3.18",
6871
"size-limit": "^12.0.1",
6972
"tsdown": "0.21.4",
7073
"typescript": "^5.9.3",
74+
"valibot": "^1.3.1",
7175
"vitest": "^4.1.0"
7276
},
7377
"peerDependencies": {

0 commit comments

Comments
 (0)