typed-typings / npm-iscroll

The type definition for https://github.com/cubiq/iscroll
MIT License
0 stars 1 forks source link

Exposing global using hack #4

Open unional opened 8 years ago

unional commented 8 years ago

The module version is at the root: /iscroll.d.ts and /typings.json

Now we want to use the hack to create the global/script version.

Two files are created:

So now the question is what should /global/iscroll/typings.json looks like so that:

// typings.json
{
  "name": "iscroll",
  "main": "iscroll.d.ts",
  "ambient": true,
  "files": [
    "iscroll.d.ts",
    "iscrollAugment.d.ts"
  ],
  "version": "5.1.3",
  "homepage": "https://github.com/cubiq/iscroll",
  "devDependencies": {
    "blue-tape": "registry:npm/blue-tape#0.1.0+20160322235613"
  },
  "ambientDevDependencies": {
    "node": "registry:dt/node#4.0.0+20160319033040"
  }
}

Doesn't work because mixing iscroll.d.ts (global/script) and iscrollAugment.d.ts (module) doesn't work.

basarat commented 8 years ago

UMD should release within two months (for sure) :rose:

unional commented 8 years ago

I just want to start using it today! :smirk: