Skip to content

Commit

Permalink
feat: 调整 package#exports (#8)
Browse files Browse the repository at this point in the history
* feat: 调整 package exports

* chore: 修改文档构建结果目录

* chore: update build config
  • Loading branch information
Wxh16144 authored Aug 11, 2023
1 parent cabc3a8 commit 8206020
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ export default defineConfig({
publicPath: isProdSite ? `/${name}/` : '/',
html2sketch: {},
mfsu: false,
outputPath: '.doc',
});
1 change: 1 addition & 0 deletions .fatherrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ import { defineConfig } from 'father';
export default defineConfig({
cjs: { output: 'lib' },
esm: { output: 'es' },
umd: { output: 'dist', name: 'easyAntdModal' },
});
2 changes: 1 addition & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
uses: actions/upload-pages-artifact@v1
with:
# Upload entire repository
path: 'dist'
path: '.doc'

- name: Deploy to GitHub Pages
id: deployment
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ lambda/mock/index.js

# umi
.dumi/tmp*
.doc

# screenshot
screenshot
Expand Down
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
"import": "./es/index.js",
"require": "./lib/index.js"
},
"./es/*": "./es/*",
"./lib/*": "./lib/*",
"./dist/*": "./dist/*",
"./mobile": {
"types": "./es/mobile/index.d.ts",
"import": "./es/mobile/index.js",
Expand All @@ -48,17 +51,19 @@
}
},
"main": "lib/index.js",
"unpkg": "dist/easy-antd-modal.min.js",
"module": "es/index.js",
"types": "lib/index.d.ts",
"types": "es/index.d.ts",
"files": [
"dist",
"lib",
"es"
],
"scripts": {
"build": "father build",
"build:watch": "father dev",
"ci": "npm run lint && npm run type-check && npm run doctor && npm run build",
"clean": "rm -rf es lib dist coverage .dumi/tmp .eslintcache",
"clean": "rm -rf es lib dist coverage .dumi/tmp .eslintcache .doc",
"dev": "dumi dev",
"docs:build": "dumi build",
"doctor": "father doctor",
Expand Down

0 comments on commit 8206020

Please sign in to comment.