Skip to content

Add publish --from-pack-dir packed artifact - #2063

Merged
Andarist merged 9 commits into
mainfrom
publish-from
Jun 20, 2026
Merged

Andarist merged 9 commits into
mainfrom
publish-from

Conversation

@Andarist

@Andarist Andarist commented Jun 6, 2026

Copy link
Copy Markdown
Member

No description provided.

@Andarist
Andarist requested review from beeequeue and bluwy June 6, 2026 11:37
@changeset-bot

changeset-bot Bot commented Jun 6, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b0d13e0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@changesets/cli Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov

codecov Bot commented Jun 6, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 87.87879% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.23%. Comparing base (90b4ad0) to head (b0d13e0).

Files with missing lines Patch % Lines
...es/cli/src/commands/publish-plan/getPublishPlan.ts 77.77% 2 Missing ⚠️
packages/cli/src/commands/publish/npm-utils.ts 50.00% 1 Missing ⚠️
...ckages/cli/src/commands/publish/publishPackages.ts 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2063      +/-   ##
==========================================
+ Coverage   82.98%   85.23%   +2.25%     
==========================================
  Files          66       66              
  Lines        2504     2520      +16     
  Branches      681      695      +14     
==========================================
+ Hits         2078     2148      +70     
+ Misses        383      344      -39     
+ Partials       43       28      -15     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread packages/cli/src/cli.ts Resolved
Base automatically changed from pack-cmd to main June 19, 2026 11:48
@Andarist Andarist changed the title Add publish --from packed artifact Add publish --from-pack-dir packed artifact Jun 19, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be named publishCommand.test.ts or simply index.test.ts to reflect the file being tested?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, this was messy - I moved those tests

const child =
publishTool.name === "pnpm"
? exec("pnpm", ["publish", ...publishFlags], {
? exec("pnpm", ["publish", opts.target, ...publishFlags], {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we do a path.relative for the opts.target here so that it's passed a relative path or empty string? It probably doesn't matter technically, but it feels better to me to call the command as if how one would call manually in practice.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, I pushed out such change

@Andarist
Andarist requested a review from bluwy June 20, 2026 13:22
@Andarist
Andarist added this pull request to the merge queue Jun 20, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 20, 2026
@Andarist
Andarist added this pull request to the merge queue Jun 20, 2026
Merged via the queue into main with commit ed77176 Jun 20, 2026
12 checks passed
@Andarist
Andarist deleted the publish-from branch June 20, 2026 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants