add typings autogen command

This commit is contained in:
Yanzhen Yu
2019-04-01 11:47:49 +08:00
parent 03c9fde822
commit f4ebd6b731
7 changed files with 74 additions and 24 deletions

View File

@@ -4,7 +4,8 @@
"description": "rrweb's component to take a snapshot of DOM, aka DOM serializer",
"scripts": {
"test": "cross-env TS_NODE_CACHE=false TS_NODE_FILES=true mocha -r ts-node/register test/**/*.ts",
"bundle": "rollup --config"
"bundle": "rollup --config",
"typings": "tsc -d --declarationDir typings"
},
"repository": {
"type": "git",
@@ -18,7 +19,7 @@
"main": "lib/rrweb-snapshot.js",
"module": "es/rrweb-snapshot.js",
"unpkg": "dist/rrweb-snapshot.js",
"typings": "./index.d.ts",
"typings": "typings/index.d.ts",
"files": [
"dist",
"lib",