FangSen9000 commented on code in PR #2604:
URL: https://github.com/apache/apisix-dashboard/pull/2604#discussion_r962111838


##########
web/package.json:
##########
@@ -5,41 +5,42 @@
   "description": "Dashboard for Apache APISIX",
   "scripts": {
     "prepare": "cd .. && husky install web/.husky",
-    "analyze": "cross-env ANALYZE=1 yarn run build",
-    "build": "cp -R ./node_modules/monaco-editor ./public/ && umi build",
-    "dev": "yarn run start:dev",
-    "fetch:blocks": "pro fetch-blocks --branch antd@4 && yarn run prettier",
+    "analyze": "cross-env ANALYZE=1 pnpm run build",
+    "build": "cp -R $(find -wholename 
./node_modules/.pnpm/\"monaco-editor@*\"/node_modules/monaco-editor) ./public/ 
&& umi build",

Review Comment:
   Since pnpm only works on node_ A soft connection is placed in the 
mouschedule, and it cannot work normally. Therefore, it must be copied from the 
original address. I used regular expressions to adapt to the changes of Monaco 
versions in the future



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to