Skip to content

Commit

Permalink
ci: add publint
Browse files Browse the repository at this point in the history
  • Loading branch information
fi3ework committed Jan 29, 2023
1 parent 8dd4915 commit ee50bae
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ jobs:
- name: Lint
run: pnpm run lint

- name: Publint
run: pnpm run publint

- name: Type check
run: pnpm run type-check

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
pnpm run type-check
pnpm run clean
pnpm run build
pnpm run publint
cp README.md packages/vite-plugin-checker/README.md
- name: Publish to NPM
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"clean": "pnpm -r --filter=./packages/** run clean",
"format": "prettier --check \"packages/*/src/**/*.{ts,js,svelte}\"",
"lint": "eslint \"packages/*/src/**/*.{ts,js,svelte}\"",
"publint": "pnpm -r --filter='vite-plugin-checker' exec publint",
"test": "run-s test-unit test-serve test-build",
"test-unit": "vitest run",
"test-serve": "vitest run -c vitest.config.e2e.ts",
Expand Down Expand Up @@ -70,6 +71,7 @@
"prettier": "^2.3.2",
"prettier-plugin-svelte": "^2.6.0",
"prompts": "^2.4.1",
"publint": "^0.1.9",
"rimraf": "^3.0.2",
"semver": "^7.3.5",
"simple-git-hooks": "^2.8.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/vite-plugin-checker/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export function checker(userConfig: UserPluginConfig): Plugin {
})

if (server.ws.on) {
server.watcher.on('change', (file) => {
server.watcher.on('change', () => {
logger!.clearScreen('error')
})
server.ws.on('vite-plugin-checker', (data) => {
Expand Down
53 changes: 53 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ee50bae

Please sign in to comment.