typings / discussions

For discussions and issues with Typings or TypeScript definitions
7 stars 0 forks source link

What is "env" source? #18

Closed s-KaiNet closed 8 years ago

s-KaiNet commented 8 years ago

Can you please explain this a bit more?
For example I run typings search node and results show me that node available as "env" source.
What does that mean? And how to install node from "env" source?
I've tried typings install env:node (ha-ha) without success.

blakeembrey commented 8 years ago

See https://github.com/typings/typings#quick-start and https://github.com/typings/registry#structure. I'll be adding the sources from the registry into the Typings README ASAP.

s-KaiNet commented 8 years ago

wow, thanks for super fact response.
I'm confused about the syntax, because this page - https://github.com/typings/typings/blob/master/docs/commands.md says that you need to use : syntax instead of !, i.e. npm:<package> etc..

blakeembrey commented 8 years ago

That's a separate feature. One uses the registry (source), the other is a scheme. You should see in the command that both syntaxes are documented separately, and both are valid. E.g. foo!bar finds "bar" of "foo" in the registry, while foo:bar resolves "bar" using "foo" resolution. In concrete terms, npm!debug finds debug on the registry and installs it. npm:debug uses node module resolution to find debug locally.

s-KaiNet commented 8 years ago

now it's clear. Thanks again