Skip to content

Commit

Permalink
feat(types): 输出类型声明文件
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaozhiwen committed Dec 24, 2019
1 parent 9da9c84 commit 2066f40
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
*.js
doc-comps
demo
components/**/demo
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
"version": "1.0.0",
"description": "",
"main": "index.js",
"typings": "types/index.d.ts",
"scripts": {
"dev": "docz dev",
"start": "npm run dev",
"build:doc": "rimraf doc-site && docz build",
"preview:doc": "docz serve",
"build:types": "tsc --emitDeclarationOnly",
"commit": "git-cz",
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand All @@ -29,6 +31,7 @@
"devDependencies": {
"@commitlint/cli": "^8.2.0",
"@commitlint/config-conventional": "^8.2.0",
"@types/vfile-message": "^2.0.0",
"@umijs/fabric": "^1.2.12",
"antd": "^3.26.3",
"babel-plugin-import": "^1.13.0",
Expand Down
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"compilerOptions": {
"rootDir": "components",
"baseUrl": "components",
"allowJs": false,
"target": "esnext",
"module": "commonjs",
"jsx": "react",
Expand All @@ -12,5 +11,6 @@
"allowSyntheticDefaultImports": true,
"esModuleInterop": true
},
"exclude": ["components/**/demo", "doc-comps"]
"include": ["components"],
"exclude": ["components/**/demo"]
}
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1539,7 +1539,7 @@
resolved "https://registry.npm.taobao.org/@types/unist/download/@types/unist-2.0.3.tgz#9c088679876f374eb5983f150d4787aa6fb32d7e"
integrity sha1-nAiGeYdvN061mD8VDUeHqm+zLX4=

"@types/vfile-message@*":
"@types/vfile-message@*", "@types/vfile-message@^2.0.0":
version "2.0.0"
resolved "https://registry.npm.taobao.org/@types/vfile-message/download/@types/vfile-message-2.0.0.tgz#690e46af0fdfc1f9faae00cd049cc888957927d5"
integrity sha1-aQ5Grw/fwfn6rgDNBJzIiJV5J9U=
Expand Down

0 comments on commit 2066f40

Please sign in to comment.