Skip to content

Explain why the typescript dependency? #294

Closed

Description

@zachlysobey

This is a nitpick for sure, but I think there is a superfluous typescript dependency?

There doesn't seem to be any .ts files in the project, no other reference to typescript.

https://github.com/blockstack/animal-kingdom/blob/master/package.json#L12

If this was added in error, probably makes sense to do:

npm uninstall --save typescript

That should get rid of package.json AND package-lock.json references.

Activity

  1. moxiegirl commented on Jun 21, 2019

    @moxiegirl

    Hi @zachlysobey The blockstack.js lib is written in typescript. We recently did an overhaul of that package to determine the minimum required set of packages.

  2. zachlysobey commented on Jun 21, 2019

    @zachlysobey
    Author

    @moxiegirl sounds like it is there for a reason then? But I'm still confused.

    I see that typescript is a (build-time) dev-dependency of the blockstack.js project. But that shouldn't mean that you would need to include that package in consumers of blockstack.js. And certainly not as a regular run-time dependency. If typescript really is required, than that would indicate to me that something really really weird is going on :)

  3. Sahana-Srinivasan commented on Jun 21, 2019

    @Sahana-Srinivasan
    Contributor

    Hi @zachlysobey You're right; nothing's written in typescript in Animal Kingdom and it's not needed. I just put it in there because a lot of folks in Animal Kingdom are new users and we don't want to confuse them with a lot of peer dependency warnings, in case someone doesn't know they can be ignored (having typescript in there clears about a half-dozen).

  4. moxiegirl commented on Jun 24, 2019

    @moxiegirl

    @zachlysobey Thank you for this issue. I'm going to go ahead and change the title slightly. I'll add a small explanation to the docs about why we do this.

  5. changed the title [-]Why the typescript dependency?[/-] [+]Explain why the typescript dependency?[/+] on Jun 24, 2019
  6. self-assigned this
    on Jun 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions