@neurodevs/meta-node 0.19.7 → 0.19.8

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.
@@ -18,14 +18,14 @@ export default class NpmWorkspaceTypeChecker {
18
18
  const repoNames = await this.readDir(this.workspacePath, {
19
19
  withFileTypes: true,
20
20
  });
21
- for (const repoName of repoNames) {
21
+ await Promise.all(repoNames.map(async (repoName) => {
22
22
  if (!repoName.isDirectory()) {
23
- continue;
23
+ return;
24
24
  }
25
25
  const fullRepoPath = join(this.workspacePath, repoName.name);
26
26
  const repoContents = await this.readDir(fullRepoPath);
27
27
  if (!repoContents.includes('tsconfig.json')) {
28
- continue;
28
+ return;
29
29
  }
30
30
  console.info(`Checking types for ${fullRepoPath}...`);
31
31
  try {
@@ -34,7 +34,7 @@ export default class NpmWorkspaceTypeChecker {
34
34
  catch {
35
35
  console.error(`Type errors found in ${fullRepoPath}!`);
36
36
  }
37
- }
37
+ }));
38
38
  console.info('\nType checking completed!\n');
39
39
  }
40
40
  get readDir() {
@@ -1 +1 @@
1
- {"version":3,"file":"NpmWorkspaceTypeChecker.js","sourceRoot":"","sources":["../../src/impl/NpmWorkspaceTypeChecker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAErC,MAAM,CAAC,OAAO,OAAO,uBAAuB;IACjC,MAAM,CAAC,KAAK,CAAkC;IAC9C,MAAM,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,MAAM,CAAC,IAAI,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAA;IAEhC,aAAa,CAAQ;IAE7B,YAAsB,aAAqB;QACvC,IAAI,CAAC,aAAa,GAAG,aAAa,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CAAC,CAAA;YAErD,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC;gBAC1C,OAAM;YACV,CAAC;YAED,OAAO,CAAC,IAAI,CAAC,sBAAsB,YAAY,KAAK,CAAC,CAAA;YAErD,IAAI,CAAC;gBACD,MAAM,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,GAAG,EAAE,YAAY,EAAE,CAAC,CAAA;YAC9D,CAAC;YAAC,MAAM,CAAC;gBACL,OAAO,CAAC,KAAK,CAAC,wBAAwB,YAAY,GAAG,CAAC,CAAA;YAC1D,CAAC;QACL,CAAC,CAAC,CACL,CAAA;QAED,OAAO,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAA;IAChD,CAAC;IAED,IAAY,OAAO;QACf,OAAO,uBAAuB,CAAC,OAAO,CAAA;IAC1C,CAAC;IACD,IAAY,IAAI;QACZ,OAAO,uBAAuB,CAAC,IAAI,CAAA;IACvC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neurodevs/meta-node",
3
- "version": "0.19.7",
3
+ "version": "0.19.8",
4
4
  "description": "Meta-layer utilities for maintaining Node.js package ecosystems.",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -24,27 +24,29 @@ export default class NpmWorkspaceTypeChecker implements WorkspaceTypeChecker {
24
24
  withFileTypes: true,
25
25
  })
26
26
 
27
- for (const repoName of repoNames) {
28
- if (!repoName.isDirectory()) {
29
- continue
30
- }
27
+ await Promise.all(
28
+ repoNames.map(async (repoName) => {
29
+ if (!repoName.isDirectory()) {
30
+ return
31
+ }
31
32
 
32
- const fullRepoPath = join(this.workspacePath, repoName.name)
33
+ const fullRepoPath = join(this.workspacePath, repoName.name)
33
34
 
34
- const repoContents = await this.readDir(fullRepoPath)
35
+ const repoContents = await this.readDir(fullRepoPath)
35
36
 
36
- if (!repoContents.includes('tsconfig.json')) {
37
- continue
38
- }
37
+ if (!repoContents.includes('tsconfig.json')) {
38
+ return
39
+ }
39
40
 
40
- console.info(`Checking types for ${fullRepoPath}...`)
41
+ console.info(`Checking types for ${fullRepoPath}...`)
41
42
 
42
- try {
43
- await this.exec('npx tsc --noEmit', { cwd: fullRepoPath })
44
- } catch {
45
- console.error(`Type errors found in ${fullRepoPath}!`)
46
- }
47
- }
43
+ try {
44
+ await this.exec('npx tsc --noEmit', { cwd: fullRepoPath })
45
+ } catch {
46
+ console.error(`Type errors found in ${fullRepoPath}!`)
47
+ }
48
+ })
49
+ )
48
50
 
49
51
  console.info('\nType checking completed!\n')
50
52
  }