lerna
Version:
Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository
27 lines (26 loc) • 1.01 kB
TypeScript
import { FetchOptions } from "npm-registry-fetch";
import type { Conf } from "./npm-conf/conf";
import { OneTimePasswordCache } from "./otplease";
import type { Package } from "./package";
interface NpmPublishOptions {
dryRun?: boolean;
["dry-run"]?: boolean;
["strict-ssl"]?: boolean;
tag?: string;
/**
* The tag was explicitly chosen (e.g. via --dist-tag), so it must override pkg.publishConfig.tag
* even when it is "latest". Otherwise a "latest" tag is assumed to be npm's default and
* pkg.publishConfig.tag takes precedence.
*/
explicitTag?: boolean;
registry?: string;
}
interface LibNpmPublishOptions extends FetchOptions {
access?: "public" | "restricted";
defaultTag?: string;
}
/**
* Publish a package to the configured registry.
*/
export declare function npmPublish(pkg: Package, tarFilePath: string, options: LibNpmPublishOptions & NpmPublishOptions, conf: Conf, otpCache?: OneTimePasswordCache): Promise<void | Response>;
export {};