Skip to content

Commit

Permalink
feat: update paths for build-tokens.js
Browse files Browse the repository at this point in the history
  • Loading branch information
monteri committed Sep 12, 2023
1 parent 4b3e0b0 commit ffce807
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/build-tokens.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ async function buildTokensCommand(commandArgs) {
const themes = args.themes || ['light'];

const coreConfig = {
include: [path.resolve(__dirname, 'src/core/**/*.json')],
include: [path.resolve(__dirname, '../tokens/src/core/**/*.json')],
source: tokensSource ? [`${tokensSource}/core/**/*.json`] : [],
platforms: {
css: {
Expand Down Expand Up @@ -47,7 +47,7 @@ async function buildTokensCommand(commandArgs) {

const getStyleDictionaryConfig = (themeVariant) => ({
...coreConfig,
include: [...coreConfig.include, path.resolve(__dirname, `src/themes/${themeVariant}/**/*.json`)],
include: [...coreConfig.include, path.resolve(__dirname, `../tokens/src/themes/${themeVariant}/**/*.json`)],
source: tokensSource ? [`${tokensSource}/themes/${themeVariant}/**/*.json`] : [],
transform: {
'color/sass-color-functions': {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"build-types": "tsc --emitDeclarationOnly",
"playroom:start": "npm run playroom:start --workspace=www",
"playroom:build": "npm run playroom:build --workspace=www",
"build-tokens": "./bin/paragon-scripts.js build-tokens --build-dir ./styles/css",
"build-tokens": "./bin/paragon-scripts.js build-tokens --build-dir ../styles/css",
"replace-variables-usage-with-css": "./bin/paragon-scripts.js replace-variables -p src -t usage",
"replace-variables-definition-with-css": "./bin/paragon-scripts.js replace-variables -p src -t definition"
},
Expand Down

0 comments on commit ffce807

Please sign in to comment.