resolvePackagePath()
Home > @backstage/backend-plugin-api
> resolvePackagePath
Resolve a path relative to the root of a package directory. Additional path arguments are resolved relative to the package dir.
This is particularly useful when you want to access assets shipped with your backend plugin package. When doing so, do not forget to include the assets in your published package by adding them to files
in your package.json
.
Signature:
function resolvePackagePath(name: string, ...paths: string[]): string;
Parameters
Parameter |
Type |
Description |
---|---|---|
name |
string | |
paths |
string[] |
string