@iobroker/repochecker 3.0.1 → 3.0.3
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 -1
- package/lib/M250_Npm.js +2 -0
- package/lib/M900_GitNpmIgnore.js +23 -23
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,7 +20,10 @@ Branch (`master/main/dev`) is optional.
|
|
|
20
20
|
-->
|
|
21
21
|
|
|
22
22
|
## Changelog
|
|
23
|
-
### 3.0.
|
|
23
|
+
### 3.0.3 (2024-09-12)
|
|
24
|
+
* (mcm1957) Check for iob_npm.done at .npmignore has been removed [#294]
|
|
25
|
+
|
|
26
|
+
### 3.0.2 (2024-09-11)
|
|
24
27
|
* (mcm1957) Handling of missing LICENSE file corrected. [#282]
|
|
25
28
|
* (mcm1957) [W126] Missing mandatory translation is error now. [#293]
|
|
26
29
|
* (mcm1957) Record repochcker version used for tests.
|
package/lib/M250_Npm.js
CHANGED
package/lib/M900_GitNpmIgnore.js
CHANGED
|
@@ -80,7 +80,7 @@ async function checkGitIgnore(context) {
|
|
|
80
80
|
return context;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
// 950 -
|
|
83
|
+
// 950 - 989
|
|
84
84
|
async function checkNpmIgnore(context) {
|
|
85
85
|
const checkFiles = [
|
|
86
86
|
'node_modules/',
|
|
@@ -90,23 +90,23 @@ async function checkNpmIgnore(context) {
|
|
|
90
90
|
'.travis.yml',
|
|
91
91
|
'tsconfig.json',
|
|
92
92
|
'tsconfig.build.json',
|
|
93
|
-
'iob_npm.done',
|
|
94
|
-
//
|
|
95
|
-
//
|
|
96
|
-
//
|
|
97
|
-
//
|
|
98
|
-
//
|
|
99
|
-
//
|
|
100
|
-
//
|
|
101
|
-
//
|
|
102
|
-
//
|
|
103
|
-
//
|
|
104
|
-
//
|
|
105
|
-
//
|
|
106
|
-
//
|
|
107
|
-
//
|
|
108
|
-
//
|
|
109
|
-
//
|
|
93
|
+
// 'iob_npm.done',
|
|
94
|
+
// '.git/',
|
|
95
|
+
// '.github/',
|
|
96
|
+
// '.idea/',
|
|
97
|
+
// '.gitignore',
|
|
98
|
+
// '.npmignore',
|
|
99
|
+
// '.travis.yml',
|
|
100
|
+
// '.babelrc',
|
|
101
|
+
// '.editorconfig',
|
|
102
|
+
// '.eslintignore',
|
|
103
|
+
// '.eslintrc.js',
|
|
104
|
+
// '.fimbullinter.yaml',
|
|
105
|
+
// '.lgtm.yml',
|
|
106
|
+
// '.prettierignore',
|
|
107
|
+
// '.prettierignore',
|
|
108
|
+
// '.prettierrc.js',
|
|
109
|
+
// '.vscode/',
|
|
110
110
|
];
|
|
111
111
|
|
|
112
112
|
// https://raw.githubusercontent.com/userName/ioBroker.adaptername/${context.branch}/.npmignore
|
|
@@ -117,7 +117,7 @@ async function checkNpmIgnore(context) {
|
|
|
117
117
|
} else {
|
|
118
118
|
context.checks.push('package.json "files" already used.');
|
|
119
119
|
}
|
|
120
|
-
return
|
|
120
|
+
return context;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
// package.json files section is NOT used
|
|
@@ -147,9 +147,9 @@ async function checkNpmIgnore(context) {
|
|
|
147
147
|
!check && context.errors.push(`[E954] node_modules not found in `.npmignore``);
|
|
148
148
|
}*/
|
|
149
149
|
if (!tooComplexToCheck) {
|
|
150
|
-
if (!rules.includes('iob_npm.done') && !rules.includes('/iob_npm.done')) {
|
|
151
|
-
|
|
152
|
-
}
|
|
150
|
+
// if (!rules.includes('iob_npm.done') && !rules.includes('/iob_npm.done')) {
|
|
151
|
+
// /*!check &&*/ context.errors.push(`[E955] iob_npm.done not found in .npmignore`);
|
|
152
|
+
// }
|
|
153
153
|
|
|
154
154
|
checkFiles.forEach((file, i) => {
|
|
155
155
|
if (context.filesList.includes(file)) {
|
|
@@ -185,4 +185,4 @@ exports.checkNpmIgnore = checkNpmIgnore;
|
|
|
185
185
|
// [952] .npmignore not found
|
|
186
186
|
// [953] .npmignore found - consider using package.json object "files" instead.
|
|
187
187
|
// [954] node_modules not found in `.npmignore`
|
|
188
|
-
// [955] iob_npm.done not found in .npmignore`
|
|
188
|
+
// [955] iob_npm.done not found in .npmignore` ### removed ###
|
package/package.json
CHANGED