check-node-engine 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cmd.js +2 -3
- package/lib/cjs/types/node.d.ts +2 -2
- package/package.json +9 -9
package/bin/cmd.js
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
// natives
|
|
6
6
|
const { join } = require("node:path");
|
|
7
|
-
const { EOL } = require("node:os");
|
|
8
7
|
|
|
9
8
|
// externals
|
|
10
9
|
|
|
@@ -12,7 +11,7 @@
|
|
|
12
11
|
try { // test require optional deps
|
|
13
12
|
colors = require("colors/safe");
|
|
14
13
|
}
|
|
15
|
-
catch
|
|
14
|
+
catch {
|
|
16
15
|
// nothing to do here
|
|
17
16
|
}
|
|
18
17
|
|
|
@@ -50,7 +49,7 @@ else {
|
|
|
50
49
|
|
|
51
50
|
checker(PACKAGE).then(() => {
|
|
52
51
|
|
|
53
|
-
console.log(colors && colors.green ? colors.green("Package node engine is up to date") : "Package node engine is up to date");
|
|
52
|
+
(0, console).log(colors && colors.green ? colors.green("Package node engine is up to date") : "Package node engine is up to date");
|
|
54
53
|
|
|
55
54
|
(0, process).exitCode = 0;
|
|
56
55
|
(0, process).exit(0);
|
package/lib/cjs/types/node.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
|
|
3
3
|
"name": "check-node-engine",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.1",
|
|
5
5
|
"description": "Compare the required node engine to the last older LTS node version.",
|
|
6
6
|
|
|
7
7
|
"type": "commonjs",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"check-node-engine": "node ./bin/cmd.js",
|
|
34
34
|
"check-requires": "npx used-deps-analyzer \"./package.json\" \"./lib/src\" --no-dev --misscalled \"{ \\\"module\\\": \\\"colors\\\", \\\"call\\\": \\\"colors/safe\\\" }\"",
|
|
35
35
|
"check-updates": "npx check-version-modules --no-fail-at-major --fail-at-minor --fail-at-patch",
|
|
36
|
-
"unit-tests": "npx mocha",
|
|
37
|
-
"unit-tests-local": "
|
|
36
|
+
"unit-tests": "npx c8 --reporter=text-summary --all --include \"lib/src/**/*.ts\" --include \"lib/src/**/*.cts\" --extension .ts --extension .cts --check-coverage --statements 95 --branches 95 --functions 95 --lines 95 mocha --require ./test/register.js",
|
|
37
|
+
"unit-tests-local": "npx c8 --reporter=html --reporter=text --all --include \"lib/src/**/*.ts\" --include \"lib/src/**/*.cts\" --extension .ts --extension .cts mocha --require ./test/register.js",
|
|
38
38
|
|
|
39
|
-
"tests": "npm run lint && npm run check-node-engine && npm run check-requires && npm run check-updates && npm run build && npm run unit-tests
|
|
39
|
+
"tests": "npm run lint && npm run check-node-engine && npm run check-requires && npm run check-updates && npm run build && npm run unit-tests"
|
|
40
40
|
|
|
41
41
|
},
|
|
42
42
|
|
|
@@ -48,22 +48,22 @@
|
|
|
48
48
|
"lib/cjs"
|
|
49
49
|
],
|
|
50
50
|
"engines": {
|
|
51
|
-
"node": ">=22.23.
|
|
51
|
+
"node": ">=22.23.4"
|
|
52
52
|
},
|
|
53
53
|
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"semver": "7.8.5"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@types/node": "26.
|
|
58
|
+
"@types/node": "26.6.5",
|
|
59
59
|
"@types/semver": "7.8.0",
|
|
60
|
+
"c8": "12.0.0",
|
|
60
61
|
"check-version-modules": "2.5.0",
|
|
61
62
|
"eslint-plugin-personnallinter": "git+ssh://git@github.com/Psychopoulet/eslint-plugin-personnallinter",
|
|
62
63
|
"husky": "9.1.7",
|
|
63
|
-
"mocha": "
|
|
64
|
-
"nyc": "18.0.0",
|
|
64
|
+
"mocha": "12.0.3",
|
|
65
65
|
"rimraf": "6.1.3",
|
|
66
|
-
"typescript": "
|
|
66
|
+
"typescript": "6.0.3",
|
|
67
67
|
"used-deps-analyzer": "0.4.0"
|
|
68
68
|
},
|
|
69
69
|
"optionalDependencies": {
|