Skip to content

fix: dir in config are relative to config location#4475

Draft
mimarz wants to merge 14 commits intomainfrom
fix-cli-relative-location
Draft

fix: dir in config are relative to config location#4475
mimarz wants to merge 14 commits intomainfrom
fix-cli-relative-location

Conversation

@mimarz
Copy link
Collaborator

@mimarz mimarz commented Feb 5, 2026

resolves #4410

Created a singleton for CLI to interact with file system, this comes multiple benefits and provides better predictability.

  • fix outDir in config not being relative to config location.
  • fix --out-dir being ignored for tokens create.
  • No need to send dry parameter everywhere, this is now stored and used in the file system singleton.
  • Paths are resolved in one place and the same way now (was done differently before).

@changeset-bot
Copy link

changeset-bot bot commented Feb 5, 2026

🦋 Changeset detected

Latest commit: f52e978

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

This PR includes changesets to release 5 packages
Name Type
@digdir/designsystemet Patch
@digdir/designsystemet-css Patch
@digdir/designsystemet-types Patch
@digdir/designsystemet-react Patch
@digdir/designsystemet-web Patch

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

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

Preview deployments for this pull request:

storybook - 25. Feb 2026 - 16:18

@mimarz mimarz force-pushed the fix-cli-relative-location branch from 2c1c666 to f2a25e2 Compare February 6, 2026 12:37
@mimarz mimarz force-pushed the fix-cli-relative-location branch from 8a6f5ac to 3c56c46 Compare February 18, 2026 11:16
@mimarz mimarz force-pushed the fix-cli-relative-location branch from 3c56c46 to 0bb63f0 Compare February 25, 2026 12:32
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.

Make outDir relative to config location

1 participant