Repository navigation
feat: add unscoped Primitree launcher #14
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 all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
02ae5c6
feat: add unscoped Primitree launcher
marklearst 245a2e9
fix(release): harden prerelease verification
marklearst 049502c
fix(release): clear stale prerelease latest tags
marklearst 55a474e
fix(release): allow later next candidates
marklearst 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 |
|---|---|---|
| @@ -1,8 +1,8 @@ | ||
| # Changesets | ||
|
|
||
| Create a release note with `pnpm changeset`. The five public `@primitree/*` | ||
| packages use a fixed version group, so an approved changeset updates all five | ||
| to the same version. Apply pending release notes with | ||
| `pnpm version-packages`. | ||
| Create a release note with `pnpm changeset`. The five scoped packages and the | ||
| unscoped `primitree` launcher use a fixed version group, so an approved | ||
| changeset updates all six to the same version. Run `pnpm version-packages` to | ||
| apply pending notes. | ||
|
|
||
| Maintainers do not version or publish private workspaces through Changesets. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "mode": "pre", | ||
| "tag": "next", | ||
| "initialVersions": { | ||
| "@primitree/core": "0.0.0", | ||
| "@primitree/dtcg": "0.0.0", | ||
| "@primitree/cli": "0.0.0", | ||
| "@primitree/hooks": "0.0.0", | ||
| "@primitree/mcp": "0.0.0", | ||
| "primitree": "0.0.0" | ||
| }, | ||
| "changesets": ["primitree-one"] | ||
| } | ||
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,21 @@ | ||
| --- | ||
| '@primitree/core': major | ||
| '@primitree/dtcg': major | ||
| '@primitree/cli': major | ||
| '@primitree/hooks': major | ||
| '@primitree/mcp': major | ||
| 'primitree': major | ||
| --- | ||
|
|
||
| Launch the Primitree 1.0 package family. | ||
|
|
||
| - `@primitree/core` normalizes Figma variables, resolves aliases, compares | ||
| revisions, and evaluates token policy. | ||
| - `@primitree/dtcg` reads DTCG 2025.10 tokens and builds DTCG, Resolver, CSS, | ||
| Tailwind CSS, and TypeScript output. | ||
| - `@primitree/cli` checks, inspects, compares, and builds configured token | ||
| projects. | ||
| - `@primitree/hooks` reads generated token output in React applications. | ||
| - `@primitree/mcp` exposes loaded token graphs to MCP clients. | ||
| - `primitree` provides the unscoped `primitree` command through | ||
| `@primitree/cli`. |
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| # Primitree 1.0.0-next.0 | ||
|
|
||
| Status: Unreleased. | ||
|
|
||
| Primitree checks a local DTCG source against project layer and owner rules. The | ||
| first public prerelease also reserves the unscoped `primitree` package name, so | ||
| the complete CLI is available through one short command: | ||
|
|
||
| ```sh | ||
| npx primitree@next check | ||
| ``` | ||
|
|
||
| The launcher forwards to `@primitree/cli`. It does not contain a second command | ||
| implementation or a separate configuration format. | ||
|
|
||
| ## Release highlights | ||
|
|
||
| - `primitree check` evaluates a configured DTCG source and reports stable policy | ||
| findings. | ||
| - `primitree inspect` traces one token through its alias chain, owners, and | ||
| direct dependents. | ||
| - `primitree diff` reports token changes, affected aliases, and policy changes. | ||
| - `primitree build` writes DTCG, Resolver, CSS, Tailwind CSS, and TypeScript | ||
| files. Its check mode reports drift without writing. | ||
| - `@primitree/hooks` reads generated token output in React applications. | ||
| - `@primitree/mcp` exposes loaded token graphs to MCP clients. | ||
| - `primitree`, `@primitree/core`, `@primitree/dtcg`, `@primitree/cli`, | ||
| `@primitree/hooks`, and `@primitree/mcp` share version `1.0.0-next.0`. | ||
|
|
||
| ## Prerelease channel | ||
|
|
||
| Install this version through npm's `next` tag. The release workflow verifies | ||
| that `latest` does not point to the prerelease. Stable `1.0.0` will move the | ||
| package family to `latest` after prerelease testing and a separate review. | ||
|
|
||
| ## Requirements | ||
|
|
||
| - Node.js 24 or newer | ||
| - React `^19.0.0` and SWR `^2.3.7` for `@primitree/hooks` | ||
|
|
||
| ## Migration | ||
|
|
||
| The React package moved from `@figma-vars/hooks` to `@primitree/hooks`. The | ||
| legacy npm package ends at version 4.0.0. | ||
|
|
||
| Read the [migration guide](https://primitree.com/docs/hooks/migration) and the | ||
| [README](https://github.com/marklearst/primitree/blob/v1.0.0-next.0/README.md). |
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.