@iobroker/repochecker 5.19.7 → 5.19.8

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
@@ -25,6 +25,10 @@ Example:
25
25
  Placeholder for the next version (at the beginning of the line):
26
26
  ### **WORK IN PROGRESS**
27
27
  -->
28
+ ### 5.19.8 (2026-07-04)
29
+
30
+ - (mcm1957) more check for package.json lifecycle scripts
31
+
28
32
  ### 5.19.7 (2026-07-04)
29
33
 
30
34
  - (mcm1957) workflow logs have been fixed
@@ -924,9 +924,12 @@ async function checkPackageJson(context) {
924
924
  context.checks.push('"lint" script found in package.json');
925
925
  }
926
926
  if (context.packageJson.scripts && typeof context.packageJson.scripts === 'object') {
927
- if (Object.prototype.hasOwnProperty.call(context.packageJson.scripts, 'preinstall')) {
927
+ const warningInstallScripts = ['prepare', 'preinstall'].filter(scriptName =>
928
+ Object.prototype.hasOwnProperty.call(context.packageJson.scripts, scriptName),
929
+ );
930
+ if (warningInstallScripts.length) {
928
931
  context.warnings.push(
929
- '[W0092] "preinstall" script found in package.json. Usage of npm install lifecycle scripts should be avoided.',
932
+ `[W0092] Script(s) ${warningInstallScripts.map(scriptName => `"${scriptName}"`).join(', ')} found in package.json. Usage of npm install lifecycle scripts should be avoided.`,
930
933
  );
931
934
  }
932
935
 
@@ -54,6 +54,7 @@ const mapSeverity4New = {
54
54
  W0063: 'E', // [W0063] "@types/mocha, mocha, @types/sinon, sinon"
55
55
  W0028: 'E', // [W0028] Minimum node.js version 22 recommended.
56
56
  W0040: 'E', // [W0040] "keywords" within package.json should contain "ioBroker"
57
+ W0092: 'E', // [W0092] Script(s) "prepare" found in package.json. Usage of npm install lifecycle scripts should be avoided.
57
58
  W1027: 'E', // [W1027] Missing suggested translation into ru,pt,nl,fr,it,es,pl,uk,zh-cn of "common.titleLang"
58
59
  W1032: 'E', // [W1032] Many "common.news" found in io-package.json
59
60
  W1034: 'E', // [W1034] Missing suggested translation into ru,pt,nl,fr,it,es,pl,uk,zh-cn of "common.desc"
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.19.7",
2
+ "version": "5.19.8",
3
3
  "name": "@iobroker/repochecker",
4
4
  "dependencies": {
5
5
  "ajv": "^8.20.0",