package.json
Node.js 项目的核心配置文件,它包含了项目的元信息、依赖项、脚本命令以及其他相关信息。
{"name": "superset","version": "3.0.0","description": "Superset is a data exploration platform designed to be visual, intuitive, and interactive.","keywords": ["big","data","exploratory","analysis","react","d3","airbnb","nerds","database","flask"],"homepage": "https://superset.apache.org/","bugs": {"url": "https://github.com/apache/superset/issues"},"repository": {"type": "git","url": "https://github.com/apache/superset.git","directory": "superset-frontend"},"license": "Apache-2.0","author": {"name": "Apache"},"directories": {"doc": "docs","test": "spec"},"workspaces": ["packages/*","plugins/*"],"scripts": {"_lint": "eslint --ignore-path=.eslintignore --ext .js,.jsx,.ts,tsx .","_prettier": "prettier './({src,spec,cypress-base,plugins,packages,.storybook}/**/*{.js,.jsx,.ts,.tsx,.css,.less,.scss,.sass}|package.json)'","build": "cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=production BABEL_ENV=\"${BABEL_ENV:=production}\" webpack --mode=production --color","build-dev": "cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=development webpack --mode=development --color","build-instrumented": "cross-env NODE_ENV=production BABEL_ENV=instrumented webpack --mode=production --color","build-storybook": "build-storybook","check-translation": "prettier --check ../superset/translations/**/LC_MESSAGES/*.json","chromatic": "npx chromatic --skip 'dependabot/**' --only-changed","clean-translation": "prettier --write ../superset/translations/**/LC_MESSAGES/*.json","core:cover": "cross-env NODE_ENV=test jest --coverage --coverageThreshold='{\"global\":{\"statements\":100,\"branches\":100,\"functions\":100,\"lines\":100}}' --collectCoverageFrom='[\"packages/**/src/**/*.{js,ts}\", \"!packages/superset-ui-demo/**/*\"]' packages","cover": "cross-env NODE_ENV=test jest --coverage","dev": "webpack --mode=development --color --watch","dev-server": "cross-env NODE_ENV=development BABEL_ENV=development node --max_old_space_size=4096 ./node_modules/webpack-dev-server/bin/webpack-dev-server.js --mode=development","format": "npm run _prettier -- --write","lint": "npm run _lint && npm run type","lint-fix": "npm run _lint -- --fix && npm run type","plugins:build": "node ./scripts/build.js","plugins:build-assets": "node ./scripts/copyAssets.js","plugins:build-storybook": "cd packages/superset-ui-demo && npm run build-storybook","plugins:chromatic": "cd packages/superset-ui-demo && npm run chromatic","plugins:create-conventional-version": "npm run prune && lerna version --conventional-commits --create-release github --no-private --yes","plugins:create-minor-version": "npm run prune && lerna version minor --no-private --yes","plugins:create-patch-version": "npm run prune && lerna version patch --no-private --yes","plugins:release-conventional": "npm run prune && lerna publish --conventional-commits --create-release github --yes","plugins:release-from-tag": "npm run prune && lerna publish from-package --yes","plugins:storybook": "cd packages/superset-ui-demo && npm run storybook","prettier": "npm run _prettier -- --write","prettier-check": "npm run _prettier -- --check","prod": "npm run build","prune": "rm -rf ./{packages,plugins}/*/{lib,esm,tsconfig.tsbuildinfo,package-lock.json}","storybook": "cross-env NODE_ENV=development BABEL_ENV=development start-storybook -p 6006","tdd": "cross-env NODE_ENV=test jest --watch","test": "cross-env NODE_ENV=test jest","type": "tsc --noEmit"},"browserslist": ["last 3 chrome versions","last 3 firefox versions","last 3 safari versions","last 3 edge versions"],"dependencies": {"@ant-design/charts": "^2.0.3","@ant-design/icons": "^5.0.1","@babel/runtime-corejs3": "^7.12.5","@emotion/babel-preset-css-prop": "^11.2.0","@emotion/cache": "^11.4.0","@emotion/react&