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

tsd reinstall does not remove stale typings #151

Closed
alexeagle opened this issue May 1, 2015 · 10 comments
Closed

tsd reinstall does not remove stale typings #151

alexeagle opened this issue May 1, 2015 · 10 comments

Comments

@alexeagle
Copy link
Contributor

I updated my tsd.json to remove touch-events.d.ts, because the new typescript 1.5 beta includes those natively in the lib.d.ts, and the compilation fails due to duplicate type definitions.

I run tsd reinstall, and the touch-events.d.ts is left in the typings folder. Based on the documentation for reinstall:
Reset the definitions to the commits listed in tsd.json
I would expect any typings not in tsd.json to be removed.

The current workaround is everyone on the team needs to remove the typings folder whenever something is removed from tsd.json.

@blakeembrey
Copy link
Member

@alexeagle You're right, I'd expect this too. I plan on doing a lot of refactoring on this project and that's one of the first things being fixed in #150. Thanks for the report 👍

@blakeembrey blakeembrey mentioned this issue May 1, 2015
7 tasks
@alexeagle
Copy link
Contributor Author

Nice, I noticed your roadmap this morning, and glad to see you are laying plans for those fixes. Soon we will figure out the right way to distribute the type definitions for Angular, likely with tsd.

@Diullei
Copy link
Member

Diullei commented Jun 7, 2015

I think this should be resolved by adding an uninstall command. With this I'll ensure that any of my own typing (if exists) in the same directory (typings) will not be removed.

What do you think?

@alexeagle
Copy link
Contributor Author

I don't think that solves our problem: we check in a tsd.json as a means to
keep the typings directories on the machines of all our team members in
sync. What command would we put in 'npm install' that would cause all the
typings to be synced? tsd uninstall --all && tsd reinstall?

On Sat, Jun 6, 2015 at 10:12 PM, Diullei Gomes notifications@github.com
wrote:

I think this should be resolved by adding an uninstall command. With this
I'll ensure that any of my own typing (if exists) in the same directory (
typings) will not be removed.

What do you think?


Reply to this email directly or view it on GitHub
#151 (comment)
.

@Diullei
Copy link
Member

Diullei commented Jun 7, 2015

Ok @alexeagle, I Got your point. In this case the reinstall command must remove the typings not referenced by tsd.json

@jimlloyd
Copy link

jimlloyd commented Aug 3, 2015

@alexeagle see the discussion in #179. Would do you think of tsd reinstall --clean as a solution for your problem?

@alexeagle
Copy link
Contributor Author

@jimlloyd thanks for the notification, I commented over there.

@Diullei
Copy link
Member

Diullei commented Sep 1, 2015

Hi @alexeagle! I published a new version (tsd@0.6.5-beta) to fix the bug that you reported here #184 (comment)

Could you verify if it is ok now?

To install:

npm install tsd@0.6.5-beta

@alexeagle
Copy link
Contributor Author

yes, it looks good now, I sent a PR to use it in Angular:
angular/angular#3940

Thanks!

On Tue, Sep 1, 2015 at 7:18 AM Diullei Gomes notifications@github.com
wrote:

Hi @alexeagle https://github.com/alexeagle! I published a new version (
tsd@0.6.5-beta) to fix the bug that you reported here #184 (comment)
#184 (comment)

Could you verify if it is ok now?

To install:

npm install tsd@0.6.5-beta


Reply to this email directly or view it on GitHub
#151 (comment)
.

@Diullei
Copy link
Member

Diullei commented Sep 1, 2015

Nice! I'm glad to help you with this issue!

I'll close this issue for now, feel free to reopen it if you got another problem.

Thanks!

@Diullei Diullei closed this as completed Sep 1, 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

4 participants