RoadmapShopEvents
Skip to main content

Home > @rushstack/node-core-library > IImportResolvePackageOptions

IImportResolvePackageOptions interface

Options for Import.resolvePackage()

Signature:

export interface IImportResolvePackageOptions extends IImportResolveOptions 

Extends: IImportResolveOptions

Properties

PropertyModifiersTypeDescription
allowSelfReference?boolean

(Optional) If true, then resolvePath is allowed to refer to the package.json of the active project.

(Inherited from IImportResolveOptions)

baseFolderPathstring

The path from which IImportResolveModuleOptions.modulePath or IImportResolvePackageOptions.packageName should be resolved.

(Inherited from IImportResolveOptions)

includeSystemModules?boolean

(Optional) If true, if the package name matches a Node.js system module, then the return value will be the package name without any path.

(Inherited from IImportResolveOptions)

packageNamestringThe package name to resolve. For example "@rushstack/node-core-library"