Skip to content

Commit

Permalink
Check engines in package.json with ls-engines
Browse files Browse the repository at this point in the history
  • Loading branch information
kemitchell committed Sep 3, 2024
1 parent 811c581 commit 08ae712
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jobs:
uses: ljharb/actions/.github/workflows/node-majors.yml@main
with:
range: '>= 14.17'
command: 'npm run tests-only && npm run licenses'
command: 'npm run engines && npm run tests-only && npm run licenses'
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
],
"devDependencies": {
"aud": "^2.0.4",
"ls-engines": "^0.9.3",
"rimraf": "^3.0.2",
"run-parallel": "^1.2.0",
"spawn-sync": "^2.0.0",
Expand All @@ -38,6 +39,7 @@
"license": "Apache-2.0",
"repository": "jslicense/licensee.js",
"scripts": {
"engines": "ls-engines --check",
"licenses": "./licensee --errors-only",
"lint": "standard index.js licensee tests/**/*.js",
"pretest": "npm run lint",
Expand Down

0 comments on commit 08ae712

Please sign in to comment.