Skip to content

Commit 0d40a29

Browse files
committed
Add publint --strict publish-correctness gate (prepack + CI)
1 parent c38537f commit 0d40a29

3 files changed

Lines changed: 48 additions & 4 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
- uses: pnpm/action-setup@v4
1515
- run: pnpm install
1616
- run: pnpm --dir packages/parser run build
17+
- run: pnpm --dir packages/parser run lint:publish
1718
- run: pnpm --dir packages/parser run check-pack
1819
- run: pnpm --dir packages/parser run test
1920
- run: pnpm --dir apps/web run test

packages/parser/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"author": "Lars Kappert <lars@webpro.nl>",
1414
"repository": {
1515
"type": "git",
16-
"url": "github:webpro/ANSI.tools",
16+
"url": "git+https://github.com/webpro/ANSI.tools.git",
1717
"directory": "packages/parser"
1818
},
1919
"files": [
@@ -46,11 +46,13 @@
4646
"test": "node --import ./test/assertions.ts --test",
4747
"type-check": "tsc --noEmit",
4848
"check-pack": "node scripts/check-pack.ts",
49-
"prepack": "pnpm build && pnpm check-pack"
49+
"lint:publish": "publint --strict",
50+
"prepack": "pnpm build && pnpm lint:publish && pnpm check-pack"
5051
},
5152
"devDependencies": {
5253
"@types/node": "^24.12.4",
5354
"mitata": "^1.0.34",
55+
"publint": "^0.3.21",
5456
"tsdown": "^0.22.0",
5557
"typescript": "^6.0.3"
5658
}

pnpm-lock.yaml

Lines changed: 43 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)