Skip to main content

Monorepo Publishing

Helper functions for publishing packages within a monorepo.

Functions

monorepoPublish()

function monorepoPublish(updateMonorepo): Promise<void>

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

ParameterTypeDefault valueDescription
updateMonorepobooleantrueOptional. Attempt to update the monorepo dependencies after the publish is completed. Defaults to true.

Returns

Promise<void>

Defined in

packages/complete-node/src/functions/monorepoPublish.ts:43