diff --git a/package.json b/package.json index c7cbc97..3613d90 100644 --- a/package.json +++ b/package.json @@ -9,14 +9,14 @@ "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, - "main": "dist/source", + "main": "dist", "engines": { "node": ">=8" }, "scripts": { "prepublishOnly": "npm run build", "pretest": "npm run compile -- --sourceMap", - "test": "xo && nyc ava", + "test": "xo && ava", "build": "npm run clean && webpack", "compile": "npm run clean && tsc", "clean": "del-cli dist", @@ -66,6 +66,7 @@ "license-webpack-plugin": "^2.0.2", "lodash.isequal": "^4.5.0", "nyc": "^14.1.1", + "ts-node": "^8.0.2", "typedoc": "^0.14.2", "typescript": "~3.5.1", "vali-date": "^1.0.0", @@ -105,11 +106,17 @@ "files": [ "dist/test/**", "!dist/test/fixtures/**" + ], + "extensions": [ + "ts" + ], + "require": [ + "ts-node/register" ] }, "nyc": { - "exclude": [ - "dist/test" + "extension": [ + ".ts" ] } } diff --git a/tsconfig.json b/tsconfig.json index 7446c03..08f9065 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,