I am trying to create one .js and .d file for my entire library. this is my .json package:
{ "compilerOptions": { "module": "commonjs", "target": "es6", "noImplicitAny": false, "outDir": "build", "sourceMap": true, "removeComments": true, "watch": false, "declaration": true, "outFile": "file.js" }, "exclude": [ "node_modules", "build" ] }
but when I run tsc
, I get this error: error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
So how can I do this?
source share