Skip to content

Commit

Permalink
Rename version to versions in the registry
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Nov 19, 2015
1 parent 1f1eaa0 commit b530e17
Show file tree
Hide file tree
Showing 25 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
## Structure

```
/{package manager}/{package name}.json
/<package manager>/<package name>.json
```

Where "package manager" is one of:
Expand All @@ -22,7 +22,7 @@ Where "package manager" is one of:
* **ambient** for ambient dependencies (typings that describe our programming environment)
* **common** for dependencies not on any specific registry, but have a standardized library in JS

And "package name" is the name of the package in the registry. For GitHub and scoped NPM packages, it's valid to make a folder such as `@example/entry.json`.
And "package name" is the name of the package in the registry. For GitHub and scoped NPM packages, it's valid to make a folder such as `@example/entry.json`. The format of each package file is described in `schema.json`.

## Requests

Expand Down
2 changes: 1 addition & 1 deletion ambient/node.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": {
"versions": {
"0.12.0": "github:DefinitelyTyped/DefinitelyTyped/node/node.d.ts#8cf8164641be73e8f1e652c2a5b967c7210b6729"
}
}
2 changes: 1 addition & 1 deletion npm/array-uniq.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": {
"versions": {
"1.0.0": "github:typings/typed-array-uniq#fe1767e9b1baa0fd9f7a55fbcbf2fd8f08296d42"
}
}
2 changes: 1 addition & 1 deletion npm/arrify.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": {
"versions": {
"1.0.0": "github:typings/typed-arrify#32383d5fd3e6a8614abb6dba254a3aab07cd7424"
}
}
2 changes: 1 addition & 1 deletion npm/blue-tape.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": {
"versions": {
"0.1.0": "github:typings/typed-blue-tape#a4e41a85d6f760e7c60088127968eae7d3a556fa"
}
}
2 changes: 1 addition & 1 deletion npm/chalk.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": {
"versions": {
"1.0.0": "github:typings/typed-chalk#377de52aeac245226394c41fa6adcd31dbd17d51"
}
}
2 changes: 1 addition & 1 deletion npm/d3.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": {
"versions": {
"3.0.0": "github:typings/typed-d3#8bb38bb0ef0a48ac273f6045c26753260ea089df"
}
}
2 changes: 1 addition & 1 deletion npm/debug.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": {
"versions": {
"2.0.0": "github:typings/typed-debug#643dad4635854f7c20e630b5ae696ddded60f8f2"
}
}
2 changes: 1 addition & 1 deletion npm/diff.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": {
"versions": {
"2.0.0": "github:typings/typed-diff#9b748f41b48c9ddcca5c2a135edd57df25d578cd"
}
}
2 changes: 1 addition & 1 deletion npm/es6-promise.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": {
"versions": {
"3.0.0": "github:typings/typed-es6-promise#2d64b659e5179570628e665b52f583c00c84a965"
}
}
2 changes: 1 addition & 1 deletion npm/globby.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": {
"versions": {
"3.0.0": "github:typings/typed-globby#9624dd0875f851656c93132c63e6cafa78641334"
}
}
2 changes: 1 addition & 1 deletion npm/make-error.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": {
"versions": {
"1.0.0": "github:typings/typed-make-error#5a653400e91cf7046512544b7ed2ebab702b0183"
}
}
2 changes: 1 addition & 1 deletion npm/minimist.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": {
"versions": {
"1.0.0": "github:typings/typed-minimist#9bfb8ebb1cf82abe2e16b00d6e0f59492224728e"
}
}
2 changes: 1 addition & 1 deletion npm/ms.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": {
"versions": {
"0.1.0": "github:typings/typed-ms#f40c81c7f45bc35e970de851117c29fc959220b2"
}
}
2 changes: 1 addition & 1 deletion npm/native-or-bluebird.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": {
"versions": {
"1.0.0": "github:typings/typed-native-or-bluebird#e9b7a479d68931ef88895d578860456bfbe91faa"
}
}
2 changes: 1 addition & 1 deletion npm/parse-json.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": {
"versions": {
"2.0.0": "github:typings/typed-parse-json#74152f9c8b831227fc4eb3533fcd01b8906e2694"
}
}
2 changes: 1 addition & 1 deletion npm/pinkie-promise.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": {
"versions": {
"1.0.0": "github:typings/typed-pinkie-promise#680fa32baa4e45e4a13b0c823f4db62ff47990e8"
}
}
2 changes: 1 addition & 1 deletion npm/proxyquire.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": {
"versions": {
"1.0.0": "github:typings/typed-proxyquire#e94c99bbac8d350e28edd70471d9460a5534927b"
}
}
2 changes: 1 addition & 1 deletion npm/source-map-support.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": {
"versions": {
"0.3.0": "github:typings/typed-source-map-support#900ed4180a22285bce4bbabc0760427e71a59eca"
}
}
2 changes: 1 addition & 1 deletion npm/strip-bom.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": {
"versions": {
"2.0.0": "github:typings/typed-strip-bom#d1d42e7f43dcd9fce1cfd988c40421a1d37fa47b"
}
}
2 changes: 1 addition & 1 deletion npm/strip-json-comments.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": {
"versions": {
"2.0.0": "github:typings/typed-strip-json-comments#6fd0bb0b697465c16e022557c3796bc1358124ac"
}
}
2 changes: 1 addition & 1 deletion npm/tape.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": {
"versions": {
"4.0.0": "github:typings/typed-tape#054c1ab7d30611088537c066c44af2095c75e3a8"
}
}
2 changes: 1 addition & 1 deletion npm/xtend.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": {
"versions": {
"4.0.0": "github:typings/typed-xtend#63cccadf3295b3c15561ee45617ac006edcca9e0"
}
}
2 changes: 1 addition & 1 deletion schema.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "object",
"properties": {
"version": {
"versions": {
"type": "object",
"patternProperties": {
"^\\d+\\.\\d+\\.\\d+(?:-\\w+)?$": {
Expand Down
4 changes: 2 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ function execFiles (files) {
}

// Push all typings installation tests into a batch executor.
Object.keys(data.version).forEach(function (version) {
arrify(data.version[version]).forEach(function (location) {
Object.keys(data.versions).forEach(function (version) {
arrify(data.versions[version]).forEach(function (location) {
typingsBatch.push(function (done) {
typings.installDependency(location, {
cwd: __dirname,
Expand Down

0 comments on commit b530e17

Please sign in to comment.