-
-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run TS as a require hook for tests instead of precompile
- Loading branch information
1 parent
6c813d9
commit e0a1bb2
Showing
2 changed files
with
13 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,17 +9,15 @@ | |
"email": "[email protected]", | ||
"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" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters