Skip to content

feat(cli): support --bin for monorepos#524

Open
AmirSa12 wants to merge 3 commits into
mainfrom
feat/bin-mono
Open

feat(cli): support --bin for monorepos#524
AmirSa12 wants to merge 3 commits into
mainfrom
feat/bin-mono

Conversation

@AmirSa12
Copy link
Copy Markdown
Member

@AmirSa12 AmirSa12 commented May 31, 2026

closes #396

@continuous-releases-staging
Copy link
Copy Markdown

continuous-releases-staging Bot commented May 31, 2026

  • example-1

  • example-2

    npm i https://9d06a57d.stackblitz-cr.pages.dev/stackblitz-labs/pkg.pr.new/pkg-pr-new@524
    
    npm i https://9d06a57d.stackblitz-cr.pages.dev/stackblitz-labs/pkg.pr.new/playground-a@524
    
    npm i https://9d06a57d.stackblitz-cr.pages.dev/stackblitz-labs/pkg.pr.new/playground-b@524
    

commit: 2a795e3

Copy link
Copy Markdown
Member

@Aslemammad Aslemammad left a comment

Choose a reason for hiding this comment

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

I love it!

Comment thread packages/cli/index.ts
"sb-run-id": GITHUB_RUN_ID,
"sb-bin": `${isBinaryApplication}`,
"sb-bin": `${binPackages.size > 0 && binPackages.size === knownPackageNames.size}`,
"sb-bin-packages": JSON.stringify([...binPackages]),
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.

we don't need the [...] here, we can just pass binPackages directly!

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.

How? this is a set, and when we JSON.stringify it without the making it an array by [...], it sees an object with no serializable properties

https://github.com/stackblitz-labs/pkg.pr.new/pull/524/changes#diff-ce752ce36be970cbc0110dae521e82462b9ee7dbca55f45b51648c82998da18dR413

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.

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.

Support for --bin in a monorepo

2 participants