Skip to content

Commit

Permalink
Merge pull request #67 from alienzhou/types
Browse files Browse the repository at this point in the history
build: add d.ts
  • Loading branch information
alienzhou authored Jan 16, 2021
2 parents 35b5e93 + b00bd66 commit f48b2a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
"static": "run-p watch serve",
"typings": "tsc -d --declarationDir typings",
"start": "node script/dev.js",
"types": "tsc --emitDeclarationOnly && tscpaths -p tsconfig.json -s ./src -o ./dist",
"build": "export target=dist && node script/build.js",
"prepublishOnly": "npm run build"
"prepublishOnly": "npm run build && npm run types"
},
"husky": {
"hooks": {
Expand Down Expand Up @@ -67,6 +68,7 @@
"ts-loader": "^5.3.0",
"ts-node": "^8.10.1",
"tsconfig-paths": "^3.9.0",
"tscpaths": "0.0.9",
"typescript": "^3.1.6",
"webpack": "^4.25.1",
"webpack-cli": "^3.1.2",
Expand Down
2 changes: 2 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"compilerOptions": {
"esModuleInterop": true,
"declaration": true,
"sourceMap": true,
"outDir": "./dist",
"lib": [
"dom",
"dom.iterable",
Expand Down

0 comments on commit f48b2a8

Please sign in to comment.