Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run Publint to check for package issues #398

Merged
merged 1 commit into from
May 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,20 @@ jobs:
cache: "npm"
- run: npm install --ignore-scripts --no-audit
- run: npm test

lint-package:
name: Lint package
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm install --ignore-scripts --no-audit
- name: Build package
run: npm run build
- name: Lint package
run: npx --yes publint
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"module": "./dist/analyzer.module.js",
"unpkg": "./dist/analyzer.umd.js",
"exports": {
"types": "./dist/index.d.ts",
"require": "./dist/analyzer.cjs",
"default": "./dist/analyzer.modern.js",
"types": "./dist/index.d.ts"
"default": "./dist/analyzer.modern.js"
},
"types": "./dist/index.d.ts",
"engines": {
Expand Down
Loading