@lzear/repo-lint 0.0.1 → 4.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/dist/bin.js +3 -11
- package/dist/index.js +2 -10
- package/package.json +3 -3
package/dist/bin.js
CHANGED
|
@@ -76,10 +76,8 @@ var eachPublishedPkg = async (dir, fn) => {
|
|
|
76
76
|
);
|
|
77
77
|
const failures = results.filter((r) => !r.pass);
|
|
78
78
|
if (failures.length === 0) return { pass: true };
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
detail: failures.flatMap((r) => r.detail ? [r.detail] : []).join("\n") || void 0
|
|
82
|
-
};
|
|
79
|
+
const detail = failures.flatMap((r) => r.detail ? [r.detail] : []).join("\n");
|
|
80
|
+
return { pass: false, ...detail && { detail } };
|
|
83
81
|
}
|
|
84
82
|
return fn(dir);
|
|
85
83
|
};
|
|
@@ -94,12 +92,6 @@ var LOCAL_CHECKS = [
|
|
|
94
92
|
type: "local",
|
|
95
93
|
check: (dir) => existsSync(path.join(dir, "README.md"))
|
|
96
94
|
},
|
|
97
|
-
{
|
|
98
|
-
id: "readme-ci-badge",
|
|
99
|
-
desc: "README has CI badge",
|
|
100
|
-
type: "local",
|
|
101
|
-
check: (dir) => readmeIncludes(dir, "workflows/ci.yml/badge.svg")
|
|
102
|
-
},
|
|
103
95
|
{
|
|
104
96
|
id: "readme-codacy-grade-badge",
|
|
105
97
|
desc: "README has Codacy grade badge",
|
|
@@ -369,7 +361,7 @@ var main = async () => {
|
|
|
369
361
|
\u2500\u2500 ${repo}`);
|
|
370
362
|
try {
|
|
371
363
|
const result = await checkRepo(repo, {
|
|
372
|
-
token: values.token,
|
|
364
|
+
...values.token !== void 0 && { token: values.token },
|
|
373
365
|
baseDir: values.dir,
|
|
374
366
|
skipRemote: values["skip-remote"]
|
|
375
367
|
});
|
package/dist/index.js
CHANGED
|
@@ -69,10 +69,8 @@ var eachPublishedPkg = async (dir, fn) => {
|
|
|
69
69
|
);
|
|
70
70
|
const failures = results.filter((r) => !r.pass);
|
|
71
71
|
if (failures.length === 0) return { pass: true };
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
detail: failures.flatMap((r) => r.detail ? [r.detail] : []).join("\n") || void 0
|
|
75
|
-
};
|
|
72
|
+
const detail = failures.flatMap((r) => r.detail ? [r.detail] : []).join("\n");
|
|
73
|
+
return { pass: false, ...detail && { detail } };
|
|
76
74
|
}
|
|
77
75
|
return fn(dir);
|
|
78
76
|
};
|
|
@@ -87,12 +85,6 @@ var LOCAL_CHECKS = [
|
|
|
87
85
|
type: "local",
|
|
88
86
|
check: (dir) => existsSync(path.join(dir, "README.md"))
|
|
89
87
|
},
|
|
90
|
-
{
|
|
91
|
-
id: "readme-ci-badge",
|
|
92
|
-
desc: "README has CI badge",
|
|
93
|
-
type: "local",
|
|
94
|
-
check: (dir) => readmeIncludes(dir, "workflows/ci.yml/badge.svg")
|
|
95
|
-
},
|
|
96
88
|
{
|
|
97
89
|
id: "readme-codacy-grade-badge",
|
|
98
90
|
desc: "README has Codacy grade badge",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lzear/repo-lint",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"description": "Checks lzear repos against forge standards",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"publint": "^0.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@lzear/configs": "
|
|
38
|
+
"@lzear/configs": "4.0.3",
|
|
39
39
|
"@types/node": "^25",
|
|
40
40
|
"@vitest/coverage-v8": "^4",
|
|
41
41
|
"tsup": "^8",
|
|
@@ -48,4 +48,4 @@
|
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public"
|
|
50
50
|
}
|
|
51
|
-
}
|
|
51
|
+
}
|