In Angular2 I would have
\"outDir\": \"dist/app\"
in tsconfig.json. As a result the transpiled .js and .map files are generated in /di
From the Bernardo's answer I changed this
"html": "find ./app -name '.html' -type f -exec cp --parents {} ./dist \\;" for this "html": "cd app && tsc && find . \( -name '.html' -or -name '*.css' \) -type f -exec cp --parents {} ../dist \\;" and is working good. Compile and copy html and css files in one instruction I also added this "clean": "rm -rf dist"in order to remove the whole directory dist. Hope this help!