Skip to content

Commit 22569f7

Browse files
authored
Merge pull request microsoft#1633 from chaseholland/master
Removing check for --registry when using --pack
2 parents e2dfec9 + 71264f8 commit 22569f7

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

apps/rush-lib/src/cli/actions/PublishAction.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,6 @@ export class PublishAction extends BaseRushAction {
230230
if (this._releaseFolder.value && !this._pack.value) {
231231
throw new Error(`--release-folder can only be used with --pack`);
232232
}
233-
if (this._registryUrl.value && this._pack.value) {
234-
throw new Error(`--registry cannot be used with --pack`);
235-
}
236233
if (this._applyGitTagsOnPack.value && !this._pack.value) {
237234
throw new Error(`${this._applyGitTagsOnPack.longName} must be used `
238235
+ `with ${this._pack.longName}`);
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@microsoft/rush",
5+
"comment": "Remove an error thrown when the --registry and --pack arguments are used on rush publish, because --registry might be required to check if a package has already been published against a custom registry.",
6+
"type": ""
7+
}
8+
],
9+
"packageName": "@microsoft/rush",
10+
"email": "chaseholland@users.noreply.github.com"
11+
}

0 commit comments

Comments
 (0)