types: setup tests for built d.ts files

This commit is contained in:
Evan You
2019-11-01 22:54:01 -04:00
parent 7b7b8ef221
commit 66ecd8b47f
14 changed files with 458 additions and 55 deletions

View File

@@ -10,7 +10,12 @@
"size-compiler": "node scripts/build.js compiler-dom -p -f global",
"size": "yarn size-runtime && yarn size-compiler",
"lint": "prettier --write --parser typescript \"packages/**/*.ts?(x)\"",
"test": "jest"
"test": "jest",
"test-dts": "node scripts/build.js reactivity runtime-core runtime-dom -t -f esm && tsd"
},
"types": "test-dts/index.d.ts",
"tsd": {
"directory": "test-dts"
},
"gitHooks": {
"pre-commit": "lint-staged",
@@ -45,7 +50,8 @@
"rollup-plugin-terser": "^5.1.1",
"rollup-plugin-typescript2": "^0.24.0",
"ts-jest": "^24.0.2",
"typescript": "^3.5.3",
"tsd": "^0.10.0",
"typescript": "^3.6.4",
"yorkie": "^2.0.0"
}
}