Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

bundle should prefer or solely rely on locally installed typings #572

Open
banacorn opened this issue Jun 5, 2016 · 1 comment
Open

Comments

@banacorn
Copy link

banacorn commented Jun 5, 2016

Description

Original thread: Typings install hangs #537 (comment)

The problem arises from the need to resolve dependencies from the Internet when bundling.

@unional argues that:

I just wonder what is the general use case of bundle besides how we are using it now.

Right now we use it within typings repo and the typings folder should already populated. So maybe prefer or rely one the existence of local typings could/should be a better route.

Steps to Reproduce

  1. find someplace with crappy network connections (or no connection at all)
  2. run typings bundle -o dist/foo.d.ts
  3. wait for a few minutes

Expected behavior:

dist/foo.d.ts gets generated.

Actual behavior:

typings ERR! message Unable to infer typings name from project. Use the `--name` flag to specify it manually

Even if I supply it with --name:

typings ERR! message Unable to resolve entry ".d.ts" file for "foo", please make sure the module has a main or typings field

And also it HANGS all the time (#537)

Versions

  • system: Darwin 15.4.0
  • node: 4.1.1
  • typings: 1.0.4
@unional
Copy link
Member

unional commented Jun 5, 2016

It hangs when I'm in some crappy public network (which would likely to block some ports).

#537 (comment)

@unional unional changed the title bundle should not prefer or rely on internet access bundle should prefer or solely rely on locally installed typings Jun 5, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants