mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 09:51:36 +00:00
chore: use import attributes instead of import assertions
This commit is contained in:
parent
f85edef386
commit
7754ea3691
3 changed files with 4 additions and 4 deletions
|
@ -4,8 +4,8 @@ import { parse, walk } from "svelte/compiler";
|
||||||
import slug from "remark-slug";
|
import slug from "remark-slug";
|
||||||
import visit from "unist-util-visit";
|
import visit from "unist-util-visit";
|
||||||
import { format } from "prettier";
|
import { format } from "prettier";
|
||||||
import pkg from "../package.json" assert { type: "json" };
|
import pkg from "../package.json" with { type: "json" };
|
||||||
import component_api from "./src/COMPONENT_API.json" assert { type: "json" };
|
import component_api from "./src/COMPONENT_API.json" with { type: "json" };
|
||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
import Prism from "prismjs";
|
import Prism from "prismjs";
|
||||||
import "prism-svelte";
|
import "prism-svelte";
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
import fs from "node:fs";
|
import fs from "node:fs";
|
||||||
import { globSync } from "tinyglobby";
|
import { globSync } from "tinyglobby";
|
||||||
import { sveld } from "sveld";
|
import { sveld } from "sveld";
|
||||||
import pkg from "../package.json" assert { type: "json" };
|
import pkg from "../package.json" with { type: "json" };
|
||||||
|
|
||||||
sveld({
|
sveld({
|
||||||
glob: true,
|
glob: true,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// @ts-check
|
// @ts-check
|
||||||
import fs from "node:fs";
|
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 { format } from "prettier";
|
||||||
import plugin from "prettier/plugins/typescript";
|
import plugin from "prettier/plugins/typescript";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue