chore(cli): deprecate cli options for theme#4912
Conversation
🦋 Changeset detectedLatest commit: 26f98c8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
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 |
|
Preview deployments for this pull request: storybook - |
There was a problem hiding this comment.
Pull request overview
Deprecates token theme-related CLI flags in the @digdir/designsystemet CLI by marking them as deprecated in --help output and adding a runtime warning, steering users toward JSON config as the primary configuration source (per issue #4563).
Changes:
- Updated
tokens createoption descriptions to label theme-related flags as deprecated and added--configearlier in the option list. - Added a console warning intended to trigger when deprecated theme-related CLI flags are used.
- Added a changeset documenting the deprecation warning behavior.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/cli/bin/designsystemet.ts | Marks theme-related token creation flags as deprecated and adds a runtime deprecation warning. |
| .changeset/tame-geese-cover.md | Releases a patch changeset describing the new deprecation warning. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Tobias Barsnes <tobias.barsnes@digdir.no>
|
ready for review again @Barsnes found a small edge-case with false positives and defaults. |
resolves #4563