mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
Update domain-task to use TS 2.0 and @types
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
/typings/
|
|
||||||
/node_modules/
|
/node_modules/
|
||||||
/*.js
|
/*.js
|
||||||
/*.d.ts
|
/*.d.ts
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"description": "Tracks outstanding operations for a logical thread of execution",
|
"description": "Tracks outstanding operations for a logical thread of execution",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"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"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
"author": "Microsoft",
|
"author": "Microsoft",
|
||||||
@@ -21,6 +21,8 @@
|
|||||||
"isomorphic-fetch": "^2.2.1"
|
"isomorphic-fetch": "^2.2.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@types/node": "^6.0.42",
|
||||||
|
"@types/whatwg-fetch": "0.0.31",
|
||||||
"rimraf": "^2.5.4",
|
"rimraf": "^2.5.4",
|
||||||
"typescript": "^2.0.0"
|
"typescript": "^2.0.0"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
declare module 'isomorphic-fetch' {
|
|
||||||
var fetch: (url: string | Request, init?: RequestInit) => Promise<any>;
|
|
||||||
export default fetch;
|
|
||||||
}
|
|
||||||
@@ -4,8 +4,13 @@
|
|||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
"target": "es5",
|
"target": "es5",
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"outDir": "."
|
"outDir": ".",
|
||||||
|
"lib": ["es2015", "dom"]
|
||||||
},
|
},
|
||||||
|
"files": [
|
||||||
|
"src/index.ts",
|
||||||
|
"src/domain-context.d.ts"
|
||||||
|
],
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"node_modules"
|
"node_modules"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user