We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 172d4b9 commit 1b53c2dCopy full SHA for 1b53c2d
src/publish.ts
@@ -25,6 +25,11 @@ export const publish: typeof def = async ({
25
26
if (version.startsWith("v")) version = version.slice(1);
27
28
+ if (pkgName === undefined)
29
+ throw new Error(
30
+ `Package name should be specified in tag "${tag}" when defaultPackage is not set`,
31
+ );
32
+
33
const { pkg, pkgDir } = getPackageInfo(pkgName, getPkgDir);
34
if (pkg.version !== version)
35
throw new Error(
src/types.d.ts
@@ -1,5 +1,5 @@
1
export declare function publish(options: {
2
- defaultPackage: string;
+ defaultPackage?: string;
3
getPkgDir?: (pkg: string) => string;
4
/**
5
* Enables npm package provenance https://docs.npmjs.com/generating-provenance-statements
0 commit comments