tsconfig.json
exclude
テストファイル等を除いておく
code:tsconfig.json
"exclude": [
"**/*.test.ts",
"**/*.spec.ts"
]
compilerOptions
declaration: true
tsc で型定義ファイルを生成する
moduleResolution: "node"
親ディレクトリに登りながらnode_modules 以下も探索する
skipLibCheck : true
*.d.ts をビルド時にチェックするのをやめる
node_modules 以下をめっちゃ探索したりするので速くなるが、依存モジュール同士で型がミスしっているのに気づかなくなる?