Skip to content

Commit

Permalink
refactor: annotate linkedDep as ResolvedDirectDependency (#7988)
Browse files Browse the repository at this point in the history
  • Loading branch information
gluxon committed Apr 26, 2024
1 parent 773434e commit d066dae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg-manager/resolve-dependencies/src/dedupeInjectedDeps.ts
@@ -1,6 +1,6 @@
import path from 'path'
import normalize from 'normalize-path'
import { type ResolvedImporters } from './resolveDependencyTree'
import { type ResolvedDirectDependency, type ResolvedImporters } from './resolveDependencyTree'
import { type LinkedDependency } from './resolveDependencies'
import {
type DependenciesByProjectId,
Expand Down Expand Up @@ -79,7 +79,7 @@ function applyDedupeMap<T extends PartialResolvedPackage> (
const index = opts.resolvedImporters[id].directDependencies.findIndex((dep) => dep.alias === alias)
const prev = opts.resolvedImporters[id].directDependencies[index]
const depPath = `link:${normalize(path.relative(id, dedupedProjectId))}`
const linkedDep: LinkedDependency = {
const linkedDep: LinkedDependency & ResolvedDirectDependency = {
...prev,
isLinkedDependency: true,
depPath,
Expand Down

0 comments on commit d066dae

Please sign in to comment.