{"id":73380,"date":"2026-02-07T15:35:45","date_gmt":"2026-02-07T07:35:45","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/73380.html"},"modified":"2026-02-07T15:35:45","modified_gmt":"2026-02-07T07:35:45","slug":"react%e5%86%85%e9%80%90%e8%a1%8c%e8%a7%a3%e9%87%8a%e8%bf%99%e4%b8%aa-package-json-%e6%96%87%e4%bb%b6%ef%bc%8c%e6%9c%80%e8%bf%91%e6%90%9e%e4%ba%86%e4%b8%aa%e5%b7%a5%e5%8e%82ai%e7%94%9f%e4%ba%a7","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/73380.html","title":{"rendered":"React\u5185\u9010\u884c\u89e3\u91ca\u8fd9\u4e2a package.json \u6587\u4ef6\uff0c\u6700\u8fd1\u641e\u4e86\u4e2a\u5de5\u5382AI\u751f\u4ea7\u5e73\u53f0\uff0c\u987a\u4fbf\u6765\u5b66\u4e60\u4e00\u4e0b"},"content":{"rendered":"<p>React\u5185\u9010\u884c\u89e3\u91ca\u8fd9\u4e2a package.json \u6587\u4ef6&#xff0c;\u6700\u8fd1\u641e\u4e86\u4e2a\u5de5\u5382AI\u751f\u4ea7\u5e73\u53f0&#xff0c;\u987a\u4fbf\u6765\u5b66\u4e60\u4e00\u4e0b<\/p>\n<p><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token string\">&#034;name&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;dkjj-msc-product&#034;<\/span><span class=\"token punctuation\">,<\/span>       <span class=\"token comment\">\/\/ \u9879\u76ee\u540d\u79f0&#xff1a;dkjj-msc-product<\/span><br \/>\n  <span class=\"token string\">&#034;version&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;1.0.24&#034;<\/span><span class=\"token punctuation\">,<\/span>              <span class=\"token comment\">\/\/ \u9879\u76ee\u7248\u672c\u53f7&#xff1a;1.0.24<\/span><br \/>\n  <span class=\"token string\">&#034;private&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token boolean\">true<\/span><span class=\"token punctuation\">,<\/span>                  <span class=\"token comment\">\/\/ \u6807\u8bb0\u4e3a\u79c1\u6709\u5305&#xff0c;\u4e0d\u4f1a\u53d1\u5e03\u5230npm<\/span><br \/>\n  <span class=\"token string\">&#034;author&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;\u968f\u98ce\u4e00\u6837\u81ea\u7531&#034;<\/span><span class=\"token punctuation\">,<\/span>          <span class=\"token comment\">\/\/ \u4f5c\u8005&#xff1a;\u968f\u98ce\u4e00\u6837\u81ea\u7531<\/span><br \/>\n  <span class=\"token string\">&#034;scripts&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span>                      <span class=\"token comment\">\/\/ \u811a\u672c\u547d\u4ee4\u914d\u7f6e<\/span><br \/>\n    <span class=\"token string\">&#034;build:zd-jj3-dev&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;cross-env APP_ENV&#061;dev max build&#034;<\/span><span class=\"token punctuation\">,<\/span>    <span class=\"token comment\">\/\/ \u5f00\u53d1\u73af\u5883\u6784\u5efa\u547d\u4ee4<\/span><br \/>\n    <span class=\"token string\">&#034;build:zd-jj3-prod&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;cross-env APP_ENV&#061;prod max build&#034;<\/span><span class=\"token punctuation\">,<\/span>  <span class=\"token comment\">\/\/ \u751f\u4ea7\u73af\u5883\u6784\u5efa\u547d\u4ee4<\/span><br \/>\n    <span class=\"token string\">&#034;build:zd-jj3-fat&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;cross-env APP_ENV&#061;test max build&#034;<\/span><span class=\"token punctuation\">,<\/span>   <span class=\"token comment\">\/\/ \u6d4b\u8bd5\u73af\u5883\u6784\u5efa\u547d\u4ee4<\/span><br \/>\n    <span class=\"token string\">&#034;dev&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;npm run dev:dev&#034;<\/span><span class=\"token punctuation\">,<\/span>        <span class=\"token comment\">\/\/ \u5f00\u53d1\u547d\u4ee4\u522b\u540d&#xff0c;\u6307\u5411dev:dev<\/span><br \/>\n    <span class=\"token string\">&#034;dev:dev&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;cross-env APP_ENV&#061;dev max dev&#034;<\/span><span class=\"token punctuation\">,<\/span>              <span class=\"token comment\">\/\/ \u5f00\u53d1\u73af\u5883\u542f\u52a8\u547d\u4ee4<\/span><br \/>\n    <span class=\"token string\">&#034;dev:prod&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;cross-env APP_ENV&#061;prod max dev&#034;<\/span><span class=\"token punctuation\">,<\/span>            <span class=\"token comment\">\/\/ \u751f\u4ea7\u73af\u5883\u542f\u52a8\u547d\u4ee4<\/span><br \/>\n    <span class=\"token string\">&#034;dev:test&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;cross-env APP_ENV&#061;test max dev&#034;<\/span><span class=\"token punctuation\">,<\/span>            <span class=\"token comment\">\/\/ \u6d4b\u8bd5\u73af\u5883\u542f\u52a8\u547d\u4ee4<\/span><br \/>\n    <span class=\"token string\">&#034;dev:local&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;cross-env APP_ENV&#061;dev LOCAL_ENV&#061;development max dev&#034;<\/span><span class=\"token punctuation\">,<\/span>  <span class=\"token comment\">\/\/ \u672c\u5730\u5f00\u53d1\u73af\u5883\u542f\u52a8<\/span><br \/>\n    <span class=\"token string\">&#034;dev:test_local&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;cross-env APP_ENV&#061;test LOCAL_ENV&#061;development TEST_LOCAL_ENV&#061;dev max dev&#034;<\/span><span class=\"token punctuation\">,<\/span>  <span class=\"token comment\">\/\/ \u672c\u5730\u6d4b\u8bd5\u73af\u5883\u542f\u52a8<\/span><br \/>\n    <span class=\"token string\">&#034;format&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;prettier &#8211;write \\\\&#034;src\/**\/*.{js,jsx,tsx,ts,css,less,html,md,json}\\\\&#034;&#034;<\/span><span class=\"token punctuation\">,<\/span>  <span class=\"token comment\">\/\/ \u4ee3\u7801\u683c\u5f0f\u5316\u547d\u4ee4<\/span><br \/>\n    <span class=\"token string\">&#034;postinstall&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;max setup&#034;<\/span><span class=\"token punctuation\">,<\/span>      <span class=\"token comment\">\/\/ \u5b89\u88c5\u4f9d\u8d56\u540e\u6267\u884c\u7684\u547d\u4ee4<\/span><br \/>\n    <span class=\"token string\">&#034;setup&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;max setup&#034;<\/span><span class=\"token punctuation\">,<\/span>            <span class=\"token comment\">\/\/ \u9879\u76ee\u521d\u59cb\u5316\u547d\u4ee4<\/span><br \/>\n    <span class=\"token string\">&#034;lint&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;eslint . &#8211;ext .js,.ts,.jsx,.tsx&#034;<\/span><span class=\"token punctuation\">,<\/span>  <span class=\"token comment\">\/\/ \u4ee3\u7801\u68c0\u67e5\u547d\u4ee4<\/span><br \/>\n    <span class=\"token string\">&#034;lint:fix&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;eslint . &#8211;ext .js,.ts,.jsx,.tsx &#8211;fix&#034;<\/span><span class=\"token punctuation\">,<\/span>  <span class=\"token comment\">\/\/ \u4ee3\u7801\u68c0\u67e5\u5e76\u81ea\u52a8\u4fee\u590d<\/span><br \/>\n    <span class=\"token string\">&#034;lint:style&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;stylelint \\\\&#034;src\/**\/*.{htm,html,css,less}\\\\&#034;&#034;<\/span><span class=\"token punctuation\">,<\/span>  <span class=\"token comment\">\/\/ \u6837\u5f0f\u4ee3\u7801\u68c0\u67e5<\/span><br \/>\n    <span class=\"token string\">&#034;lint:style:fix&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;stylelint \\\\&#034;src\/**\/*.{htm,html,css,less}\\\\&#034; &#8211;fix&#034;<\/span><span class=\"token punctuation\">,<\/span>  <span class=\"token comment\">\/\/ \u6837\u5f0f\u4ee3\u7801\u68c0\u67e5\u5e76\u4fee\u590d<\/span><br \/>\n    <span class=\"token string\">&#034;stylelint-check&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;stylelint-config-prettier-check&#034;<\/span><span class=\"token punctuation\">,<\/span>  <span class=\"token comment\">\/\/ \u68c0\u67e5stylelint\u548cprettier\u914d\u7f6e\u662f\u5426\u51b2\u7a81<\/span><br \/>\n    <span class=\"token string\">&#034;prepare&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;husky install&#034;<\/span><span class=\"token punctuation\">,<\/span>      <span class=\"token comment\">\/\/ \u5b89\u88c5husky git\u94a9\u5b50<\/span><br \/>\n    <span class=\"token string\">&#034;start&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;npm run dev&#034;<\/span>          <span class=\"token comment\">\/\/ \u542f\u52a8\u547d\u4ee4\u522b\u540d<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token string\">&#034;dependencies&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span>                  <span class=\"token comment\">\/\/ \u751f\u4ea7\u73af\u5883\u4f9d\u8d56<\/span><br \/>\n    <span class=\"token string\">&#034;&#064;ant-design\/icons&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^5.3.7&#034;<\/span><span class=\"token punctuation\">,<\/span>   <span class=\"token comment\">\/\/ Ant Design\u56fe\u6807\u5e93<\/span><br \/>\n    <span class=\"token string\">&#034;&#064;dnd-kit\/core&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^6.1.0&#034;<\/span><span class=\"token punctuation\">,<\/span>       <span class=\"token comment\">\/\/ \u62d6\u62fd\u529f\u80fd\u6838\u5fc3\u5e93<\/span><br \/>\n    <span class=\"token string\">&#034;&#064;dnd-kit\/modifiers&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^7.0.0&#034;<\/span><span class=\"token punctuation\">,<\/span>  <span class=\"token comment\">\/\/ \u62d6\u62fd\u4fee\u9970\u7b26<\/span><br \/>\n    <span class=\"token string\">&#034;&#064;dnd-kit\/sortable&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^8.0.0&#034;<\/span><span class=\"token punctuation\">,<\/span>   <span class=\"token comment\">\/\/ \u62d6\u62fd\u6392\u5e8f\u529f\u80fd<\/span><br \/>\n    <span class=\"token string\">&#034;&#064;dnd-kit\/utilities&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^3.2.2&#034;<\/span><span class=\"token punctuation\">,<\/span>  <span class=\"token comment\">\/\/ \u62d6\u62fd\u5de5\u5177\u51fd\u6570<\/span><br \/>\n    <span class=\"token string\">&#034;&#064;humi-ui\/table&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;file:src\/packages\/&#064;humi-ui\/table&#034;<\/span><span class=\"token punctuation\">,<\/span>  <span class=\"token comment\">\/\/ \u81ea\u5b9a\u4e49\u8868\u683c\u7ec4\u4ef6<\/span><br \/>\n    <span class=\"token string\">&#034;&#064;humi\/print-design&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;file:src\/packages\/&#064;humi\/print-design&#034;<\/span><span class=\"token punctuation\">,<\/span>  <span class=\"token comment\">\/\/ \u81ea\u5b9a\u4e49\u6253\u5370\u8bbe\u8ba1\u7ec4\u4ef6<\/span><br \/>\n    <span class=\"token string\">&#034;&#064;umijs\/max&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;4.0.13&#034;<\/span><span class=\"token punctuation\">,<\/span>          <span class=\"token comment\">\/\/ UmiJS\u6846\u67b6<\/span><br \/>\n    <span class=\"token string\">&#034;ahooks&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^3.7.8&#034;<\/span><span class=\"token punctuation\">,<\/span>              <span class=\"token comment\">\/\/ React Hooks\u5de5\u5177\u5e93<\/span><br \/>\n    <span class=\"token string\">&#034;antd&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^5.5.0&#034;<\/span><span class=\"token punctuation\">,<\/span>                <span class=\"token comment\">\/\/ Ant Design UI\u7ec4\u4ef6\u5e93<\/span><br \/>\n    <span class=\"token string\">&#034;axios&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^0.27.2&#034;<\/span><span class=\"token punctuation\">,<\/span>              <span class=\"token comment\">\/\/ HTTP\u8bf7\u6c42\u5e93<\/span><br \/>\n    <span class=\"token string\">&#034;click-to-react-component&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;1.1.0&#034;<\/span><span class=\"token punctuation\">,<\/span>  <span class=\"token comment\">\/\/ \u70b9\u51fb\u8df3\u8f6cReact\u7ec4\u4ef6\u5de5\u5177<\/span><br \/>\n    <span class=\"token string\">&#034;dayjs&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^1.11.11&#034;<\/span><span class=\"token punctuation\">,<\/span>             <span class=\"token comment\">\/\/ \u65e5\u671f\u5904\u7406\u5e93<\/span><br \/>\n    <span class=\"token string\">&#034;echarts&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;5.4.1&#034;<\/span><span class=\"token punctuation\">,<\/span>              <span class=\"token comment\">\/\/ \u56fe\u8868\u5e93<\/span><br \/>\n    <span class=\"token string\">&#034;js-cookie&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^3.0.1&#034;<\/span><span class=\"token punctuation\">,<\/span>           <span class=\"token comment\">\/\/ Cookie\u64cd\u4f5c\u5e93<\/span><br \/>\n    <span class=\"token string\">&#034;lodash&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^4.17.21&#034;<\/span><span class=\"token punctuation\">,<\/span>            <span class=\"token comment\">\/\/ JavaScript\u5de5\u5177\u5e93<\/span><br \/>\n    <span class=\"token string\">&#034;moment&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^2.30.1&#034;<\/span><span class=\"token punctuation\">,<\/span>             <span class=\"token comment\">\/\/ \u65e5\u671f\u5904\u7406\u5e93<\/span><br \/>\n    <span class=\"token string\">&#034;prop-types&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^15.8.1&#034;<\/span><span class=\"token punctuation\">,<\/span>         <span class=\"token comment\">\/\/ React\u5c5e\u6027\u7c7b\u578b\u68c0\u67e5<\/span><br \/>\n    <span class=\"token string\">&#034;react-activation&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^0.13.4&#034;<\/span><span class=\"token punctuation\">,<\/span>   <span class=\"token comment\">\/\/ React\u72b6\u6001\u4fdd\u6301<\/span><br \/>\n    <span class=\"token string\">&#034;react-dnd&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^16.0.1&#034;<\/span><span class=\"token punctuation\">,<\/span>          <span class=\"token comment\">\/\/ React\u62d6\u62fd\u5e93<\/span><br \/>\n    <span class=\"token string\">&#034;react-dnd-html5-backend&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^16.0.1&#034;<\/span><span class=\"token punctuation\">,<\/span>  <span class=\"token comment\">\/\/ React DND\u7684HTML5\u540e\u7aef<\/span><br \/>\n    <span class=\"token string\">&#034;react-resizable&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^3.0.5&#034;<\/span><span class=\"token punctuation\">,<\/span>     <span class=\"token comment\">\/\/ React\u53ef\u8c03\u6574\u5927\u5c0f\u7ec4\u4ef6<\/span><br \/>\n    <span class=\"token string\">&#034;react-sortable-hoc&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^2.0.0&#034;<\/span>   <span class=\"token comment\">\/\/ React\u6392\u5e8f\u9ad8\u9636\u7ec4\u4ef6<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token string\">&#034;devDependencies&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span>               <span class=\"token comment\">\/\/ \u5f00\u53d1\u73af\u5883\u4f9d\u8d56<\/span><br \/>\n    <span class=\"token string\">&#034;&#064;commitlint\/cli&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^17.1.1&#034;<\/span><span class=\"token punctuation\">,<\/span>    <span class=\"token comment\">\/\/ Git\u63d0\u4ea4\u4fe1\u606f\u68c0\u67e5\u5de5\u5177<\/span><br \/>\n    <span class=\"token string\">&#034;&#064;commitlint\/config-conventional&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^17.1.0&#034;<\/span><span class=\"token punctuation\">,<\/span>  <span class=\"token comment\">\/\/ \u5e38\u89c4\u63d0\u4ea4\u4fe1\u606f\u914d\u7f6e<\/span><br \/>\n    <span class=\"token string\">&#034;&#064;types\/react&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^18.0.0&#034;<\/span><span class=\"token punctuation\">,<\/span>       <span class=\"token comment\">\/\/ React\u7c7b\u578b\u5b9a\u4e49<\/span><br \/>\n    <span class=\"token string\">&#034;&#064;types\/react-dom&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^18.0.0&#034;<\/span><span class=\"token punctuation\">,<\/span>   <span class=\"token comment\">\/\/ React DOM\u7c7b\u578b\u5b9a\u4e49<\/span><br \/>\n    <span class=\"token string\">&#034;&#064;typescript-eslint\/eslint-plugin&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^5.35.1&#034;<\/span><span class=\"token punctuation\">,<\/span>  <span class=\"token comment\">\/\/ TypeScript ESLint\u63d2\u4ef6<\/span><br \/>\n    <span class=\"token string\">&#034;cross-env&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^7.0.3&#034;<\/span><span class=\"token punctuation\">,<\/span>           <span class=\"token comment\">\/\/ \u8de8\u5e73\u53f0\u73af\u5883\u53d8\u91cf\u8bbe\u7f6e<\/span><br \/>\n    <span class=\"token string\">&#034;eslint&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^8.22.0&#034;<\/span><span class=\"token punctuation\">,<\/span>             <span class=\"token comment\">\/\/ JavaScript\u4ee3\u7801\u68c0\u67e5\u5de5\u5177<\/span><br \/>\n    <span class=\"token string\">&#034;eslint-config-prettier&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^8.5.0&#034;<\/span><span class=\"token punctuation\">,<\/span>  <span class=\"token comment\">\/\/ ESLint\u4e0ePrettier\u96c6\u6210\u914d\u7f6e<\/span><br \/>\n    <span class=\"token string\">&#034;eslint-plugin-prettier&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^4.2.1&#034;<\/span><span class=\"token punctuation\">,<\/span>  <span class=\"token comment\">\/\/ ESLint\u7684Prettier\u63d2\u4ef6<\/span><br \/>\n    <span class=\"token string\">&#034;husky&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^8.0.1&#034;<\/span><span class=\"token punctuation\">,<\/span>               <span class=\"token comment\">\/\/ Git\u94a9\u5b50\u5de5\u5177<\/span><br \/>\n    <span class=\"token string\">&#034;mddir&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^1.1.1&#034;<\/span><span class=\"token punctuation\">,<\/span>               <span class=\"token comment\">\/\/ \u76ee\u5f55\u7ed3\u6784\u751f\u6210\u5de5\u5177<\/span><br \/>\n    <span class=\"token string\">&#034;postcss&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^8.4.16&#034;<\/span><span class=\"token punctuation\">,<\/span>            <span class=\"token comment\">\/\/ CSS\u8f6c\u6362\u5de5\u5177<\/span><br \/>\n    <span class=\"token string\">&#034;postcss-html&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^1.5.0&#034;<\/span><span class=\"token punctuation\">,<\/span>        <span class=\"token comment\">\/\/ PostCSS HTML\u89e3\u6790\u5668<\/span><br \/>\n    <span class=\"token string\">&#034;postcss-less&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^6.0.0&#034;<\/span><span class=\"token punctuation\">,<\/span>        <span class=\"token comment\">\/\/ PostCSS Less\u89e3\u6790\u5668<\/span><br \/>\n    <span class=\"token string\">&#034;prettier&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^2.7.1&#034;<\/span><span class=\"token punctuation\">,<\/span>            <span class=\"token comment\">\/\/ \u4ee3\u7801\u683c\u5f0f\u5316\u5de5\u5177<\/span><br \/>\n    <span class=\"token string\">&#034;prettier-plugin-organize-imports&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^2&#034;<\/span><span class=\"token punctuation\">,<\/span>  <span class=\"token comment\">\/\/ Prettier\u5bfc\u5165\u6392\u5e8f\u63d2\u4ef6<\/span><br \/>\n    <span class=\"token string\">&#034;prettier-plugin-packagejson&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^2&#034;<\/span><span class=\"token punctuation\">,<\/span>  <span class=\"token comment\">\/\/ Prettier\u7684package.json\u683c\u5f0f\u5316\u63d2\u4ef6<\/span><br \/>\n    <span class=\"token string\">&#034;stylelint&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^14.11.0&#034;<\/span><span class=\"token punctuation\">,<\/span>         <span class=\"token comment\">\/\/ CSS\u4ee3\u7801\u68c0\u67e5\u5de5\u5177<\/span><br \/>\n    <span class=\"token string\">&#034;stylelint-config-prettier&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^9.0.3&#034;<\/span><span class=\"token punctuation\">,<\/span>  <span class=\"token comment\">\/\/ Stylelint\u4e0ePrettier\u96c6\u6210\u914d\u7f6e<\/span><br \/>\n    <span class=\"token string\">&#034;stylelint-config-recommended-less&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^1.0.4&#034;<\/span><span class=\"token punctuation\">,<\/span>  <span class=\"token comment\">\/\/ Less\u63a8\u8350\u914d\u7f6e<\/span><br \/>\n    <span class=\"token string\">&#034;stylelint-config-standard&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^28.0.0&#034;<\/span><span class=\"token punctuation\">,<\/span>  <span class=\"token comment\">\/\/ \u6807\u51c6Stylelint\u914d\u7f6e<\/span><br \/>\n    <span class=\"token string\">&#034;stylelint-order&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^5.0.0&#034;<\/span><span class=\"token punctuation\">,<\/span>     <span class=\"token comment\">\/\/ CSS\u5c5e\u6027\u6392\u5e8f\u63d2\u4ef6<\/span><br \/>\n    <span class=\"token string\">&#034;typescript&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;^4.1.2&#034;<\/span>           <span class=\"token comment\">\/\/ TypeScript\u7f16\u8bd1\u5668<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u8fd9\u662f\u4e00\u4e2a\u5b8c\u6574\u7684\u524d\u7aef\u9879\u76ee\u914d\u7f6e\u6587\u4ef6&#xff0c;\u5305\u542b\u4e86&#xff1a;<\/p>\n<li>\u9879\u76ee\u57fa\u672c\u4fe1\u606f<\/li>\n<li>\u591a\u73af\u5883\u6784\u5efa\u548c\u5f00\u53d1\u547d\u4ee4<\/li>\n<li>\u5b8c\u6574\u7684\u4ee3\u7801\u8d28\u91cf\u5de5\u5177\u94fe<\/li>\n<li>\u4e30\u5bcc\u7684\u529f\u80fd\u4f9d\u8d56\u5305<\/li>\n<li>\u89c4\u8303\u7684\u5f00\u53d1\u73af\u5883\u914d\u7f6e<\/li>\n<p>\u7279\u522b\u503c\u5f97\u6ce8\u610f\u7684\u662f&#xff1a;<\/p>\n<li>\u4f7f\u7528\u4e86UmiJS\u6846\u67b6\u4f5c\u4e3a\u57fa\u7840\u67b6\u6784<\/li>\n<li>\u5305\u542b\u5b8c\u6574\u7684\u62d6\u62fd\u529f\u80fd\u652f\u6301<\/li>\n<li>\u6709\u81ea\u5b9a\u4e49\u7684UI\u7ec4\u4ef6\u5e93<\/li>\n<li>\u4ee3\u7801\u8d28\u91cf\u7ba1\u63a7\u4e25\u683c&#xff0c;\u5305\u542b\u5b8c\u6574\u7684lint\u548c\u683c\u5f0f\u5316\u5de5\u5177<\/li>\n<li>\u652f\u6301\u591a\u73af\u5883\u90e8\u7f72\u548c\u5f00\u53d1<\/li>\n","protected":false},"excerpt":{"rendered":"<p>React\u5185\u9010\u884c\u89e3\u91ca\u8fd9\u4e2a package.json \u6587\u4ef6&#xff0c;\u6700\u8fd1\u641e\u4e86\u4e2a\u5de5\u5382AI\u751f\u4ea7\u5e73\u53f0&#xff0c;\u987a\u4fbf\u6765\u5b66\u4e60\u4e00\u4e0b<br \/>\n{\\&#8221;name\\&#8221;: \\&#8221;dkjj-msc-product\\&#8221;,       \/\/ \u9879\u76ee\u540d\u79f0&#xff1a;dkjj-msc-product\\&#8221;version\\&#8221;: \\&#8221;1.0.24\\&#8221;,              \/\/ \u9879\u76ee\u7248\u672c\u53f7&#xff1a;1.0.24\\&#8221;private\\&#8221;: true,                  \/\/ \u6807\u8bb0\u4e3a\u79c1\u6709\u5305&#xff0c;\u4e0d\u4f1a<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[7719,93,524,371],"topic":[],"class_list":["post-73380","post","type-post","status-publish","format-standard","hentry","category-server","tag-package","tag-json","tag-react-js","tag-371"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>React\u5185\u9010\u884c\u89e3\u91ca\u8fd9\u4e2a package.json \u6587\u4ef6\uff0c\u6700\u8fd1\u641e\u4e86\u4e2a\u5de5\u5382AI\u751f\u4ea7\u5e73\u53f0\uff0c\u987a\u4fbf\u6765\u5b66\u4e60\u4e00\u4e0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/73380.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"React\u5185\u9010\u884c\u89e3\u91ca\u8fd9\u4e2a package.json \u6587\u4ef6\uff0c\u6700\u8fd1\u641e\u4e86\u4e2a\u5de5\u5382AI\u751f\u4ea7\u5e73\u53f0\uff0c\u987a\u4fbf\u6765\u5b66\u4e60\u4e00\u4e0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"React\u5185\u9010\u884c\u89e3\u91ca\u8fd9\u4e2a package.json \u6587\u4ef6&#xff0c;\u6700\u8fd1\u641e\u4e86\u4e2a\u5de5\u5382AI\u751f\u4ea7\u5e73\u53f0&#xff0c;\u987a\u4fbf\u6765\u5b66\u4e60\u4e00\u4e0b {&quot;name&quot;: &quot;dkjj-msc-product&quot;,    \/\/ \u9879\u76ee\u540d\u79f0&#xff1a;dkjj-msc-product&quot;version&quot;: &quot;1.0.24&quot;,       \/\/ \u9879\u76ee\u7248\u672c\u53f7&#xff1a;1.0.24&quot;private&quot;: true,         \/\/ \u6807\u8bb0\u4e3a\u79c1\u6709\u5305&#xff0c;\u4e0d\u4f1a\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/73380.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-07T07:35:45+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/73380.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/73380.html\",\"name\":\"React\u5185\u9010\u884c\u89e3\u91ca\u8fd9\u4e2a package.json \u6587\u4ef6\uff0c\u6700\u8fd1\u641e\u4e86\u4e2a\u5de5\u5382AI\u751f\u4ea7\u5e73\u53f0\uff0c\u987a\u4fbf\u6765\u5b66\u4e60\u4e00\u4e0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-07T07:35:45+00:00\",\"dateModified\":\"2026-02-07T07:35:45+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/73380.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/73380.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/73380.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"React\u5185\u9010\u884c\u89e3\u91ca\u8fd9\u4e2a package.json \u6587\u4ef6\uff0c\u6700\u8fd1\u641e\u4e86\u4e2a\u5de5\u5382AI\u751f\u4ea7\u5e73\u53f0\uff0c\u987a\u4fbf\u6765\u5b66\u4e60\u4e00\u4e0b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"React\u5185\u9010\u884c\u89e3\u91ca\u8fd9\u4e2a package.json \u6587\u4ef6\uff0c\u6700\u8fd1\u641e\u4e86\u4e2a\u5de5\u5382AI\u751f\u4ea7\u5e73\u53f0\uff0c\u987a\u4fbf\u6765\u5b66\u4e60\u4e00\u4e0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/73380.html","og_locale":"zh_CN","og_type":"article","og_title":"React\u5185\u9010\u884c\u89e3\u91ca\u8fd9\u4e2a package.json \u6587\u4ef6\uff0c\u6700\u8fd1\u641e\u4e86\u4e2a\u5de5\u5382AI\u751f\u4ea7\u5e73\u53f0\uff0c\u987a\u4fbf\u6765\u5b66\u4e60\u4e00\u4e0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"React\u5185\u9010\u884c\u89e3\u91ca\u8fd9\u4e2a package.json \u6587\u4ef6&#xff0c;\u6700\u8fd1\u641e\u4e86\u4e2a\u5de5\u5382AI\u751f\u4ea7\u5e73\u53f0&#xff0c;\u987a\u4fbf\u6765\u5b66\u4e60\u4e00\u4e0b {\"name\": \"dkjj-msc-product\",    \/\/ \u9879\u76ee\u540d\u79f0&#xff1a;dkjj-msc-product\"version\": \"1.0.24\",       \/\/ \u9879\u76ee\u7248\u672c\u53f7&#xff1a;1.0.24\"private\": true,         \/\/ \u6807\u8bb0\u4e3a\u79c1\u6709\u5305&#xff0c;\u4e0d\u4f1a","og_url":"https:\/\/www.wsisp.com\/helps\/73380.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-07T07:35:45+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/73380.html","url":"https:\/\/www.wsisp.com\/helps\/73380.html","name":"React\u5185\u9010\u884c\u89e3\u91ca\u8fd9\u4e2a package.json \u6587\u4ef6\uff0c\u6700\u8fd1\u641e\u4e86\u4e2a\u5de5\u5382AI\u751f\u4ea7\u5e73\u53f0\uff0c\u987a\u4fbf\u6765\u5b66\u4e60\u4e00\u4e0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-07T07:35:45+00:00","dateModified":"2026-02-07T07:35:45+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/73380.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/73380.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/73380.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"React\u5185\u9010\u884c\u89e3\u91ca\u8fd9\u4e2a package.json \u6587\u4ef6\uff0c\u6700\u8fd1\u641e\u4e86\u4e2a\u5de5\u5382AI\u751f\u4ea7\u5e73\u53f0\uff0c\u987a\u4fbf\u6765\u5b66\u4e60\u4e00\u4e0b"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/73380","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=73380"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/73380\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=73380"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=73380"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=73380"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=73380"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}