@iobroker/repochecker 4.0.0-alpha.0 → 4.0.0-alpha.1
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
|
@@ -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
|
-
'node_modules/',
|
|
92
|
-
'test/',
|
|
93
|
-
'src/',
|
|
94
|
-
'appveyor.yml',
|
|
95
|
-
'
|
|
96
|
-
'tsconfig.json',
|
|
97
|
-
'tsconfig.build.json',
|
|
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/',
|
|
@@ -116,7 +116,7 @@ async function checkNpmIgnore(context) {
|
|
|
116
116
|
|
|
117
117
|
// https://raw.githubusercontent.com/userName/ioBroker.adaptername/${context.branch}/.npmignore
|
|
118
118
|
if (context.packageJson.files && context.packageJson.files.length) {
|
|
119
|
-
if (context.filesList.includes('
|
|
119
|
+
if (context.filesList.includes('/.npmignore')) {
|
|
120
120
|
context.warnings.push(
|
|
121
121
|
`[W951] .npmignore found but "files" is used at package.json. Please remove .npmignore.`,
|
|
122
122
|
);
|
|
@@ -127,7 +127,7 @@ async function checkNpmIgnore(context) {
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
// package.json files section is NOT used
|
|
130
|
-
if (!context.filesList.includes('
|
|
130
|
+
if (!context.filesList.includes('/.npmignore')) {
|
|
131
131
|
context.errors.push(
|
|
132
132
|
`[E952] neither files section at package.json nor file .npmignore not found. npm package will contain unwanted files.`,
|
|
133
133
|
);
|
package/package.json
CHANGED