-
-
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
145252d
commit b9ec53d
Showing
2 changed files
with
12 additions
and
7 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,14 +9,14 @@ | |
"email": "[email protected]", | ||
"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" | ||
] | ||
} | ||
} |
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