Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 707c1b5

Browse files
author
worldzhao
committed
chore: update dumi version
1 parent 9bbc09b commit 707c1b5

File tree

5 files changed

+6521
-4181
lines changed

5 files changed

+6521
-4181
lines changed

‎.babelrc.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
module.exports = {
2-
presets: ['@babel/env', '@babel/typescript', '@babel/react'],
3-
plugins: ['@babel/plugin-transform-runtime','@babel/proposal-class-properties'],
2+
presets: ['@babel/preset-env', '@babel/preset-typescript', '@babel/preset-react'],
3+
plugins: ['@babel/plugin-transform-runtime'],
44
env: {
55
esm: {
66
presets: [
77
[
8-
'@babel/env',
8+
'@babel/preset-env',
99
{
1010
modules: false,
1111
},

‎.dumirc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default defineConfig({
2727
{
2828
libraryName: '@zzzzw/happy-ui',
2929
libraryDirectory: '',
30-
customStyleName: (name) => path.resolve(__dirname, `src/${name}/style/index.ts`),
30+
customStyleName: (name: string) => path.resolve(__dirname, `src/${name}/style/index.ts`),
3131
},
3232
],
3333
],

‎.eslintignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
.dumi/
2+
esm/
3+
lib/
4+
scripts/
15
template/
2-
*.js
36
**/__tests__/
4-
scripts/
7+
*.js

‎package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"commit": "cz",
2828
"deploy:site": "npm run build:site && gh-pages -d doc-site",
2929
"dev": "npm start",
30+
"preinstall": "npx only-allow pnpm",
3031
"new": "plop --plopfile ./scripts/plopfile.ts",
3132
"postnew": "prettier --write src/**/*{ts,tsx} --loglevel silent",
3233
"prepare": "husky install && dumi setup",
@@ -62,8 +63,6 @@
6263
},
6364
"devDependencies": {
6465
"@babel/core": "^7.7.7",
65-
"@babel/plugin-proposal-class-properties": "^7.7.4",
66-
"@babel/plugin-proposal-object-rest-spread": "^7.7.7",
6766
"@babel/plugin-transform-runtime": "^7.7.6",
6867
"@babel/preset-env": "^7.7.7",
6968
"@babel/preset-react": "^7.7.4",
@@ -86,7 +85,7 @@
8685
"cross-env": "^7.0.3",
8786
"cz-conventional-changelog": "^3.3.0",
8887
"doctoc": "^1.4.0",
89-
"dumi": "^2.0.6",
88+
"dumi": "^2.2.4",
9089
"eslint": "^7",
9190
"gh-pages": "^3.2.3",
9291
"gulp": "^4.0.2",
@@ -101,6 +100,7 @@
101100
"lint-staged": "^13",
102101
"np": "^7.5.0",
103102
"plop": "^2",
103+
"pnpm": "^8.6.5",
104104
"prettier": "^2.8.0",
105105
"prettier-plugin-packagejson": "^2.3.0",
106106
"react": "^16.8.0",
@@ -116,6 +116,7 @@
116116
"react": ">=16.8.0",
117117
"react-dom": ">=16.8.0"
118118
},
119+
"packageManager": "pnpm@8.6.5",
119120
"publishConfig": {
120121
"access": "public",
121122
"registry": "https://registry.npmjs.org/"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /