Skip to content

Commit

Permalink
Add pub lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nvie committed Jun 23, 2023
1 parent 8ee0e1f commit 72d7e42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ jobs:

- name: Run linters
run: npm run lint

- name: Run NPM package lints
run: npm run lint:package
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"lint": "npm run lint:eslint && npm run lint:prettier",
"lint:eslint": "npx eslint --report-unused-disable-directives src/",
"lint:prettier": "npx prettier --list-different src/",
"lint:package": "npx -y publint@latest --strict && npx -y @arethetypeswrong/cli@latest /tmp/$( npm pack -q --pack-destination /tmp )",
"prepublish": "in-publish && npm run actually-prepublish || not-in-publish",
"test": "vitest run --coverage"
},
Expand Down

0 comments on commit 72d7e42

Please sign in to comment.