Skip to content

Commit 6cfd446

Browse files
committed
chore: remove legacy compile command
1 parent 99a543f commit 6cfd446

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

.fatherrc.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ export default defineConfig({
4545
'@ant-design/cssinjs': 'antdCssinjs',
4646
antd: 'antd',
4747
},
48-
chainWebpack: (memo) => {
49-
if (process.env.NODE_ENV === 'production') {
48+
chainWebpack: (memo, { env }) => {
49+
if (env === 'production') {
5050
memo.plugin('codecov').use(CodecovWebpackPlugin, [
5151
{
5252
enableBundleAnalysis: true,

.github/workflows/site-deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
NODE_OPTIONS: --max_old_space_size=4096
2929

3030
- name: build dist and bundle analyzer report
31-
run: bun run compile
31+
run: bun run dist
3232
env:
3333
ANALYZER: 1
3434
NODE_OPTIONS: --max_old_space_size=4096

.github/workflows/size-limit.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
with:
2424
github_token: ${{ secrets.GITHUB_TOKEN }}
2525
package_manager: bun
26-
build_script: compile
26+
build_script: dist

package.json

+1-6
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,13 @@
3737
"scripts": {
3838
"api-collection": "antd-tools run api-collection",
3939
"authors": "tsx scripts/generate-authors.ts",
40-
"legacy_build": "npm run compile && NODE_OPTIONS='--max-old-space-size=4096' npm run dist",
4140
"changelog": "npm run lint:changelog && tsx scripts/print-changelog.ts",
4241
"check-commit": "tsx scripts/check-commit.ts",
4342
"clean": "antd-tools run clean && rm -rf es lib coverage locale dist report.html artifacts.zip oss-artifacts.zip",
44-
"precompile": "npm run prestart",
45-
"compile": "father build",
43+
"dist": "father build",
4644
"predeploy": "npm run site && cp CNAME _site",
4745
"deploy": "gh-pages -d _site -b gh-pages -f",
4846
"predist": "npm run version && npm run token:statistic && npm run token:meta",
49-
"legacy_dist": "antd-tools run dist",
50-
"legacy_dist:esbuild": "ESBUILD=true npm run dist",
51-
"legacy_dist:esbuild-no-dup-check": "ESBUILD=true NO_DUP_CHECK=true npm run dist",
5247
"format": "biome format --write .",
5348
"prelint": "dumi setup",
5449
"lint": "npm run version && npm run tsc && npm run lint:script && npm run lint:md && npm run lint:style && npm run lint:changelog",

0 commit comments

Comments
 (0)