@iobroker/repochecker 4.0.0-alpha.1 → 4.0.0-alpha.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 +1 -1
- package/lib/M900_GitNpmIgnore.js +9 -9
- package/package.json +1 -1
package/README.md
CHANGED
package/lib/M900_GitNpmIgnore.js
CHANGED
|
@@ -65,7 +65,7 @@ async function checkGitIgnore(context) {
|
|
|
65
65
|
|
|
66
66
|
if (!tooComplexToCheck) {
|
|
67
67
|
checkFiles.forEach(file => {
|
|
68
|
-
if (context.filesList.includes(file)) {
|
|
68
|
+
if (context.filesList.includes(`/${file}`)) {
|
|
69
69
|
// maybe it is with regex
|
|
70
70
|
const check = rules.some(rule => {
|
|
71
71
|
if (typeof rule === 'string') {
|
|
@@ -88,13 +88,13 @@ async function checkGitIgnore(context) {
|
|
|
88
88
|
async function checkNpmIgnore(context) {
|
|
89
89
|
console.log('\n[E950 - E989] checkNpmIgnore');
|
|
90
90
|
const checkFiles = [
|
|
91
|
-
'
|
|
92
|
-
'
|
|
93
|
-
'
|
|
94
|
-
'
|
|
95
|
-
'
|
|
96
|
-
'
|
|
97
|
-
'
|
|
91
|
+
'node_modules/',
|
|
92
|
+
'test/',
|
|
93
|
+
'src/',
|
|
94
|
+
'appveyor.yml',
|
|
95
|
+
'.travis.yml',
|
|
96
|
+
'tsconfig.json',
|
|
97
|
+
'tsconfig.build.json',
|
|
98
98
|
// 'iob_npm.done',
|
|
99
99
|
// '.git/',
|
|
100
100
|
// '.github/',
|
|
@@ -164,7 +164,7 @@ async function checkNpmIgnore(context) {
|
|
|
164
164
|
// }
|
|
165
165
|
|
|
166
166
|
checkFiles.forEach((file, i) => {
|
|
167
|
-
if (context.filesList.includes(file)) {
|
|
167
|
+
if (context.filesList.includes(`/${file}`)) {
|
|
168
168
|
// maybe it is with regex
|
|
169
169
|
const check = rules.some(rule => {
|
|
170
170
|
if (typeof rule === 'string') {
|
package/package.json
CHANGED