power-assert-js/espower-typescript

"Error: No output files" with `"noEmitOnError": true` in tsconfig.json

stoneChen opened this issue ยท 1 comments

This problem confused me several hours ๐Ÿ˜‚.
tsconfig.json:

{
  "compilerOptions": {
    "module": "commonjs",
    "target": "es6",
    "outDir": "lib",
    "noEmitOnError": true
  },
  "include": [
    "src/**/*.ts"
  ],
  "exclude": [
    "node_modules"
  ]
}

test/index.ts:

import assert = require('assert');

const n1: number = 1;
const n2: number = 2;
assert(n1 !== n2);

run:

# npm scripts: "test": "mocha --compilers ts:espower-typescript/guess test/index.ts",
npm test

result:

Error: No output files

Finally found that, setting noEmitOnError to false, then everything work fine.
I think there is something wrong with typescript-simple.

fixed in v9