@adobe/spectrum-tokens 14.2.0 → 14.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# [**@adobe/spectrum-tokens**](https://github.com/adobe/spectrum-design-data)
|
|
2
2
|
|
|
3
|
+
## 14.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#709](https://github.com/adobe/spectrum-design-data/pull/709) [`49ad47b`](https://github.com/adobe/spectrum-design-data/commit/49ad47bea61952f84eb86b214954136049aca376) Thanks [@GarthDB](https://github.com/GarthDB)! - Use dynamic import for prettier in writeJson so the package loads without prettier
|
|
8
|
+
when used outside the monorepo (e.g. spectrum-design-data-mcp via npx).
|
|
9
|
+
|
|
3
10
|
## 14.2.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
package/index.js
CHANGED
|
@@ -16,7 +16,6 @@ import { basename, resolve } from "path";
|
|
|
16
16
|
import { readFile } from "fs/promises";
|
|
17
17
|
import * as url from "url";
|
|
18
18
|
import { writeFile } from "fs/promises";
|
|
19
|
-
import { format } from "prettier";
|
|
20
19
|
|
|
21
20
|
export const __dirname = url.fileURLToPath(new URL(".", import.meta.url));
|
|
22
21
|
|
|
@@ -28,6 +27,7 @@ export const readJson = async (fileName) =>
|
|
|
28
27
|
JSON.parse(await readFile(fileName, "utf8"));
|
|
29
28
|
|
|
30
29
|
export const writeJson = async (fileName, jsonData) => {
|
|
30
|
+
const { format } = await import("prettier");
|
|
31
31
|
await writeFile(
|
|
32
32
|
fileName,
|
|
33
33
|
await format(JSON.stringify(jsonData), { parser: "json-stringify" }),
|