typescript - Tsconfig and outDir issue -


i having issue outdir in tsconfig.json.

i have following tsconfig file:

{   "compileroptions": {     "target": "es5",     "module": "commonjs",     "moduleresolution": "node",     "sourcemap": true,     "emitdecoratormetadata": true,     "experimentaldecorators": true,     "removecomments": false,     "noimplicitany": false,     "outdir": "dist",     "outfile": "app.js"   },   "exclude": [     "node_modules",     "local_typings"   ] } 

the files compiled app.js, not in directory i've specified (dist), in directory, tsconfig file is. has found solution problem?

actually, found out issue. think pretty funny: enough specify file path , file name in outfile, without using outdir. so, in case, be:

"outfile":"dist/app.js" 

have one!


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -