refactor: Update build tools (#53390)

* chore: update config

* chore: update deps

* chore: bump deps

* chore: update deps
This commit is contained in:
二货爱吃白萝卜
2025-04-03 11:02:04 +08:00
committed by GitHub
parent 284fce4871
commit 6211b4b05b
3 changed files with 5 additions and 5 deletions

View File

@@ -49,7 +49,8 @@
"clean": "antd-tools run clean && rimraf es lib coverage locale dist report.html artifacts.zip oss-artifacts.zip",
"clean:lockfiles": "rimraf package-lock.json yarn.lock",
"precompile": "npm run prestart",
"compile": "npm run clean && antd-tools run compile",
"compile": "npm run compileOnly",
"compileOnly": "npm run clean && antd-tools run compile",
"predeploy": "antd-tools run clean && npm run site && cp CNAME _site && npm run test:site",
"deploy": "gh-pages -d _site -b gh-pages -f",
"deploy:china-mirror": "git checkout gh-pages && git pull origin gh-pages && git push git@gitee.com:ant-design/ant-design.git gh-pages -f",
@@ -61,7 +62,6 @@
"prelint": "dumi setup",
"lint": "npm run version && npm run tsc && npm run lint:script && npm run lint:biome && npm run lint:md && npm run lint:changelog",
"lint:changelog": "tsx scripts/generate-component-changelog.ts",
"lint:deps": "antd-tools run deps-lint",
"lint:md": "remark . -f -q",
"lint:script": "eslint . --cache",
"lint:biome": "biome lint",
@@ -159,7 +159,7 @@
"devDependencies": {
"@ant-design/compatible": "^5.1.3",
"@ant-design/happy-work-theme": "^1.0.0",
"@ant-design/tools": "^18.0.3",
"@ant-design/tools": "^19.0.1",
"@ant-design/v5-patch-for-react-19": "^1.0.2",
"@antfu/eslint-config": "^4.0.0",
"@antv/g6": "^4.8.24",

View File

@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es6",
"target": "es2020",
"jsx": "react",
"jsxFactory": "React.createElement",
"jsxFragmentFactory": "React.Fragment",

View File

@@ -1,6 +1,6 @@
/* eslint no-param-reassign: 0 */
// This config is for building dist files
const getWebpackConfig = require('@ant-design/tools/lib/getWebpackConfig');
const { getWebpackConfig } = require('@ant-design/tools');
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
const { codecovWebpackPlugin } = require('@codecov/webpack-plugin');
const CircularDependencyPlugin = require('circular-dependency-plugin');