Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository.
This report summarizes scanner evidence for lerna/lerna, a TypeScript project with 36,041 GitHub stars. SynthScan examined 85,606 lines of code across 1389 source files, recording 30 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 0.5 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 29 finding(s).
Are imports declared and package/API names verified? 1 finding(s).
Are wrappers, guards, and repeated structures necessary? 14 finding(s).
Which changes need focused human review? 30 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 30 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/scripts/e2e-build-package-publish.ts | 24 | async function buildPackagePublishAndCleanPorts() { | CODE |
| LOW | tools/scripts/e2e-build-package-publish.ts | 44 | async function updateVersionsAndPublishPackages() { | CODE |
| LOW | libs/core/src/lib/profiler.ts | 27 | export function generateProfileOutputPath(outputDirectory?: string) { | CODE |
| LOW | libs/core/src/lib/get-npm-exec-opts.ts | 18 | export function getPnpmLockfileInstallConfigArgs(): string[] { | CODE |
| LOW | …bs/core/src/lib/collect-updates/make-diff-predicate.ts | 31 | return function hasDiffSinceThatIsntIgnored(node: ProjectGraphProjectNodeWithPackage) { | CODE |
| LOW | libs/core/src/lib/npmlog/gauge/theme-set.ts | 106 | ThemeSetProto.newMissingDefaultThemeError = function newMissingDefaultThemeError( | CODE |
| LOW | …e/src/lib/conventional-commits/get-changelog-config.ts | 19 | function normalizeLegacyWriterOptions(writer: any): any { | CODE |
| LOW | …/src/lib/command/create-project-graph-with-packages.ts | 16 | export async function createProjectGraphWithPackages( | CODE |
| LOW | libs/core/src/lib/corepack/exec-package-manager.ts | 8 | function withPackageManagerExecEnv(npmClient: string, opts: ExecOptions): ExecOptions { | CODE |
| LOW | …/e2e-utils/src/lib/normalize-fixture-command-output.ts | 5 | export function normalizeFixtureCommandOutput(command: string, output: string): string { | CODE |
| LOW | …mmands/publish/src/lib/get-packages-without-license.ts | 7 | export function getPackagesWithoutLicense( | CODE |
| LOW | …s/publish/src/lib/get-projects-with-tagged-packages.ts | 10 | export async function getProjectsWithTaggedPackages( | CODE |
| LOW | …lish/src/lib/get-projects-with-unpublished-packages.ts | 10 | export async function getProjectsWithUnpublishedPackages( | CODE |
| LOW | packages/lerna/src/index.ts | 62 | function explicitlyHandleLegacyPackageManagementCommands(yargsInstance: ReturnType<typeof lernaCLI>) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | socket.yml | 1 | # Socket.dev configuration | COMMENT |
| LOW | integration/__tests__/lerna-exec.spec.ts | 21 | const fixturePath = path.resolve(__dirname, "__fixtures__"); | COMMENT |
| LOW | website/docs/recipes/using-bun-with-lerna.md | 121 | ```bash | COMMENT |
| LOW | libs/core/src/lib/package.ts | 421 | // update committish | COMMENT |
| LOW | libs/core/src/lib/project/index.spec.ts | 261 | // it("returns custom packageConfigs", () => { | COMMENT |
| LOW | …core/src/lib/conventional-commits/recommend-version.ts | 81 | // | COMMENT |
| LOW | libs/commands/init/vitest.setup.ts | 1 | import path from "path"; | COMMENT |
| LOW | .github/workflows/nx-migrate.yml | 1 | # This workflow is used to augment the capabilities of the renovate GitHub app by running a full | COMMENT |
| LOW | .github/workflows/update-formatting-for-renovate.yml | 1 | # This workflow is used to augment the capabilities of the renovate GitHub app by updating the | COMMENT |
| LOW | .github/workflows/other-node-versions.yml | 101 | # Subkey-Type: default | COMMENT |
| LOW | .github/workflows/other-node-versions.yml | 141 | env: | COMMENT |
| LOW | .nx/workflows/agents.yaml | 1 | # Nx Agent launch templates for Linux CI. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | libs/commands/publish/src/index.ts | 298 | pkg.lernaConfig.command.publish.assets = pkg.lernaConfig.command.publish.assets.map((asset) => | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | libs/commands/init/vitest.setup.ts | 7 | // otherwise let execute() scaffold a real lerna workspace (and run a package | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .github/workflows/pkg-pr-new.yml | 5 | # malicious actor were able to leverage this workflow to publish malware, nobody would receive it | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/workflows/pkg-pr-new.yml | 1 | # WARNING: This workflow can be run on forks, so it is important to not perform any sensitive operations | COMMENT |