Skip to content

Commit 676fef5

Browse files
committed
fix(tokens): support style-dictionary build in windows env
1 parent e9afc17 commit 676fef5

File tree

3 files changed

+34
-11
lines changed

3 files changed

+34
-11
lines changed

tokens/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"main": "dist/index.css",
1717
"devDependencies": {
1818
"@adobe/spectrum-tokens": "12.23.3",
19-
"@nxkit/style-dictionary": "^4.0.0",
19+
"@nxkit/style-dictionary": "^5.0.0",
2020
"postcss": "^8.4.33",
2121
"postcss-cli": "^11.0.0",
2222
"postcss-combine-duplicated-selectors": "^10.0.3",
@@ -27,7 +27,7 @@
2727
"postcss-rgb-mapping": "^1.1.0",
2828
"postcss-sorting": "^8.0.2",
2929
"prettier": "^2.8.8",
30-
"style-dictionary": "^3.9.1",
30+
"style-dictionary": "^3.9.2",
3131
"style-dictionary-sets": "^2.3.0"
3232
},
3333
"publishConfig": {

tokens/style-dictionary.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const tokensDir = path.dirname(tokensPath);
3838
const setNames = ["desktop", "mobile", "light", "dark", "darkest"];
3939

4040
module.exports = {
41-
source: [`${tokensDir}/src/*.json`],
41+
source: [path.join(tokensDir, "src/*.json")],
4242
platforms: {
4343
CSS: {
4444
buildPath: "dist/css/",

yarn.lock

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2252,6 +2252,13 @@
22522252
dependencies:
22532253
"@nx/devkit" "17.2.8"
22542254

2255+
"@nrwl/devkit@17.3.1":
2256+
version "17.3.1"
2257+
resolved "https://registry.yarnpkg.com/@nrwl/devkit/-/devkit-17.3.1.tgz#9fc67510926ee62b717d2146b34432bdd231ff24"
2258+
integrity sha512-MtHlsdErSz0Z1j8j+qAKUafWzMs3XcHgXmJomjUzect1jS/HtmbcDvdMv9GwVtk+67JD+7ca2CWjk2atv6dZdw==
2259+
dependencies:
2260+
"@nx/devkit" "17.3.1"
2261+
22552262
"@nrwl/devkit@>=15.5.2 < 16":
22562263
version "15.9.7"
22572264
resolved "https://registry.yarnpkg.com/@nrwl/devkit/-/devkit-15.9.7.tgz#14d19ec82ff4209c12147a97f1cdea05d8f6c087"
@@ -2336,6 +2343,20 @@
23362343
tmp "~0.2.1"
23372344
tslib "^2.3.0"
23382345

2346+
"@nx/devkit@17.3.1":
2347+
version "17.3.1"
2348+
resolved "https://registry.yarnpkg.com/@nx/devkit/-/devkit-17.3.1.tgz#ecaf2db7a66c0209d23a2e6165f5ca53db22e3b2"
2349+
integrity sha512-E44feT7x/pGTzMWSndjTAoBXvZYEdy2SU99O14LdW7atUK4gv0glKUfyq6nNFULrs6r173WKfJgfmJDL3l78lg==
2350+
dependencies:
2351+
"@nrwl/devkit" "17.3.1"
2352+
ejs "^3.1.7"
2353+
enquirer "~2.3.6"
2354+
ignore "^5.0.4"
2355+
semver "7.5.3"
2356+
tmp "~0.2.1"
2357+
tslib "^2.3.0"
2358+
yargs-parser "21.1.1"
2359+
23392360
"@nx/nx-darwin-arm64@17.2.8":
23402361
version "17.2.8"
23412362
resolved "https://registry.yarnpkg.com/@nx/nx-darwin-arm64/-/nx-darwin-arm64-17.2.8.tgz#26645c9548d5e387b43c06fccfa18e2c1f08055e"
@@ -2386,14 +2407,16 @@
23862407
resolved "https://registry.yarnpkg.com/@nx/nx-win32-x64-msvc/-/nx-win32-x64-msvc-17.2.8.tgz#8a86ff250021ad47686b58f1840b348a209b1158"
23872408
integrity sha512-HTqDv+JThlLzbcEm/3f+LbS5/wYQWzb5YDXbP1wi7nlCTihNZOLNqGOkEmwlrR5tAdNHPRpHSmkYg4305W0CtA==
23882409

2389-
"@nxkit/style-dictionary@^4.0.0":
2390-
version "4.0.0"
2391-
resolved "https://registry.yarnpkg.com/@nxkit/style-dictionary/-/style-dictionary-4.0.0.tgz#62210ee29b542496f08db41c988ca8afcf0c3c50"
2392-
integrity sha512-cQWOSVSTD3riJzZ6GxY+xqzlpkduIX+3LOWcpvAWe5q1Q3sRyjU/PNwqJjfCAhLzWzExTdCmB8FL2Dn/auyouQ==
2410+
"@nxkit/style-dictionary@^5.0.0":
2411+
version "5.0.0"
2412+
resolved "https://registry.yarnpkg.com/@nxkit/style-dictionary/-/style-dictionary-5.0.0.tgz#1a5cf44ef1342fba61d6865a7306b91b1f413de2"
2413+
integrity sha512-bBbPcE10TwngwSF5ItSmoJPOMrmVKgbwC0sI2eEkR7zt/pyrPzrB58AQ9Zan5pSr/sGrUFEHoHdv8Hi9qTq5tA==
23932414
dependencies:
2415+
"@nx/devkit" "17.3.1"
23942416
"@phenomnomnominal/tsquery" "^5.0.0"
23952417
fs-extra "^11.1.0"
23962418
ts-node "10.9.1"
2419+
tslib "^2.3.0"
23972420

23982421
"@octokit/auth-token@^2.4.4":
23992422
version "2.5.0"
@@ -16718,10 +16741,10 @@ style-dictionary-sets@^2.3.0:
1671816741
dependencies:
1671916742
deepmerge "^4.2.2"
1672016743

16721-
style-dictionary@^3.9.1:
16722-
version "3.9.1"
16723-
resolved "https://registry.yarnpkg.com/style-dictionary/-/style-dictionary-3.9.1.tgz#4cd1d426eb6918eca32291130eecebb14ef98a08"
16724-
integrity sha512-odyTC7wMYE4B3VOhc3LW1g0PCz9g+0WZZt5qp8KpWP9POlhw0+8MYiPQYwYfBmu4MEs1qbZ+GHySu4TTjQPH9A==
16744+
style-dictionary@^3.9.2:
16745+
version "3.9.2"
16746+
resolved "https://registry.yarnpkg.com/style-dictionary/-/style-dictionary-3.9.2.tgz#5b3ecd4af28a64f4855db71c90d24fd288f27318"
16747+
integrity sha512-M2pcQ6hyRtqHOh+NyT6T05R3pD/gwNpuhREBKvxC1En0vyywx+9Wy9nXWT1SZ9ePzv1vAo65ItnpA16tT9ZUCg==
1672516748
dependencies:
1672616749
chalk "^4.0.0"
1672716750
change-case "^4.1.2"

0 commit comments

Comments
 (0)