Should I check TypeScript definition files for external libraries on git?

I am using TSD to manage TypeScript definition files for the web application I am developing.

Should I check TypeScript definition files for external libraries that I use (managed via Bower) in git in addition to the file tsd.json?

Similar discussions exist for the Bower and NPM dependencies, where the NPM documentation says no, and the Bauer afayk no longer gives recommendations (usually yes ).

Definition files are fairly lightweight, so I tend to test them. Any opinions?

+4
source share
2

npm install , tsd install ? scripts package.json:

// package.json
"scripts": {
  "postinstall": "tsd install"
}

. , script, , . , .

: , tsd , . npm.

+6

,

"typings/tsd.d.ts" tsconfig.json , .gitignore "typings/", ...

, :)

: npm , typings/tsd.d.ts, , tsconfig.json... ergo tsd, , .. ... , , , , , , , .

+1

Source: https://habr.com/ru/post/1608789/


All Articles