check-node-engine 1.2.0 → 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 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/ && npx check-node-engine
38
- $ cd ./myProject/ && npx check-node-engine --get-lts
39
- $ cd ./myProject/ && npx check-node-engine --package-file "./package.json"
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
- $ npm run tests
81
+ $ bun run tests
82
82
  ```
83
83
 
84
84
  ## License
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 (e) {
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);
@@ -1,4 +1,4 @@
1
- export type Release = {
1
+ export interface Release {
2
2
  "version": string;
3
3
  "date": string;
4
4
  "lts": boolean;
@@ -10,4 +10,4 @@ export type Release = {
10
10
  "openssl": string;
11
11
  "modules": string;
12
12
  "security": boolean;
13
- };
13
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
 
3
3
  "name": "check-node-engine",
4
- "version": "1.2.0",
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
- "lint-bin": "npx eslint --config .eslintrc-bin.js --ext .js,.cjs,.mjs ./bin/**/*",
23
- "lint-back": "npx eslint --config .eslintrc-back.js --ext .ts,.cts,.mts ./lib/src/**/*",
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
- "clean-back": "npx rimraf ./lib/cjs",
28
- "clean": "npm run clean-back",
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
- "build-back": "npm run clean-back && npx tsc --project ./tsconfig.json",
31
- "build": "npm run build-back",
30
+ "clean-back": "bunx rimraf ./lib/cjs",
31
+ "clean": "bun run clean-back",
32
32
 
33
- "check-node-engine": "node ./bin/cmd.js",
34
- "check-requires": "npx used-deps-analyzer \"./package.json\" \"./lib/src\" --no-dev --misscalled \"{ \\\"module\\\": \\\"colors\\\", \\\"call\\\": \\\"colors/safe\\\" }\"",
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": "npm run build && npx nyc --reporter=html --reporter=text mocha",
33
+ "build-back": "bun run clean-back && bunx tsc --project ./tsconfig.json",
34
+ "build": "bun run build-back",
38
35
 
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-local"
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.23.2"
55
+ "node": ">=24.22.3",
56
+ "bun": ">=1.4.5"
52
57
  },
53
58
 
54
59
  "dependencies": {
55
- "semver": "7.8.5"
60
+ "semver": "7.8.6"
56
61
  },
57
62
  "devDependencies": {
58
- "@types/node": "26.2.0",
63
+ "@types/node": "26.6.11",
59
64
  "@types/semver": "7.8.0",
60
- "check-version-modules": "2.5.0",
65
+ "check-version-modules": "2.5.2",
61
66
  "eslint-plugin-personnallinter": "git+ssh://git@github.com/Psychopoulet/eslint-plugin-personnallinter",
62
67
  "husky": "9.1.7",
63
- "mocha": "11.8.0",
64
- "nyc": "18.0.0",
65
- "rimraf": "6.1.3",
66
- "typescript": "5.9.3",
67
- "used-deps-analyzer": "0.4.0"
68
+ "rimraf": "6.1.4",
69
+ "typescript": "6.0.3",
70
+ "used-deps-analyzer": "0.4.1"
68
71
  },
69
72
  "optionalDependencies": {
70
73
  "colors": "1.4.0"