diff --git a/docs/svelte.config.js b/docs/svelte.config.js index 63d11b5d..71d658fc 100644 --- a/docs/svelte.config.js +++ b/docs/svelte.config.js @@ -4,8 +4,8 @@ import { parse, walk } from "svelte/compiler"; import slug from "remark-slug"; import visit from "unist-util-visit"; import { format } from "prettier"; -import pkg from "../package.json" assert { type: "json" }; -import component_api from "./src/COMPONENT_API.json" assert { type: "json" }; +import pkg from "../package.json" with { type: "json" }; +import component_api from "./src/COMPONENT_API.json" with { type: "json" }; import fs from "node:fs"; import Prism from "prismjs"; import "prism-svelte"; diff --git a/scripts/build-docs.js b/scripts/build-docs.js index 96fcff45..d6dbd736 100644 --- a/scripts/build-docs.js +++ b/scripts/build-docs.js @@ -2,7 +2,7 @@ import fs from "node:fs"; import { globSync } from "tinyglobby"; import { sveld } from "sveld"; -import pkg from "../package.json" assert { type: "json" }; +import pkg from "../package.json" with { type: "json" }; sveld({ glob: true, diff --git a/scripts/format-component-api.js b/scripts/format-component-api.js index df2e31ba..6ce0c669 100644 --- a/scripts/format-component-api.js +++ b/scripts/format-component-api.js @@ -1,6 +1,6 @@ // @ts-check import fs from "node:fs"; -import componentApi from "../docs/src/COMPONENT_API.json" assert { type: "json" }; +import componentApi from "../docs/src/COMPONENT_API.json" with { type: "json" }; import { format } from "prettier"; import plugin from "prettier/plugins/typescript";