Skip to content

Latest commit

 

History

History
43 lines (24 loc) · 1.1 KB

File metadata and controls

43 lines (24 loc) · 1.1 KB

@-xun/project


@-xun/project / test/util / resolveTargetWithResolveExports

Function: resolveTargetWithResolveExports()

resolveTargetWithResolveExports(__namedParameters): ResolvedSummary & object

Defined in: test/util.ts:133

Resolves a subpath to a target using the resolve.exports library. This function is used to ensure project-utils's resolver functions return results that coincide with resolve.exports in the interest of ecosystem interoperability.

Parameters

__namedParameters

conditions

string[]

Conditions to match against during target resolution.

packageJson

XPackageJson

Contents of the package.json file of the package under test.

subpath

string

The subpath to resolve against the packageName package. Must start with either "#" or "./" or be "." exactly.

Returns

ResolvedSummary & object