build: using cli to generate type declaration (#8265)

This commit is contained in:
neverland 2021-03-04 15:42:36 +08:00 committed by GitHub
parent 7f91b4a6bb
commit 387f2ac336
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View File

@ -5,11 +5,10 @@
"main": "lib/index.js", "main": "lib/index.js",
"module": "es/index.js", "module": "es/index.js",
"style": "lib/index.css", "style": "lib/index.css",
"typings": "types/index.d.ts", "typings": "lib/index.d.ts",
"files": [ "files": [
"es", "es",
"lib", "lib",
"types",
"vetur" "vetur"
], ],
"publishConfig": { "publishConfig": {

View File

@ -2,9 +2,9 @@
"extends": "./tsconfig.json", "extends": "./tsconfig.json",
"compilerOptions": { "compilerOptions": {
"declaration": true, "declaration": true,
"skipLibCheck": true, "declarationDir": ".",
"declarationDir": "./types" "emitDeclarationOnly": true
}, },
"include": ["src/**/*"], "include": ["es/**/*", "lib/**/*"],
"exclude": ["**/demo/**", "**/test/**", "**/node_modules"] "exclude": ["node_modules", "**/test/**/*", "**/demo/**/*"]
} }

View File

@ -6,6 +6,7 @@
"module": "esnext", "module": "esnext",
"strict": true, "strict": true,
"allowJs": true, "allowJs": true,
"skipLibCheck": true,
"noImplicitThis": true, "noImplicitThis": true,
"esModuleInterop": true, "esModuleInterop": true,
"moduleResolution": "node", "moduleResolution": "node",
@ -13,5 +14,5 @@
"@demo/*": ["docs/site/*"] "@demo/*": ["docs/site/*"]
} }
}, },
"include": ["types/**/*", "docs/**/*", "src/**/*"] "include": ["src/**/*", "types/**/*", "docs/**/*", "test/**/*"]
} }