fix: 修复esm commonjs build
Showing
.npmrc
0 → 100644
... | @@ -7,7 +7,8 @@ | ... | @@ -7,7 +7,8 @@ |
], | ], | ||
"scripts": { | "scripts": { | ||
"bootstrap": "node ./scripts/bootstrap.js", | "bootstrap": "node ./scripts/bootstrap.js", | ||
"build": "cross-env BUILD_TYPE=lib father-build && cross-env BUILD_TYPE=es father-build && webpack && node ./scripts/gen_less_entry.js", | "build": "npm run build-lib && webpack && node ./scripts/gen_less_entry.js", | ||
"build-lib": "cross-env BUILD_TYPE=lib father-build && cross-env BUILD_TYPE=es father-build", | |||
"changelog": "pro-changelog", | "changelog": "pro-changelog", | ||
"createRelease": "node ./scripts/createRelease.js", | "createRelease": "node ./scripts/createRelease.js", | ||
"deploy": "npm run site && gh-pages -d ./dist", | "deploy": "npm run site && gh-pages -d ./dist", | ||
... | @@ -42,6 +43,8 @@ | ... | @@ -42,6 +43,8 @@ |
"@babel/preset-env": "^7.8.3", | "@babel/preset-env": "^7.8.3", | ||
"@babel/preset-react": "^7.8.3", | "@babel/preset-react": "^7.8.3", | ||
"@babel/preset-typescript": "^7.8.3", | "@babel/preset-typescript": "^7.8.3", | ||
"@babel/runtime": "^7.17.9", | |||
"@babel/plugin-transform-runtime": "^7.17.10", | |||
"@octokit/core": "^3.2.5", | "@octokit/core": "^3.2.5", | ||
"@size-limit/preset-big-lib": "^4.5.5", | "@size-limit/preset-big-lib": "^4.5.5", | ||
"@testing-library/react": "^10.0.2", | "@testing-library/react": "^10.0.2", | ||
... | @@ -62,6 +65,7 @@ | ... | @@ -62,6 +65,7 @@ |
"@types/warning": "^3.0.0", | "@types/warning": "^3.0.0", | ||
"@types/xhr-mock": "^2.0.0", | "@types/xhr-mock": "^2.0.0", | ||
"@umijs/babel-preset-umi": "^3.0.14", | "@umijs/babel-preset-umi": "^3.0.14", | ||
"@umijs/doctor": "^0.0.16", | |||
"@umijs/fabric": "^2.0.0", | "@umijs/fabric": "^2.0.0", | ||
"@umijs/plugin-analytics": "^0.2.2", | "@umijs/plugin-analytics": "^0.2.2", | ||
"@umijs/plugin-antd": "^0.9.0", | "@umijs/plugin-antd": "^0.9.0", | ||
... | ... |
scripts/changelogs.js
0 → 100644
Please
register
or
sign in
to comment