Skip to content

Commit

Permalink
tackling mocha config for proper .ts watch (not working)
Browse files Browse the repository at this point in the history
    maybe related: TypeStrong/ts-node#266
  • Loading branch information
jokester committed Feb 1, 2017
1 parent ca8c910 commit 8d60067
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion mocha-js.opts
@@ -1,2 +1,3 @@
--reporter list
lib/**/*.js
--recursive
lib/
4 changes: 3 additions & 1 deletion mocha-ts.opts
@@ -1,4 +1,6 @@
--require ts-node/register
--compilers ts:ts-node/register,tsx:ts-node/register
--reporter list
--watch-extensions tsx,ts
lib-ts/**/*.ts
--recursive
lib-ts/
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -8,8 +8,8 @@
"start:ts": "ts-node lib-ts/index.ts",
"build": "tsc",
"build:watch": "tsc --watch",
"test:ts": " mocha --opts mocha-ts.opts",
"test": "npm run build; mocha --opts mocha-js.opts"
"test:ts": " mocha --opts mocha-ts.opts || true",
"test": "tsc && mocha --opts mocha-js.opts || true"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Expand Up @@ -7,7 +7,7 @@
"rootDir": "lib-ts",
"sourceMap": true,
"moduleResolution": "node",
"listEmittedFiles": true,
"listEmittedFiles": false,
"emitDecoratorMetadata": true,
"pretty": true,
"module": "commonjs",
Expand Down

0 comments on commit 8d60067

Please sign in to comment.