Skip to content

Commit c1e1f8d

Browse files
committed
test: add publint
1 parent aa0ca64 commit c1e1f8d

File tree

3 files changed

+72
-1
lines changed

3 files changed

+72
-1
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ jobs:
2020

2121
- name: Build artifacts
2222
run: npm run build
23+
24+
- name: Run Publint
25+
run: npm run lint:publint

package-lock.json

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

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@
3434
"clean": "rm -rf .nyc_output coverage dist lib",
3535
"lint": "eslint .",
3636
"lint:fix": "npm run lint -- --fix",
37+
"lint:publint": "publint",
3738
"lint:tsc": "tsc --noEmit",
3839
"prepare": "husky",
39-
"prepublishOnly": "run-s lint lint:tsc test:server clean build",
40+
"prepublishOnly": "run-s lint lint:tsc test:server clean build lint:publint",
4041
"size-limit": "size-limit",
4142
"test": "run-s test:server test:client",
4243
"test:client": "npm run test:client:watch -- --single-run",
@@ -101,6 +102,7 @@
101102
"npm-run-all": "4.1.5",
102103
"nyc": "17.1.0",
103104
"prettier": "3.5.3",
105+
"publint": "0.3.12",
104106
"rollup": "4.40.2",
105107
"size-limit": "11.2.0",
106108
"ts-node": "10.9.2",

0 commit comments

Comments
 (0)