You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simple package for getting alias object for packages managed by lerna, so other tools (such as webpack, rollup, jest and possibly more) can consume your packages directly from the source files, instead of the built and prepared distribution files.
It just eases development and setting up scripts depending on other lerna packages.
API
lernaAliases({// from which directory lerna monorepo should be searched fordirectory: string=process.cwd(),// optional array of `mainFields` that should be used to resolv package's entry point// similar to the https://webpack.js.org/configuration/resolve/#resolve-mainfields// using this takes precedence over default `sourceDirectory` optionmainFields?: string[],// which directory should be considered as containing source files of a package// if specified as false it will use package's root and rely on a tool's (i.e. webpack) resolving algorithmsourceDirectory: string|false='src'}): Aliases
Types
Aliases
typeAliases={// value is a local directory path to the package// resolved using `sourceDirectory` and `mainFields` options[packageName: string]: string,}