@iobroker/repochecker 5.22.12 → 5.22.14
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 +7 -0
- package/lib/M2000_Npm.js +4 -4
- package/lib/M5000_Code.js +16 -0
- package/lib/M9000_GitNpmIgnore.js +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -56,6 +56,13 @@ GITHUB_TOKEN=ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
|
56
56
|
Placeholder for the next version (at the beginning of the line):
|
|
57
57
|
### **WORK IN PROGRESS**
|
|
58
58
|
-->
|
|
59
|
+
### 5.22.14 (2026-10-12)
|
|
60
|
+
* (mcm1957) E2004 (news version not on NPM) downgraded to W2004 with updated message
|
|
61
|
+
|
|
62
|
+
### 5.22.13 (2026-10-12)
|
|
63
|
+
* (mcm1957) src-chart and src-preview added to source directories excluded from E9507 (missing i18n files) check
|
|
64
|
+
* (mcm1957) tasks*.js/mjs/cjs/ts files at repo root that import @iobroker/build-tools are now treated like tasks.js and excluded from code checks
|
|
65
|
+
|
|
59
66
|
### 5.22.12 (2026-10-12)
|
|
60
67
|
|
|
61
68
|
* (mcm1957) E5507 (missing size attributes in jsonConfig) downgraded to W5507 for existing adapters; stays an error only for new adapters
|
package/lib/M2000_Npm.js
CHANGED
|
@@ -179,12 +179,12 @@ async function checkNpm(context) {
|
|
|
179
179
|
}
|
|
180
180
|
if (missingVersions.length) {
|
|
181
181
|
if (missingVersions.length === 1) {
|
|
182
|
-
context.
|
|
183
|
-
`[
|
|
182
|
+
context.warnings.push(
|
|
183
|
+
`[W2004] Version "${missingVersions.join(', ')}" listed at common.news at io-package.json does not exist at NPM and will be ignored at repository listing. Please remove from news section.`,
|
|
184
184
|
);
|
|
185
185
|
} else {
|
|
186
|
-
context.
|
|
187
|
-
`[
|
|
186
|
+
context.warnings.push(
|
|
187
|
+
`[W2004] Versions "${missingVersions.join(', ')}" listed at common.news at io-package.json do not exist at NPM and will be ignored at repository listing. Please remove from news section.`,
|
|
188
188
|
);
|
|
189
189
|
}
|
|
190
190
|
} else {
|
package/lib/M5000_Code.js
CHANGED
|
@@ -1804,6 +1804,22 @@ async function checkCode(context) {
|
|
|
1804
1804
|
// lib/tools.* is normally excluded, but if another source file imports (requires) it,
|
|
1805
1805
|
// it must be scanned like any other source file.
|
|
1806
1806
|
const excludedSourceRelPaths = new Set();
|
|
1807
|
+
|
|
1808
|
+
// tasks*.js/mjs/cjs at repo root that use @iobroker/build-tools are build scripts
|
|
1809
|
+
// (e.g. tasks-admin.js, tasks-build.mjs) — treat them like tasks.js and skip scanning.
|
|
1810
|
+
for (const fileName of Object.keys(context)) {
|
|
1811
|
+
if (!fileName.startsWith('/') || typeof context[fileName] !== 'string') {
|
|
1812
|
+
continue;
|
|
1813
|
+
}
|
|
1814
|
+
const baseName = fileName.slice(1); // strip leading slash
|
|
1815
|
+
// Only match root-level files (no directory separator)
|
|
1816
|
+
if (baseName.includes('/')) {
|
|
1817
|
+
continue;
|
|
1818
|
+
}
|
|
1819
|
+
if (/^tasks.+\.(js|mjs|cjs|ts)$/.test(baseName) && context[fileName].includes('@iobroker/build-tools')) {
|
|
1820
|
+
excludedSourceRelPaths.add(baseName);
|
|
1821
|
+
}
|
|
1822
|
+
}
|
|
1807
1823
|
const toolsRelPaths = ['lib/tools.js', 'lib/tools.mjs', 'lib/tools.cjs'];
|
|
1808
1824
|
for (const toolsRelPath of toolsRelPaths) {
|
|
1809
1825
|
let isImported = false;
|
package/package.json
CHANGED