feat: migrate npm package to @flagsmith organization scope#40
Open
kyle-ssg wants to merge 3 commits into
Open
Conversation
Renames flagsmith-cli to @flagsmith/cli and updates the bundled flagsmith JS client dependency from flagsmith@9 to @Flagsmith/flagsmith@12. Mirrors the flagsmith-js-client migration in PR #367. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Mirrors the flagsmith-js-client approach (11.0.0-internal.0 ... .7 before 11.0.0) so the initial scoped publish can validate the npm + trusted publisher setup under a separate dist-tag before claiming `latest`. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This reverts commit 15afe41.
matthewelwell
approved these changes
May 22, 2026
talissoncosta
approved these changes
May 22, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
flagsmith-cli→@flagsmith/cli(major version bump 0.2.3 → 1.0.0)flagsmith@^9.0.5→@flagsmith/flagsmith@^12.0.0publishConfig: { access: "public" }so first scoped publish is publicRelated PRs
flagsmith-nodejs→@flagsmith/nodejsPublish sequence
The PR ships with
version: "1.0.0"because that is the canonical first stable release of the scoped package. To work around the trusted-publisher chicken-and-egg, the first push to npm happens locally as a prerelease (mirroring flagsmith-js-client which ran11.0.0-internal.0….7before11.0.0):@flagsmithorg write access:internaldist-tag.latestis still empty sonpm i @flagsmith/clidoes not pick up the prerelease.@flagsmith/clipointing at this repo +.github/workflows/publish.yml.internal.1,.2, …) the same way until happy.1.0.0either by another localnpm publishfrom the merged commit, or by merging this PR and letting release-please / CI publish via OIDC.npm deprecate flagsmith-cli@"*" "Moved to @flagsmith/cli"to redirect existing users.Test plan
npm installresolves cleanly on the new depnpm run buildsucceedsflagsmith getCLI command still produces a validflagsmith.jsonagainst a real environment@flagsmith/cli@1.0.0-internal.0on theinternaldist-tag🤖 Generated with Claude Code