website: replace js-yaml with yaml (#18280)

This commit is contained in:
fisker Cheung authored and GitHub committed 2025-11-19 02:15:58 +08:00
1 parent 238c66f363
commit 84082f5496
3 files changed
+24 -24

No files matched your search

+1 -1
View File
@@ -2,8 +2,8 @@
import fs from "node:fs";
import { createRequire } from "node:module";
import { load as parseYaml } from "js-yaml";
import { themes as prismThemes } from "prism-react-renderer";
import { parse as parseYaml } from "yaml";
import llmsTxtPlugin from "./plugins/llms-txt-plugin.mjs";
const require = createRequire(import.meta.url);
+2 -3
View File
@@ -31,11 +31,10 @@
"@docusaurus/faster": "3.9.2",
"@docusaurus/module-type-aliases": "3.9.2",
"@docusaurus/types": "3.9.2",
"@types/js-yaml": "4.0.9",
"@vitejs/plugin-react": "5.1.1",
"concurrently": "9.2.1",
"js-yaml": "4.1.1",
"vite": "7.2.2"
"vite": "7.2.2",
"yaml": "2.8.1"
},
"browserslist": {
"production": [
+21 -20
View File
@@ -4386,13 +4386,6 @@ __metadata:
languageName: node
linkType: hard
"@types/js-yaml@npm:4.0.9":
version: 4.0.9
resolution: "@types/js-yaml@npm:4.0.9"
checksum: 10/a0ce595db8a987904badd21fc50f9f444cb73069f4b95a76cc222e0a17b3ff180669059c763ec314bc4c3ce284379177a9da80e83c5f650c6c1310cafbfaa8e6
languageName: node
linkType: hard
"@types/json-schema@npm:*, @types/json-schema@npm:^7.0.15, @types/json-schema@npm:^7.0.8, @types/json-schema@npm:^7.0.9":
version: 7.0.15
resolution: "@types/json-schema@npm:7.0.15"
@@ -8587,17 +8580,6 @@ __metadata:
languageName: node
linkType: hard
"js-yaml@npm:4.1.1, js-yaml@npm:^4.1.0":
version: 4.1.1
resolution: "js-yaml@npm:4.1.1"
dependencies:
argparse: "npm:^2.0.1"
bin:
js-yaml: bin/js-yaml.js
checksum: 10/a52d0519f0f4ef5b4adc1cde466cb54c50d56e2b4a983b9d5c9c0f2f99462047007a6274d7e95617a21d3c91fde3ee6115536ed70991cd645ba8521058b78f77
languageName: node
linkType: hard
"js-yaml@npm:^3.13.1":
version: 3.14.1
resolution: "js-yaml@npm:3.14.1"
@@ -8610,6 +8592,17 @@ __metadata:
languageName: node
linkType: hard
"js-yaml@npm:^4.1.0":
version: 4.1.1
resolution: "js-yaml@npm:4.1.1"
dependencies:
argparse: "npm:^2.0.1"
bin:
js-yaml: bin/js-yaml.js
checksum: 10/a52d0519f0f4ef5b4adc1cde466cb54c50d56e2b4a983b9d5c9c0f2f99462047007a6274d7e95617a21d3c91fde3ee6115536ed70991cd645ba8521058b78f77
languageName: node
linkType: hard
"jsesc@npm:^3.0.2":
version: 3.1.0
resolution: "jsesc@npm:3.1.0"
@@ -12348,18 +12341,17 @@ __metadata:
"@docusaurus/types": "npm:3.9.2"
"@mdx-js/react": "npm:3.1.1"
"@sandhose/prettier-animated-logo": "npm:1.0.3"
"@types/js-yaml": "npm:4.0.9"
"@vitejs/plugin-react": "npm:5.1.1"
clsx: "npm:2.1.1"
codemirror-graphql: "npm:2.2.4"
concurrently: "npm:9.2.1"
js-yaml: "npm:4.1.1"
prism-react-renderer: "npm:2.4.1"
react: "npm:18.3.1"
react-dom: "npm:18.3.1"
react-markdown: "npm:10.1.0"
react-tweet: "npm:3.2.2"
vite: "npm:7.2.2"
yaml: "npm:2.8.1"
languageName: unknown
linkType: soft
@@ -14121,6 +14113,15 @@ __metadata:
languageName: node
linkType: hard
"yaml@npm:2.8.1":
version: 2.8.1
resolution: "yaml@npm:2.8.1"
bin:
yaml: bin.mjs
checksum: 10/eae07b3947d405012672ec17ce27348aea7d1fa0534143355d24a43a58f5e05652157ea2182c4fe0604f0540be71f99f1173f9d61018379404507790dff17665
languageName: node
linkType: hard
"yargs-parser@npm:^21.1.1":
version: 21.1.1
resolution: "yargs-parser@npm:21.1.1"