Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix: add analyze script

shuaiaa0cddb1bc9c
diff --git a/ui/package.json b/ui/package.json
index 99543e12..63a1f85d 100644
--- a/ui/package.json
+++ b/ui/package.json
@@ -4,7 +4,6 @@
"private": true,
"homepage": "/",
"scripts": {
- "analyze": "source-map-explorer 'build/static/js/*.js'",
"start": "react-app-rewired start",
"build": "react-app-rewired build",
"lint": "eslint . --cache --fix --ext .ts,.tsx",
@@ -13,7 +12,8 @@
"prepare": "pnpm build:packages",
"pre-commit": "lint-staged",
"build:packages": "pnpm -r --filter=./src/plugins/* run build",
- "clean": "rm -rf node_modules && rm -rf src/plugins/**/node_modules"
+ "clean": "rm -rf node_modules && rm -rf src/plugins/**/node_modules",
+ "analyze": "source-map-explorer 'build/static/js/*.js'"
},
"dependencies": {
"axios": "^0.27.2",
@@ -39,7 +39,6 @@
"react-i18next": "^11.18.3",
"react-router-dom": "^6.8.1",
"semver": "^7.3.8",
- "source-map-explorer": "^2.5.3",
"swr": "^1.3.0",
"zustand": "^4.1.1"
},
@@ -84,6 +83,7 @@
"react-app-rewired": "^2.2.1",
"react-scripts": "5.0.1",
"sass": "^1.54.4",
+ "source-map-explorer": "^2.5.3",
"typescript": "^4.9.5",
"yaml-loader": "^0.8.0"
},
diff --git a/ui/pnpm-lock.yaml b/ui/pnpm-lock.yaml
index a46f8f75..83bdc9e2 100644
--- a/ui/pnpm-lock.yaml
+++ b/ui/pnpm-lock.yaml
@@ -77,9 +77,6 @@ importers:
semver:
specifier: ^7.3.8
version: 7.3.8
- source-map-explorer:
- specifier: ^2.5.3
- version: 2.5.3
swr:
specifier: ^1.3.0
version: 1.3.0([email protected])
@@ -207,6 +204,9 @@ importers:
sass:
specifier: ^1.54.4
version: 1.54.9
+ source-map-explorer:
+ specifier: ^2.5.3
+ version: 2.5.3
typescript:
specifier: ^4.9.5
version: 4.9.5
@@ -4540,7 +4540,7 @@ packages:
resolution: {integrity: sha512-SB4/MIGlsiVkMcHmT+pSmIPoNDoHg+7cMzmt3Uxt628MTz2487DKSqK/fuhFBrkuqrYv5UCEnACpF4dTFNKc/g==}
engines: {node: '>= 0.4.0'}
hasBin: true
- dev: false
+ dev: true
resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==}
@@ -9151,7 +9151,7 @@ packages:
dependencies:
is-docker: 2.2.1
is-wsl: 2.2.0
- dev: false
+ dev: true
resolution: {integrity: sha512-XgFPPM+B28FtCCgSb9I+s9szOC1vZRSwgWsRUA5ylIxRTgKozqjOCrVOqGsYABPYK5qnfqClxZTFBa8PKt2v6Q==}
@@ -10797,7 +10797,7 @@ packages:
hasBin: true
dependencies:
glob: 7.2.3
- dev: false
+ dev: true
resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==}
@@ -11175,7 +11175,7 @@ packages:
source-map: 0.7.4
temp: 0.9.4
yargs: 16.2.0
- dev: false
+ dev: true
resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==}
@@ -11625,7 +11625,7 @@ packages:
dependencies:
mkdirp: 0.5.6
rimraf: 2.6.3
- dev: false
+ dev: true
resolution: {integrity: sha512-G13vtMYPT/J8A4X2SjdtBTphZlrp1gKv6hZiOjw14RCWg6GbHuQBGtjlx75xLbYV/wEc0D7G5K4rxKP/cXk8Bw==}