Skip to content

Commit 08ae712

Browse files
committed
Check engines in package.json with ls-engines
1 parent 811c581 commit 08ae712

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: .github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ jobs:
1010
uses: ljharb/actions/.github/workflows/node-majors.yml@main
1111
with:
1212
range: '>= 14.17'
13-
command: 'npm run tests-only && npm run licenses'
13+
command: 'npm run engines && npm run tests-only && npm run licenses'

Diff for: package.json

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
],
3030
"devDependencies": {
3131
"aud": "^2.0.4",
32+
"ls-engines": "^0.9.3",
3233
"rimraf": "^3.0.2",
3334
"run-parallel": "^1.2.0",
3435
"spawn-sync": "^2.0.0",
@@ -38,6 +39,7 @@
3839
"license": "Apache-2.0",
3940
"repository": "jslicense/licensee.js",
4041
"scripts": {
42+
"engines": "ls-engines --check",
4143
"licenses": "./licensee --errors-only",
4244
"lint": "standard index.js licensee tests/**/*.js",
4345
"pretest": "npm run lint",

0 commit comments

Comments
 (0)