@d-zero/cz-config 5.0.0-alpha.74 → 5.0.0-alpha.76

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.
Files changed (2) hide show
  1. package/monorepo-scopes.js +22 -10
  2. package/package.json +2 -2
@@ -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.map((packagePath) => {
18
- const pkg = JSON.parse(
19
- fs.readFileSync(path.resolve(cwd, packagePath, 'package.json'), 'utf8'),
20
- );
21
- let name = pkg.name;
22
- for (const remove of removes) {
23
- name = name.replace(remove, '');
24
- }
25
- return name;
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.74",
3
+ "version": "5.0.0-alpha.76",
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": "d7cda25cdb3d897fb6a33b1e37f1179c2faf40ad"
27
+ "gitHead": "ce73891d4f524630108d2f3869899b4d6b5b3bfe"
28
28
  }