typings / discussions

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

How developer maintains versions in registry ? #4

Closed koalabz closed 8 years ago

koalabz commented 8 years ago

What do you think about letting each developer maintaining there own versions mapping inside their own typings.json (for simplicity purpose) and registry only mapping name => repo only like jspm registry does actually registry.json

{
  "name": "electron",
  "main": "electron.d.ts",
  "author": "koalabz <noreply@koalabz.com>",
  "description": "The TypeScript definition for electron.atom.io",
  ...
  "versions": {
    "0.35.4": "#c597a7362eb4605ad737217a19b701d4cf2bc80a",
    "0.36.0": "#2689b1648190d6921496a3f94c0d4e1ecae2ef1f"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/koalabz/typed-electron.git"
  },
   ...
  }

Pros:

"ambientDependencies": {
    "node": "github:DefinitelyTyped/DefinitelyTyped/node/node.d.ts#5cb07b53719466b27cb32f3eb2c7c3e22575ecda"
  }

declarations but only the essential like package.jsondoes

"dependencies": {
    "bluebird": "^0.12.0"
 }