diff --git a/package.json b/package.json index 03bb029..c63621a 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/test/typescript/tsconfig.json b/test/typescript/tsconfig.json new file mode 100644 index 0000000..1f5b9cf --- /dev/null +++ b/test/typescript/tsconfig.json @@ -0,0 +1,12 @@ +{ + "compileOnSave": true, + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "sourceMap": true, + "noImplicitAny": true + }, + "exclude": [ + "node_modules" + ] +} \ No newline at end of file diff --git a/test/typescriptSpec.js b/test/typescriptSpec.js new file mode 100644 index 0000000..b53a0a4 --- /dev/null +++ b/test/typescriptSpec.js @@ -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(); + }) + }); + }); +});