• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

gftf2011 / arch-unit-js / 17672125851

12 Sep 2025 10:40AM UTC coverage: 94.537% (+0.6%) from 93.906%
17672125851

push

github

web-flow
feat: add support to workspaces (#93)

* feat: create dev branch

* feat: bump version (#19)

* feat: reduce package dist size (#20)

* feat: bump version

* ci: remove checksum validation

* feat: reduce dist size (#21)

* feat: bump version

* ci: remove checksum validation

* feat: reduce package dist size

* feat: reduce dist size (#22)

* feat: bump version

* ci: remove checksum validation

* feat: reduce package dist size

* chore: add files to package.json

* feat: reduce dist size (#23)

* feat: bump version

* ci: remove checksum validation

* feat: reduce package dist size

* chore: add files to package.json

* fix: add package.json to dist tar file

* feat: reduce dist size (#24)

* feat: bump version

* ci: remove checksum validation

* feat: reduce package dist size

* chore: add files to package.json

* fix: add package.json to dist tar file

* chore: bump version

* feat: reduce dist size (#25)

* feat: bump version

* ci: remove checksum validation

* feat: reduce package dist size

* chore: add files to package.json

* fix: add package.json to dist tar file

* chore: bump version

* feat: reduce unpacked size

* feat: reduce dist size (#26)

* feat: bump version

* ci: remove checksum validation

* feat: reduce package dist size

* chore: add files to package.json

* fix: add package.json to dist tar file

* chore: bump version

* feat: reduce unpacked size

* feat: reduce package size

* feat: reduce dist size (#27)

* feat: bump version

* ci: remove checksum validation

* feat: reduce package dist size

* chore: add files to package.json

* fix: add package.json to dist tar file

* chore: bump version

* feat: reduce unpacked size

* feat: reduce package size

* feat: reduce unpacked size when npm publish

* ci: enable checksum validation (#29)

* feat: enable checksum (#30)

* ci: enable checksum validation

* ci: enable tar fiel and checksum arfifact upload and download

* feat: enable checksum (#31)

* ci: enable checksum valid... (continued)

207 of 247 branches covered (83.81%)

Branch coverage included in aggregate %.

79 of 81 new or added lines in 4 files covered. (97.53%)

866 of 888 relevant lines covered (97.52%)

13563.84 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

90.63
/src/utils/nodejs/index.ts
1
import fs from 'fs';
166✔
2
import module from 'module';
166✔
3
import * as path from 'pathe';
166✔
4

5
export function isBuiltinModule(dependency: string): boolean {
166✔
6
  const builtinModules = new Set(module.builtinModules);
38,294✔
7
  return builtinModules.has(dependency);
38,294✔
8
}
9

10
export function isPackageJsonDependency(dirs: string[], dependency: string): boolean {
166✔
11
  let hasDependency = false;
37,657✔
12
  for (const dir of dirs) {
37,657✔
13
    try {
56,461✔
14
      const packageJsonPath = path.join(dir, 'package.json');
56,461✔
15
      fs.statSync(packageJsonPath);
56,461✔
16
      const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
56,461✔
17
      if (Object.keys(packageJson.dependencies).some((key) => dependency.includes(key))) {
80,695✔
18
        hasDependency = true;
4,241✔
19
        break;
4,241✔
20
      }
21
    } catch (_error) {
22
      continue;
22,324✔
23
    }
24
  }
25
  return hasDependency;
37,657✔
26
}
27

28
export function isPackageJsonDevDependency(dirs: string[], dependency: string): boolean {
166✔
29
  let hasDependency = false;
33,416✔
30
  for (const dir of dirs) {
33,416✔
31
    try {
50,103✔
32
      const packageJsonPath = path.join(dir, 'package.json');
50,103✔
33
      fs.statSync(packageJsonPath);
50,103✔
34
      const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
50,103✔
35
      if (Object.keys(packageJson.devDependencies).some((key) => dependency.includes(key))) {
155,168!
NEW
36
        hasDependency = true;
×
NEW
37
        break;
×
38
      }
39
    } catch (_error) {
40
      continue;
16,687✔
41
    }
42
  }
43
  return hasDependency;
33,416✔
44
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc