Skip to content

Commit

Permalink
Improving TypeScript support.
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly-t committed Dec 3, 2016
1 parent fac6a60 commit c411e4d
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pg-monitor",
"version": "0.6.0",
"version": "0.6.1",
"description": "Event monitor for pg-promise.",
"main": "lib/index.js",
"typings": "typescript/pg-monitor.d.ts",
Expand Down
12 changes: 12 additions & 0 deletions test/typescript/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"compileOnSave": true,
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"sourceMap": true,
"noImplicitAny": true
},
"exclude": [
"node_modules"
]
}
15 changes: 15 additions & 0 deletions test/typescriptSpec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
'use strict';

var exec = require('child_process').exec;
var path = require('path');

describe("Typescript", function () {
describe("build", function () {
it("must build without error", function (done) {
exec('tsc', {cwd: path.join('test', 'typescript')}, function (error) {
expect(error).toBe(null);
done();
})
});
});
});

0 comments on commit c411e4d

Please sign in to comment.