Skip to content
This repository was archived by the owner on Apr 30, 2019. It is now read-only.

TSD doesn't remove definitions removed from tsd.json #185

Closed
zuzusik opened this issue Jul 10, 2015 · 2 comments
Closed

TSD doesn't remove definitions removed from tsd.json #185

zuzusik opened this issue Jul 10, 2015 · 2 comments

Comments

@zuzusik
Copy link

zuzusik commented Jul 10, 2015

Version affected: 0.6.3

Steps to reproduce:

  1. Create tsd.json, add some definitions
  2. Run tsd reinstall --save
  3. Remove one of the definitions from tsd.json
  4. Run tsd reinstall --save

Result - removed library definitions are still in typings directory and referenced in tsd.d.ts
Expected - removed library .d.ts files are deleted and no longer referenced in tsd.d.ts

Here we also have inconsistency in behaviour - if definition is added into tsd.json, then after tsd reinstall --save it is downloaded into typings and referenced in tsd.d.ts

@Diullei
Copy link
Member

Diullei commented Jul 10, 2015

OK, checking...

@Diullei
Copy link
Member

Diullei commented Sep 2, 2015

Hi!

Now the reinstall command will remove your custom typings only if you use the --clean flag.

tsd reinstall --clean

To install the beta version:

npm install [email protected]

Thanks for reporting this issue.

for more info #184

NOTE: The --save flag with reinstall command is not needed anymore.

@Diullei Diullei closed this as completed Sep 2, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants