change the outDir of the transpiled code
See original GitHub issueI don’t like the js
files being generated next to my ts
/ng
files , it’s so annoying , so I was trying to put the compiled/transpiled
js
files outside the app
directory, as any Angular
app.
what I did is :
I added outDir
to the compilerOptions
inside the tsconfig.json
file
{
"compilerOptions": {
"outDir": "./compiled/",
....
and changed the main
entrypoint
inside app/package.json
{
"android": {
"v8Flags": "--expose_gc"
},
"main": "./compiled/main.js",
by doing so the app crashes since it can’t find the main.js
…
what is the correct way to achieve that?
<bountysource-plugin>Want to back this issue? Post a bounty on it! We accept bounties via Bountysource. </bountysource-plugin>
Issue Analytics
- State:
- Created 6 years ago
- Reactions:8
- Comments:53 (14 by maintainers)
Top Results From Across the Web
NativeScript change the outDir of the transpiled code
after searching for a long time , I found this :- using Visual Studio code settings for hiding files.
Read more >change the outDir of the transpiled code - Bountysource
Coming soon: A brand new website interface for an even better experience!
Read more >Configuring TypeScript compiler - inDepthDev
By default, TS compiler outputs transpiled files to the same directory where the original TS files is found. However, this can be changed...
Read more >TSConfig Reference - Docs on every TSConfig option
Intro to the TSConfig Reference A TSConfig file in a directory indicates that the directory is the root of a TypeScript or JavaScript...
Read more >Typescript — How to solve the problem with unresolved path ...
After that, look for any transpiled JavaScript .js file under the outDir folder, and for each one check to see if there are...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
.zip
you project for any reason. There is no need to include any unnecessary files which would increase the.zip
file size.Ideally I would like to set the
tsconfig.json
’soutDir
under root folder where also node_modules are.This should be a top priority. Separating src and build files is an extremely common workflow. Your personal opinions are not valid reasons to ignore your community.