@lzear/repo-lint 4.1.2 → 4.2.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/dist/bin.js +3 -4
- package/dist/index.js +3 -4
- package/package.json +5 -4
- package/CHANGELOG.md +0 -13
package/dist/bin.js
CHANGED
|
@@ -49,9 +49,8 @@ var getWorkspaceDirs = (rootDir) => {
|
|
|
49
49
|
for (const pattern of getWorkspacePatterns(pkg)) {
|
|
50
50
|
const base = patternToBase(rootDir, pattern);
|
|
51
51
|
if (!base || !existsSync(base)) continue;
|
|
52
|
-
for (const entry of readdirSync(base, { withFileTypes: true }))
|
|
52
|
+
for (const entry of readdirSync(base, { withFileTypes: true }))
|
|
53
53
|
if (entry.isDirectory()) dirs.push(path.join(base, entry.name));
|
|
54
|
-
}
|
|
55
54
|
}
|
|
56
55
|
return dirs;
|
|
57
56
|
};
|
|
@@ -309,9 +308,9 @@ var checkRepo = async (repo, options = {}) => {
|
|
|
309
308
|
skipRemote = false
|
|
310
309
|
} = options;
|
|
311
310
|
const dir = path2.join(baseDir, repo.replace("/", "__"));
|
|
312
|
-
if (existsSync2(dir))
|
|
311
|
+
if (existsSync2(dir))
|
|
313
312
|
execSync(`git -C ${dir} pull --quiet`, { stdio: "ignore" });
|
|
314
|
-
|
|
313
|
+
else {
|
|
315
314
|
const url = token ? `https://${token}@github.com/${repo}.git` : `https://github.com/${repo}.git`;
|
|
316
315
|
execSync(`git clone --depth 1 --quiet ${url} ${dir}`, { stdio: "ignore" });
|
|
317
316
|
}
|
package/dist/index.js
CHANGED
|
@@ -42,9 +42,8 @@ var getWorkspaceDirs = (rootDir) => {
|
|
|
42
42
|
for (const pattern of getWorkspacePatterns(pkg)) {
|
|
43
43
|
const base = patternToBase(rootDir, pattern);
|
|
44
44
|
if (!base || !existsSync(base)) continue;
|
|
45
|
-
for (const entry of readdirSync(base, { withFileTypes: true }))
|
|
45
|
+
for (const entry of readdirSync(base, { withFileTypes: true }))
|
|
46
46
|
if (entry.isDirectory()) dirs.push(path.join(base, entry.name));
|
|
47
|
-
}
|
|
48
47
|
}
|
|
49
48
|
return dirs;
|
|
50
49
|
};
|
|
@@ -302,9 +301,9 @@ var checkRepo = async (repo, options = {}) => {
|
|
|
302
301
|
skipRemote = false
|
|
303
302
|
} = options;
|
|
304
303
|
const dir = path2.join(baseDir, repo.replace("/", "__"));
|
|
305
|
-
if (existsSync2(dir))
|
|
304
|
+
if (existsSync2(dir))
|
|
306
305
|
execSync(`git -C ${dir} pull --quiet`, { stdio: "ignore" });
|
|
307
|
-
|
|
306
|
+
else {
|
|
308
307
|
const url = token ? `https://${token}@github.com/${repo}.git` : `https://github.com/${repo}.git`;
|
|
309
308
|
execSync(`git clone --depth 1 --quiet ${url} ${dir}`, { stdio: "ignore" });
|
|
310
309
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lzear/repo-lint",
|
|
3
|
-
"version": "4.1
|
|
3
|
+
"version": "4.2.1",
|
|
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": "4.1
|
|
38
|
+
"@lzear/configs": "4.2.1",
|
|
39
39
|
"@types/node": "^25",
|
|
40
40
|
"@vitest/coverage-v8": "^4",
|
|
41
41
|
"tsup": "^8",
|
|
@@ -43,9 +43,10 @@
|
|
|
43
43
|
"vitest": "^4"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
46
|
-
"node": ">=
|
|
46
|
+
"node": ">=24"
|
|
47
47
|
},
|
|
48
48
|
"publishConfig": {
|
|
49
|
-
"access": "public"
|
|
49
|
+
"access": "public",
|
|
50
|
+
"provenance": true
|
|
50
51
|
}
|
|
51
52
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# @lzear/repo-lint
|
|
2
|
-
|
|
3
|
-
## 4.1.2
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- [`76b2ce3`](https://github.com/lzear/forge/commit/76b2ce3af6e002ae7884eec50979ce8a5d5d7e3e) Thanks [@lzear](https://github.com/lzear)! - Fix publish script
|
|
8
|
-
|
|
9
|
-
## 4.1.1
|
|
10
|
-
|
|
11
|
-
### Patch Changes
|
|
12
|
-
|
|
13
|
-
- [`9a15611`](https://github.com/lzear/forge/commit/9a15611452c9985033183216c717aa08efba5d1e) Thanks [@lzear](https://github.com/lzear)! - Minor updates. Add @stylistic/eslint-plugin, expect less from repo-lint, ...
|