@d-zero/cz-config 5.0.0-alpha.73 → 5.0.0-alpha.75
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/monorepo-scopes.js +22 -10
- package/package.json +2 -2
package/monorepo-scopes.js
CHANGED
|
@@ -14,14 +14,26 @@ module.exports = function (removes) {
|
|
|
14
14
|
}
|
|
15
15
|
const lerna = JSON.parse(fs.readFileSync(lernaPath, 'utf8'));
|
|
16
16
|
const packages = fs.globSync(lerna.packages);
|
|
17
|
-
return packages
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
17
|
+
return packages
|
|
18
|
+
.map((packagePath) => {
|
|
19
|
+
let packageJson = null;
|
|
20
|
+
try {
|
|
21
|
+
packageJson = fs.readFileSync(
|
|
22
|
+
path.resolve(cwd, packagePath, 'package.json'),
|
|
23
|
+
'utf8',
|
|
24
|
+
);
|
|
25
|
+
} catch {
|
|
26
|
+
//
|
|
27
|
+
}
|
|
28
|
+
if (!packageJson) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
const pkg = JSON.parse(packageJson);
|
|
32
|
+
let name = pkg.name;
|
|
33
|
+
for (const remove of removes) {
|
|
34
|
+
name = name.replace(remove, '');
|
|
35
|
+
}
|
|
36
|
+
return name;
|
|
37
|
+
})
|
|
38
|
+
.filter((name) => name !== null);
|
|
27
39
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d-zero/cz-config",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.75",
|
|
4
4
|
"description": "Configurations of cz-customizable",
|
|
5
5
|
"repository": "https://github.com/d-zero-dev/linters.git",
|
|
6
6
|
"author": "D-ZERO Co., Ltd.",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"commitizen": "4.3.1",
|
|
25
25
|
"cz-customizable": "7.5.1"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "736d3b0a9e0b37ef8987c9bb478925f464fc917c"
|
|
28
28
|
}
|