From 6bb9dbc692cd521e16a0979b4eefe957c02d7ac3 Mon Sep 17 00:00:00 2001 From: lijianan <574980606@qq.com> Date: Mon, 5 Dec 2022 22:28:08 +0800 Subject: [PATCH] chore: remove useless node_modules (#39261) * chore: remore useless node_modules * fix * fix * fix * fix --- .dumi/theme/builtins/Previewer/fromDumiProps.tsx | 1 - package.json | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.dumi/theme/builtins/Previewer/fromDumiProps.tsx b/.dumi/theme/builtins/Previewer/fromDumiProps.tsx index f00d5872f5..435a9035f6 100644 --- a/.dumi/theme/builtins/Previewer/fromDumiProps.tsx +++ b/.dumi/theme/builtins/Previewer/fromDumiProps.tsx @@ -3,7 +3,6 @@ import React, { useEffect, useState } from 'react'; import JsonML from 'jsonml.js/lib/utils'; // @ts-ignore import toReactComponent from 'jsonml-to-react-element'; -// @ts-ignore import Prism from 'prismjs'; import { useLocation, useIntl, type IPreviewerProps } from 'dumi'; import { ping } from '../../utils'; diff --git a/package.json b/package.json index f8d13c9445..ce93caa2bf 100644 --- a/package.json +++ b/package.json @@ -180,6 +180,7 @@ "@types/jest-image-snapshot": "^5.1.0", "@types/jquery": "^3.5.14", "@types/lodash": "^4.14.139", + "@types/prismjs": "^1.26.0", "@types/puppeteer": "^7.0.4", "@types/qs": "^6.9.7", "@types/react": "^18.0.0", @@ -274,7 +275,6 @@ "react-draggable": "^4.4.3", "react-fast-marquee": "^1.2.1", "react-github-button": "^0.1.11", - "react-helmet-async": "~1.3.0", "react-highlight-words": "^0.18.0", "react-infinite-scroll-component": "^6.1.0", "react-resizable": "^3.0.1", @@ -288,7 +288,6 @@ "remove-files-webpack-plugin": "1.5.0", "rimraf": "^3.0.0", "rome": "^10.0.1", - "scrollama": "^3.0.0", "semver": "^7.3.5", "simple-git": "^3.0.0", "size-limit": "^8.0.0", @@ -299,7 +298,6 @@ "stylelint-declaration-block-no-ignored-properties": "^2.1.0", "stylelint-order": "^5.0.0", "sylvanas": "^0.6.1", - "theme-switcher": "^1.0.2", "ts-node": "^10.8.2", "typedoc": "^0.23.21", "typescript": "~4.9.3",