Skip to content

Commit

Permalink
chore: update dumi version
Browse files Browse the repository at this point in the history
  • Loading branch information
worldzhao committed Aug 5, 2023
1 parent 9bbc09b commit 707c1b5
Show file tree
Hide file tree
Showing 5 changed files with 6,521 additions and 4,181 deletions.
6 changes: 3 additions & 3 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module.exports = {
presets: ['@babel/env', '@babel/typescript', '@babel/react'],
plugins: ['@babel/plugin-transform-runtime', '@babel/proposal-class-properties'],
presets: ['@babel/preset-env', '@babel/preset-typescript', '@babel/preset-react'],
plugins: ['@babel/plugin-transform-runtime'],
env: {
esm: {
presets: [
[
'@babel/env',
'@babel/preset-env',
{
modules: false,
},
Expand Down
2 changes: 1 addition & 1 deletion .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default defineConfig({
{
libraryName: '@zzzzw/happy-ui',
libraryDirectory: '',
customStyleName: (name) => path.resolve(__dirname, `src/${name}/style/index.ts`),
customStyleName: (name: string) => path.resolve(__dirname, `src/${name}/style/index.ts`),
},
],
],
Expand Down
7 changes: 5 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
.dumi/
esm/
lib/
scripts/
template/
*.js
**/__tests__/
scripts/
*.js
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"commit": "cz",
"deploy:site": "npm run build:site && gh-pages -d doc-site",
"dev": "npm start",
"preinstall": "npx only-allow pnpm",
"new": "plop --plopfile ./scripts/plopfile.ts",
"postnew": "prettier --write src/**/*{ts,tsx} --loglevel silent",
"prepare": "husky install && dumi setup",
Expand Down Expand Up @@ -62,8 +63,6 @@
},
"devDependencies": {
"@babel/core": "^7.7.7",
"@babel/plugin-proposal-class-properties": "^7.7.4",
"@babel/plugin-proposal-object-rest-spread": "^7.7.7",
"@babel/plugin-transform-runtime": "^7.7.6",
"@babel/preset-env": "^7.7.7",
"@babel/preset-react": "^7.7.4",
Expand All @@ -86,7 +85,7 @@
"cross-env": "^7.0.3",
"cz-conventional-changelog": "^3.3.0",
"doctoc": "^1.4.0",
"dumi": "^2.0.6",
"dumi": "^2.2.4",
"eslint": "^7",
"gh-pages": "^3.2.3",
"gulp": "^4.0.2",
Expand All @@ -101,6 +100,7 @@
"lint-staged": "^13",
"np": "^7.5.0",
"plop": "^2",
"pnpm": "^8.6.5",
"prettier": "^2.8.0",
"prettier-plugin-packagejson": "^2.3.0",
"react": "^16.8.0",
Expand All @@ -116,6 +116,7 @@
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
},
"packageManager": "[email protected]",
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
Expand Down
Loading

0 comments on commit 707c1b5

Please sign in to comment.