Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .yarn/versions/1cdc2320.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
releases:
"@yarnpkg/cli": patch
"@yarnpkg/plugin-npm-cli": patch

declined:
- "@yarnpkg/plugin-compat"
- "@yarnpkg/plugin-constraints"
- "@yarnpkg/plugin-dlx"
- "@yarnpkg/plugin-essentials"
- "@yarnpkg/plugin-init"
- "@yarnpkg/plugin-interactive-tools"
- "@yarnpkg/plugin-nm"
- "@yarnpkg/plugin-pack"
- "@yarnpkg/plugin-patch"
- "@yarnpkg/plugin-pnp"
- "@yarnpkg/plugin-pnpm"
- "@yarnpkg/plugin-stage"
- "@yarnpkg/plugin-typescript"
- "@yarnpkg/plugin-version"
- "@yarnpkg/plugin-workspace-tools"
- "@yarnpkg/builder"
- "@yarnpkg/core"
- "@yarnpkg/doctor"
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ describe(`publish`, () => {
await run(`install`);

const {stdout} = await run(`npm`, `publish`, `--dry-run`, `--tolerate-republish`);
expect(stdout).toContain(`[DRY RUN]`);
expect(stdout).toContain(`Publishing to`);
expect(stdout).toContain(`dry run`);
}));

test(`should support --json flag`, makeTemporaryEnv({
Expand Down
4 changes: 3 additions & 1 deletion packages/plugin-npm-cli/sources/commands/npm/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ export default class NpmPublishCommand extends BaseCommand {
stdout: this.context.stdout,
json: this.json,
}, async report => {
report.reportInfo(MessageName.UNNAMED, `Publishing to ${registry} with tag ${this.tag}`);

// Not an error if --tolerate-republish is set
if (this.tolerateRepublish) {
try {
Expand Down Expand Up @@ -171,7 +173,7 @@ export default class NpmPublishCommand extends BaseCommand {
}

const finalMessage = this.dryRun
? `[DRY RUN] Package would be published to ${registry} with tag ${this.tag}`
? `Package archive not published (dry run)`
: `Package archive published`;

report.reportInfo(MessageName.UNNAMED, finalMessage);
Expand Down