Skip to content

Commit ee50bae

Browse files
committed
ci: add publint
1 parent 8dd4915 commit ee50bae

File tree

5 files changed

+60
-1
lines changed

5 files changed

+60
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ jobs:
7676
- name: Lint
7777
run: pnpm run lint
7878

79+
- name: Publint
80+
run: pnpm run publint
81+
7982
- name: Type check
8083
run: pnpm run type-check
8184

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
pnpm run type-check
3939
pnpm run clean
4040
pnpm run build
41+
pnpm run publint
4142
cp README.md packages/vite-plugin-checker/README.md
4243
4344
- name: Publish to NPM

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"clean": "pnpm -r --filter=./packages/** run clean",
1616
"format": "prettier --check \"packages/*/src/**/*.{ts,js,svelte}\"",
1717
"lint": "eslint \"packages/*/src/**/*.{ts,js,svelte}\"",
18+
"publint": "pnpm -r --filter='vite-plugin-checker' exec publint",
1819
"test": "run-s test-unit test-serve test-build",
1920
"test-unit": "vitest run",
2021
"test-serve": "vitest run -c vitest.config.e2e.ts",
@@ -70,6 +71,7 @@
7071
"prettier": "^2.3.2",
7172
"prettier-plugin-svelte": "^2.6.0",
7273
"prompts": "^2.4.1",
74+
"publint": "^0.1.9",
7375
"rimraf": "^3.0.2",
7476
"semver": "^7.3.5",
7577
"simple-git-hooks": "^2.8.0",

packages/vite-plugin-checker/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export function checker(userConfig: UserPluginConfig): Plugin {
193193
})
194194

195195
if (server.ws.on) {
196-
server.watcher.on('change', (file) => {
196+
server.watcher.on('change', () => {
197197
logger!.clearScreen('error')
198198
})
199199
server.ws.on('vite-plugin-checker', (data) => {

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)