-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat(publish): Add --dry-run
and --json
flag to yarn npm publish
#6850
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 21 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
37b51fe
Initial plan
Copilot 670b25f
Implement dry-run, JSON output, and registry options for yarn npm pub…
Copilot 28df538
Final implementation with tests and linting fixes
Copilot 3118cef
Consolidate duplicate code between JSON and stream output paths in np…
Copilot c0b4e94
Rename report execution path to executeWithReportStream for clarity
Copilot 0a6452a
Refactor streaming report checks into isStreamingReport helper method
Copilot 596cf55
Use StreamReport's built-in JSON support instead of separate executio…
Copilot 84781b2
Change directory option from positional argument to --directory flag
Copilot 22b0854
Remove unnecessary executeCore method - consolidate into single execu…
Copilot ee34047
Fold extracted methods back into single execute method to eliminate a…
Copilot afd8de9
Remove redundant JSON conditionals where reportInfo handles JSON mode…
Copilot 2b4682e
Undo directroy and registry flags
Saadnajmi 4b1259b
more removal
Saadnajmi 1dda19e
Simplify messages
Saadnajmi ef33377
version plan
Saadnajmi 205ed41
JSON path reports same info as non JSON path, test passes
Saadnajmi 44634b7
Update 4c28a2b4.yml
Saadnajmi 1aee84b
update again
Saadnajmi d4f82af
Copy what pack.ts does and always call reportInfo with reportJson
Saadnajmi 9811340
Don't report gitHead
Saadnajmi 06961be
support -n for dry run, like pack
Saadnajmi 7e52b9e
PR feedback
Saadnajmi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
releases: | ||
"@yarnpkg/cli": patch | ||
"@yarnpkg/plugin-npm-cli": minor | ||
|
||
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.