Update domain-task to use TS 2.0 and @types

This commit is contained in:
SteveSandersonMS
2016-10-05 14:30:22 +01:00
parent 7f257e86e3
commit 4e291130a0
5 changed files with 9 additions and 25 deletions

View File

@@ -1,4 +1,3 @@
/typings/
/node_modules/
/*.js
/*.d.ts

View File

@@ -4,7 +4,7 @@
"description": "Tracks outstanding operations for a logical thread of execution",
"main": "index.js",
"scripts": {
"prepublish": "rimraf *.d.ts && tsd update && tsc && echo 'Finished building NPM package \"domain-task\"'",
"prepublish": "rimraf *.d.ts && tsc && echo 'Finished building NPM package \"domain-task\"'",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Microsoft",
@@ -21,6 +21,8 @@
"isomorphic-fetch": "^2.2.1"
},
"devDependencies": {
"@types/node": "^6.0.42",
"@types/whatwg-fetch": "0.0.31",
"rimraf": "^2.5.4",
"typescript": "^2.0.0"
}

View File

@@ -1,4 +0,0 @@
declare module 'isomorphic-fetch' {
var fetch: (url: string | Request, init?: RequestInit) => Promise<any>;
export default fetch;
}

View File

@@ -4,8 +4,13 @@
"module": "commonjs",
"target": "es5",
"declaration": true,
"outDir": "."
"outDir": ".",
"lib": ["es2015", "dom"]
},
"files": [
"src/index.ts",
"src/domain-context.d.ts"
],
"exclude": [
"node_modules"
]

View File

@@ -1,18 +0,0 @@
{
"version": "v4",
"repo": "borisyankov/DefinitelyTyped",
"ref": "master",
"path": "typings",
"bundle": "typings/tsd.d.ts",
"installed": {
"node/node.d.ts": {
"commit": "3030a4be536b6530c06b80081f1333dc0de4d703"
},
"es6-promise/es6-promise.d.ts": {
"commit": "3030a4be536b6530c06b80081f1333dc0de4d703"
},
"whatwg-fetch/whatwg-fetch.d.ts": {
"commit": "3030a4be536b6530c06b80081f1333dc0de4d703"
}
}
}