build(docs): use node: prefix [ci skip]

This commit is contained in:
Eric Liu 2024-11-12 09:52:20 -08:00
commit e23a4d1994
2 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
// @ts-check // @ts-check
import fs from "fs"; import fs from "node:fs";
import path from "path"; import path from "node:path";
import githubSlugger from "github-slugger"; import githubSlugger from "github-slugger";
const { slug } = githubSlugger; const { slug } = githubSlugger;

View file

@ -1,4 +1,4 @@
import path from "path"; import path from "node:path";
import { mdsvex } from "mdsvex"; import { mdsvex } from "mdsvex";
import { parse, walk } from "svelte/compiler"; import { parse, walk } from "svelte/compiler";
import slug from "remark-slug"; import slug from "remark-slug";
@ -6,7 +6,7 @@ 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" assert { type: "json" };
import component_api from "./src/COMPONENT_API.json" assert { type: "json" }; import component_api from "./src/COMPONENT_API.json" assert { type: "json" };
import fs from "fs"; import fs from "node:fs";
import Prism from "prismjs"; import Prism from "prismjs";
import "prism-svelte"; import "prism-svelte";