Monorepo Publishing
Helper functions for publishing packages within a monorepo.
Functions
Section titled “Functions”monorepoPublish()
Section titled “monorepoPublish()”function monorepoPublish(importMetaDirname, updateMonorepo?): Promise<void>;Defined in: functions/monorepoPublish.ts:70
Helper function to publish one of a monorepo’s packages to npm.
This function attempts to find the monorepo root directory automatically based on searching backwards from the file of the calling function.
Parameters
Section titled “Parameters”| Parameter | Type | Default value | Description |
|---|---|---|---|
importMetaDirname |
string |
undefined |
The value of import.meta.dirname (so that this function can find the package root). |
updateMonorepo |
boolean |
true |
Optional. Attempt to update the monorepo dependencies after the publish is completed. Defaults to true. |
Returns
Section titled “Returns”Promise<void>
Throws
Section titled “Throws”If publishing fails.
