diff --git a/.travis.yml b/.travis.yml index b1c3783..917478a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,7 @@ language: node_js node_js: - - node # = latest -before_install: - - npm i -g typescript - - tsc --version + - node # = latest install: - - npm ci - - tsc \ No newline at end of file + - npm ci +script: + - npm test diff --git a/package-lock.json b/package-lock.json index 4ca7b9a..adfb2ff 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,9 +11,9 @@ "dev": true }, "@types/node": { - "version": "10.11.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-10.11.2.tgz", - "integrity": "sha512-XubfQDIg88PGJ7netQPf3QOKHF7Xht4WXGtg5W7cGBeQs9ETbYKwfchR9o+tRRA9iLTQ7nAre85M205JbYsjJA==", + "version": "10.17.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.3.tgz", + "integrity": "sha512-QZ9CjUB3QoA3f2afw3utKlfRPhpmufB7jC2+oDhLWnXqoyx333fhKSQDLQu2EK7OE0a15X67eYiRAaJsHXrpMA==", "dev": true }, "adm-zip": { @@ -214,6 +214,12 @@ "has-flag": "^3.0.0" } }, + "typescript": { + "version": "3.6.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.6.4.tgz", + "integrity": "sha512-unoCll1+l+YK4i4F8f22TaNVPRHcD9PA3yCuZ8g5e0qGqlVlJ/8FSateOLLSagn+Yg5+ZwuPkL8LFUc0Jcvksg==", + "dev": true + }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", @@ -263,13 +269,15 @@ "mkdirp": { "version": "0.5.1", "bundled": true, + "optional": true, "requires": { "minimist": "0.0.8" }, "dependencies": { "minimist": { "version": "0.0.8", - "bundled": true + "bundled": true, + "optional": true } } }, @@ -368,7 +376,8 @@ }, "console-control-strings": { "version": "1.1.0", - "bundled": true + "bundled": true, + "optional": true }, "gauge": { "version": "2.7.2", @@ -409,6 +418,7 @@ "string-width": { "version": "1.0.2", "bundled": true, + "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -417,18 +427,21 @@ "dependencies": { "code-point-at": { "version": "1.1.0", - "bundled": true + "bundled": true, + "optional": true }, "is-fullwidth-code-point": { "version": "1.0.0", "bundled": true, + "optional": true, "requires": { "number-is-nan": "^1.0.0" }, "dependencies": { "number-is-nan": { "version": "1.0.1", - "bundled": true + "bundled": true, + "optional": true } } } @@ -437,13 +450,15 @@ "strip-ansi": { "version": "3.0.1", "bundled": true, + "optional": true, "requires": { "ansi-regex": "^2.0.0" }, "dependencies": { "ansi-regex": { "version": "2.0.0", - "bundled": true + "bundled": true, + "optional": true } } }, @@ -547,13 +562,15 @@ "combined-stream": { "version": "1.0.5", "bundled": true, + "optional": true, "requires": { "delayed-stream": "~1.0.0" }, "dependencies": { "delayed-stream": { "version": "1.0.0", - "bundled": true + "bundled": true, + "optional": true } } }, @@ -743,6 +760,7 @@ "boom": { "version": "2.10.1", "bundled": true, + "optional": true, "requires": { "hoek": "2.x.x" } @@ -757,7 +775,8 @@ }, "hoek": { "version": "2.16.3", - "bundled": true + "bundled": true, + "optional": true }, "sntp": { "version": "1.0.9", @@ -796,7 +815,8 @@ "dependencies": { "extsprintf": { "version": "1.0.2", - "bundled": true + "bundled": true, + "optional": true }, "json-schema": { "version": "0.2.3", @@ -836,7 +856,8 @@ }, "assert-plus": { "version": "1.0.0", - "bundled": true + "bundled": true, + "optional": true }, "bcrypt-pbkdf": { "version": "1.0.0", @@ -910,13 +931,15 @@ "mime-types": { "version": "2.1.13", "bundled": true, + "optional": true, "requires": { "mime-db": "~1.25.0" }, "dependencies": { "mime-db": { "version": "1.25.0", - "bundled": true + "bundled": true, + "optional": true } } }, @@ -965,6 +988,7 @@ "rimraf": { "version": "2.5.4", "bundled": true, + "optional": true, "requires": { "glob": "^7.0.5" }, @@ -972,6 +996,7 @@ "glob": { "version": "7.1.1", "bundled": true, + "optional": true, "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -983,11 +1008,13 @@ "dependencies": { "fs.realpath": { "version": "1.0.0", - "bundled": true + "bundled": true, + "optional": true }, "inflight": { "version": "1.0.6", "bundled": true, + "optional": true, "requires": { "once": "^1.3.0", "wrappy": "1" @@ -995,17 +1022,20 @@ "dependencies": { "wrappy": { "version": "1.0.2", - "bundled": true + "bundled": true, + "optional": true } } }, "inherits": { "version": "2.0.3", - "bundled": true + "bundled": true, + "optional": true }, "minimatch": { "version": "3.0.3", "bundled": true, + "optional": true, "requires": { "brace-expansion": "^1.0.0" }, @@ -1013,6 +1043,7 @@ "brace-expansion": { "version": "1.1.6", "bundled": true, + "optional": true, "requires": { "balanced-match": "^0.4.1", "concat-map": "0.0.1" @@ -1020,11 +1051,13 @@ "dependencies": { "balanced-match": { "version": "0.4.2", - "bundled": true + "bundled": true, + "optional": true }, "concat-map": { "version": "0.0.1", - "bundled": true + "bundled": true, + "optional": true } } } @@ -1033,19 +1066,22 @@ "once": { "version": "1.4.0", "bundled": true, + "optional": true, "requires": { "wrappy": "1" }, "dependencies": { "wrappy": { "version": "1.0.2", - "bundled": true + "bundled": true, + "optional": true } } }, "path-is-absolute": { "version": "1.0.1", - "bundled": true + "bundled": true, + "optional": true } } } @@ -1059,6 +1095,7 @@ "tar": { "version": "2.2.1", "bundled": true, + "optional": true, "requires": { "block-stream": "*", "fstream": "^1.0.2", @@ -1068,6 +1105,7 @@ "block-stream": { "version": "0.0.9", "bundled": true, + "optional": true, "requires": { "inherits": "~2.0.0" } @@ -1075,6 +1113,7 @@ "fstream": { "version": "1.0.10", "bundled": true, + "optional": true, "requires": { "graceful-fs": "^4.1.2", "inherits": "~2.0.0", @@ -1084,13 +1123,15 @@ "dependencies": { "graceful-fs": { "version": "4.1.11", - "bundled": true + "bundled": true, + "optional": true } } }, "inherits": { "version": "2.0.3", - "bundled": true + "bundled": true, + "optional": true } } }, @@ -1127,6 +1168,7 @@ "fstream": { "version": "1.0.10", "bundled": true, + "optional": true, "requires": { "graceful-fs": "^4.1.2", "inherits": "~2.0.0", @@ -1136,11 +1178,13 @@ "dependencies": { "graceful-fs": { "version": "4.1.11", - "bundled": true + "bundled": true, + "optional": true }, "inherits": { "version": "2.0.3", - "bundled": true + "bundled": true, + "optional": true } } }, diff --git a/package.json b/package.json index 6eeceb6..c1f1bb2 100644 --- a/package.json +++ b/package.json @@ -43,10 +43,12 @@ }, "devDependencies": { "@types/mocha": "^5.2.5", - "@types/node": "^10.11.2", - "mocha": "^5.2.0" + "@types/node": "^10.11.7", + "mocha": "^5.2.0", + "typescript": "3.6.4" }, "scripts": { - "test": "node_modules/.bin/mocha dist/test/ --exit" + "pretest": "tsc", + "test": "mocha dist/test/ --exit" } }