Skip to content

Commit

Permalink
chore: upgrade sd, specify source studio.json default
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenbroekema committed Jun 26, 2024
1 parent 13a1a27 commit 149bbd2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"magic-string": "^0.30.8",
"path-unified": "^0.1.0",
"prettier": "^3.2.5",
"style-dictionary": "4.0.0-prerelease.32",
"style-dictionary": "^4.0.0-prerelease.38",
"uuid": "^9.0.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/eject.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ async function ejectHandler(ev) {
let files = await getContents(inputFiles);

const { themes, config } = sdState;
if (JSON.stringify(config.source) === JSON.stringify(["**/*.json"])) {
if (JSON.stringify(config.source) === JSON.stringify(["studio.json"])) {
config.source = inputFiles;
}
const hasThemes = Object.keys(themes).length > 0;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/file-tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export async function createConfig() {
SD_CONFIG_PATH,
JSON.stringify(
{
source: ["**/*.json"],
source: ["studio.json"],
preprocessors: ["tokens-studio"],
platforms: {
css: {
Expand Down

0 comments on commit 149bbd2

Please sign in to comment.