do not allow web publishing when package path is provided

This commit is contained in:
Sandeep Somavarapu 2020-08-25 11:24:54 +02:00
parent d15456e941
commit d3c2ffc5f4

View file

@ -153,6 +153,9 @@ export function publish(options: IPublishOptions = {}): Promise<any> {
if (options.version) {
return Promise.reject(`Not supported: packagePath and version.`);
}
if (options.web) {
return Promise.reject(`Not supported: packagePath and web.`);
}
promise = readManifestFromPackage(options.packagePath)
.then(manifest => ({ manifest, packagePath: options.packagePath }));