The host’s root
The root is where the bundler says the project is:
The plugin’s own
root option overrides it:
Inside a configuration
A relativesource, include or buildPath is read against the working directory, because that is what Style Dictionary itself does when it globs and when it writes. A configuration therefore behaves exactly as it does under Style Dictionary’s own CLI, run from the same directory.
sd.config.jsonc
root pointing at a subfolder. Absolute paths avoid the question entirely.
A destination is joined onto its
buildPath, as Style Dictionary joins it, so even an absolute destination lands under the build path.
