check-node-engine 1.2.1 → 1.2.2
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/README.md +4 -4
- package/package.json +26 -23
package/README.md
CHANGED
|
@@ -34,9 +34,9 @@ Compare the required node engine to the last older LTS node version.
|
|
|
34
34
|
### Command line
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
|
-
$ cd ./myProject/ &&
|
|
38
|
-
$ cd ./myProject/ &&
|
|
39
|
-
$ cd ./myProject/ &&
|
|
37
|
+
$ cd ./myProject/ && bunx check-node-engine
|
|
38
|
+
$ cd ./myProject/ && bunx check-node-engine --get-lts
|
|
39
|
+
$ cd ./myProject/ && bunx check-node-engine --package-file "./package.json"
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
### Native
|
|
@@ -78,7 +78,7 @@ checker("./package.json").then(() => {
|
|
|
78
78
|
## Tests
|
|
79
79
|
|
|
80
80
|
```bash
|
|
81
|
-
$
|
|
81
|
+
$ bun run tests
|
|
82
82
|
```
|
|
83
83
|
|
|
84
84
|
## License
|
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.2",
|
|
5
5
|
"description": "Compare the required node engine to the last older LTS node version.",
|
|
6
6
|
|
|
7
7
|
"type": "commonjs",
|
|
@@ -19,24 +19,27 @@
|
|
|
19
19
|
|
|
20
20
|
"scripts": {
|
|
21
21
|
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"lint-tests": "npx eslint --config .eslintrc-tests.js --ext .js,.cjs,.mjs ./test/**/*",
|
|
25
|
-
"lint": "npm run lint-bin && npm run build && npm run lint-back && npm run lint-tests",
|
|
22
|
+
"install-prod": "bun install --production",
|
|
23
|
+
"install-dev": "bun install && bunx husky",
|
|
26
24
|
|
|
27
|
-
"
|
|
28
|
-
"
|
|
25
|
+
"lint-bin": "bunx eslint --config .eslintrc-bin.js --ext .js,.cjs,.mjs \"./bin/**/*\"",
|
|
26
|
+
"lint-back": "bunx eslint --config .eslintrc-back.js --ext .ts,.cts,.mts \"./lib/src/**/*\"",
|
|
27
|
+
"lint-tests": "bunx eslint --config .eslintrc-tests.js --ext .js,.cjs,.mjs \"./test/**/*\"",
|
|
28
|
+
"lint": "bun run lint-bin && bun run build && bun run lint-back && bun run lint-tests",
|
|
29
29
|
|
|
30
|
-
"
|
|
31
|
-
"
|
|
30
|
+
"clean-back": "bunx rimraf ./lib/cjs",
|
|
31
|
+
"clean": "bun run clean-back",
|
|
32
32
|
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"check-updates": "npx check-version-modules --no-fail-at-major --fail-at-minor --fail-at-patch",
|
|
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",
|
|
33
|
+
"build-back": "bun run clean-back && bunx tsc --project ./tsconfig.json",
|
|
34
|
+
"build": "bun run build-back",
|
|
38
35
|
|
|
39
|
-
"
|
|
36
|
+
"check-node-engine": "bun ./bin/cmd.js",
|
|
37
|
+
"check-requires": "bunx used-deps-analyzer \"./package.json\" \"./lib/src\" --no-dev --misscalled \"{ \\\"module\\\": \\\"colors\\\", \\\"call\\\": \\\"colors/safe\\\" }\"",
|
|
38
|
+
"check-updates": "bunx check-version-modules --no-fail-at-major --fail-at-minor --fail-at-patch",
|
|
39
|
+
"unit-tests": "bun test --conditions=require --coverage",
|
|
40
|
+
"unit-tests-local": "bun test --conditions=require --coverage --coverage-reporter=text",
|
|
41
|
+
|
|
42
|
+
"tests": "bun run lint && bun run check-node-engine && bun run check-requires && bun run check-updates && bun run build && bun run unit-tests"
|
|
40
43
|
|
|
41
44
|
},
|
|
42
45
|
|
|
@@ -47,24 +50,24 @@
|
|
|
47
50
|
"bin",
|
|
48
51
|
"lib/cjs"
|
|
49
52
|
],
|
|
53
|
+
"packageManager": "bun@1.4.5",
|
|
50
54
|
"engines": {
|
|
51
|
-
"node": ">=22.
|
|
55
|
+
"node": ">=24.22.3",
|
|
56
|
+
"bun": ">=1.4.5"
|
|
52
57
|
},
|
|
53
58
|
|
|
54
59
|
"dependencies": {
|
|
55
|
-
"semver": "7.8.
|
|
60
|
+
"semver": "7.8.6"
|
|
56
61
|
},
|
|
57
62
|
"devDependencies": {
|
|
58
|
-
"@types/node": "26.6.
|
|
63
|
+
"@types/node": "26.6.11",
|
|
59
64
|
"@types/semver": "7.8.0",
|
|
60
|
-
"
|
|
61
|
-
"check-version-modules": "2.5.0",
|
|
65
|
+
"check-version-modules": "2.5.2",
|
|
62
66
|
"eslint-plugin-personnallinter": "git+ssh://git@github.com/Psychopoulet/eslint-plugin-personnallinter",
|
|
63
67
|
"husky": "9.1.7",
|
|
64
|
-
"
|
|
65
|
-
"rimraf": "6.1.3",
|
|
68
|
+
"rimraf": "6.1.4",
|
|
66
69
|
"typescript": "6.0.3",
|
|
67
|
-
"used-deps-analyzer": "0.4.
|
|
70
|
+
"used-deps-analyzer": "0.4.1"
|
|
68
71
|
},
|
|
69
72
|
"optionalDependencies": {
|
|
70
73
|
"colors": "1.4.0"
|