Skip to content

Commit

Permalink
Add jsconfig.json and typings
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk committed Apr 13, 2016
1 parent d07ac8c commit 79cc7d1
Show file tree
Hide file tree
Showing 7 changed files with 4,716 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/remap-istanbul
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function main (argv) {
}
catch (err) {
console.error(err.stack);
reject(newErr);
reject(err);
}
}, reject);

Expand Down
28 changes: 28 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"compilerOptions": {
"target": "es6",
"module": "commonjs"
},
"files": [
"main.js",
"bin/remap-istanbul",
"lib/intern-reporters/JsonCoverage.js",
"lib/gulpRemapIstanbul.js",
"lib/loadCoverage.js",
"lib/node.js",
"lib/remap.js",
"lib/writeReport.js",
"tasks/remapIstanbul.js",
"tests/unit/bin/remap-istanbul.js",
"tests/unit/lib/intern-reporters/JsonCoverage.js",
"tests/unit/lib/gulpRemapIstanbul.js",
"tests/unit/lib/loadCoverage.js",
"tests/unit/lib/remap.js",
"tests/unit/lib/writeReport.js",
"tests/unit/tasks/remapIstanbul.js",
"tests/unit/all.js",
"tests/unit/main.js",
"tests/intern.js",
"typings/main.d.ts"
]
}
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = function (sources, reports, reportOptions) {

if (!Object.keys(sourceStore.map).length) {
sourceStore = undefined;
}
}

var p = Object.keys(reports).map(function (reportType) {
return writeReport(collector, reportType, reportOptions || {}, reports[reportType], sourceStore);
Expand Down
1 change: 1 addition & 0 deletions typings/browser.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference path="browser/ambient/node/index.d.ts" />
Loading

0 comments on commit 79cc7d1

Please sign in to comment.