diff --git a/package.json b/package.json index 4d0dac1..9c0e5b2 100644 --- a/package.json +++ b/package.json @@ -9,17 +9,15 @@ "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, - "main": "dist/source", + "main": "dist", "engines": { "node": ">=6" }, "scripts": { "prepublishOnly": "npm run build", - "pretest": "npm run compile -- --sourceMap", - "test": "npm run lint && nyc ava dist/test", "lint": "tslint --format stylish --project .", + "test": "npm run lint && ava", "build": "npm run clean && webpack", - "compile": "npm run clean && tsc", "clean": "del dist", "docs": "typedoc source" }, @@ -63,6 +61,7 @@ "license-webpack-plugin": "^2.0.2", "lodash.isequal": "^4.5.0", "nyc": "^13.1.0", + "ts-node": "^8.0.2", "tslint": "^5.12.0", "tslint-xo": "^0.13.0", "typedoc": "^0.14.2", @@ -75,11 +74,17 @@ "sideEffects": false, "ava": { "babel": false, - "compileEnhancements": false + "compileEnhancements": false, + "extensions": [ + "ts" + ], + "require": [ + "ts-node/register" + ] }, "nyc": { - "exclude": [ - "dist/test" + "extension": [ + ".ts" ] } } diff --git a/tsconfig.json b/tsconfig.json index 8d5bd90..354fd60 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,8 +8,7 @@ ] }, "include": [ - "source", - "test" + "source" ], "typedocOptions": { "out": "docs", @@ -17,7 +16,6 @@ "target": "ES6", "module": "commonjs", "moduleResolution": "node", - "exclude": "source/test", "ignoreCompilerErrors": true, "excludePrivate": true, "excludeNotExported": true,