Skip to content

Commit 1e860c4

Browse files
mrcjhicksGarthDB
andauthored
SDS-15337: Standard panel gripper color update (#593)
* [create-pull-request] automated change * chore: add changeset for SDS-15337: Standard panel gripper color update * fix(tools): replace experimental JSON imports with fs.readFileSync Replaces experimental JSON module imports with standard fs.readFileSync calls to eliminate Node.js experimental warnings when running CLI tools. --------- Co-authored-by: GarthDB <[email protected]> Co-authored-by: mrcjhicks <[email protected]>
1 parent da4b894 commit 1e860c4

File tree

5 files changed

+30
-5
lines changed

5 files changed

+30
-5
lines changed

.changeset/24aeff17e430.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
"@adobe/spectrum-tokens": patch
3+
---
4+
5+
SDS-15337: Standard panel gripper color update
6+
7+
Source: [spectrum-tokens-studio-data#283](https://github.com/adobe/spectrum-tokens-studio-data/pull/283)
8+
Author: @mrcjhicks
9+
10+
## Token Changes
11+
12+
### Updated (1)
13+
14+
- `standard-panel-gripper-color`
15+
- `value`: `{gray-200}` -> `{gray-500}`

packages/tokens/src/color-component.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@
457457
"standard-panel-gripper-color": {
458458
"component": "standard-panel",
459459
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/token-types/alias.json",
460-
"value": "{gray-200}",
460+
"value": "{gray-500}",
461461
"uuid": "71840c7b-acdd-45b9-a228-5091591f5405"
462462
},
463463
"bar-panel-gripper-color": {
@@ -595,4 +595,4 @@
595595
"value": "{accent-background-color-default}",
596596
"uuid": "95685612-09b7-477f-9c13-06eb58abe5c8"
597597
}
598-
}
598+
}

tools/component-diff-generator/src/cli.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@ import { fileURLToPath } from "url";
2020

2121
import componentDiff from "./lib/component-diff.js";
2222
import { ComponentLoader } from "./lib/component-file-import.js";
23-
import packageJson from "../package.json" with { type: "json" };
23+
import { readFileSync } from "fs";
2424

2525
const red = chalk.hex("F37E7E");
26+
const packageJson = JSON.parse(
27+
readFileSync(new URL("../package.json", import.meta.url), "utf8"),
28+
);
2629
const { version } = packageJson;
2730

2831
const __filename = fileURLToPath(import.meta.url);

tools/diff-generator/src/lib/cli.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@ import { Command } from "commander";
1818
import chalk from "chalk";
1919
import { HandlebarsFormatter } from "./formatterHandlebars.js";
2020
import storeOutput from "./store-output.js";
21-
import packageJson from "../../package.json" with { type: "json" };
21+
import { readFileSync } from "fs";
2222

2323
const red = chalk.hex("F37E7E");
24+
const packageJson = JSON.parse(
25+
readFileSync(new URL("../../package.json", import.meta.url), "utf8"),
26+
);
2427
const { version } = packageJson;
2528

2629
// ===== PHASE 1: PURE UTILITY FUNCTIONS (easily testable) =====

tools/token-changeset-generator/src/cli.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ governing permissions and limitations under the License.
1414

1515
import { Command } from "commander";
1616
import { generateTokenChangeset } from "./index.js";
17-
import packageJson from "../package.json" with { type: "json" };
17+
import { readFileSync } from "fs";
18+
19+
const packageJson = JSON.parse(
20+
readFileSync(new URL("../package.json", import.meta.url), "utf8"),
21+
);
1822

1923
const program = new Command();
2024

0 commit comments

Comments
 (0)