Skip to content

Commit 070a0cd

Browse files
authored
Merge pull request #226 from react-component/PeachScript-patch-1
chore: make dumi types can be resolved
2 parents e550397 + 4deed3c commit 070a0cd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"lint": "eslint . --ext='jsx'",
3535
"test": "jest",
3636
"coverage": "jest --coverage",
37-
"prepare": "husky install"
37+
"prepare": "husky install && dumi setup"
3838
},
3939
"dependencies": {
4040
"@babel/runtime": "^7.10.1",

tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
"esModuleInterop": true,
1111
"paths": {
1212
"@/*": ["src/*"],
13-
"@@/*": ["src/.umi/*"],
13+
"@@/*": [".dumi/tmp/*"],
1414
"rc-checkbox": ["src/index.tsx"]
1515
}
16-
}
16+
},
17+
"include": [".dumi/**/*", ".dumirc.ts", "**/*.ts", "**/*.tsx"]
1718
}

0 commit comments

Comments
 (0)