Skip to content

Conversation

@philnash
Copy link
Contributor

By default, tsc deems the lowest common directory as the root directory
of the application and delivers the compiled files into the outDir.
If you do not have an assets directory with a .ts file in it, then tsc
deems src/functions as the root directory and puts the compiled
functions directly into the dist directory. This wasn't obvious,
because the example generated files included a private TS asset.

Setting the rootDir to "src" ensures that the base directory is "src"
and a "functions" directory is generated in dist.

Contributing to Twilio

All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under.

  • I acknowledge that all my contributions will be made under the project's license.

By default, tsc deems the lowest common directory as the root directory
of the application and delivers the compiled files into the outDir.
If you do not have an `assets` directory with a .ts file in it, then tsc
deems src/functions as the root directory and puts the compiled
functions directly into the `dist` directory. This wasn't obvious,
because the example generated files included a private TS asset.

Setting the `rootDir` to "src" ensures that the base directory is "src"
and a "functions" directory is generated in `dist`.
@philnash philnash requested a review from dkundel September 30, 2021 00:56
@dkundel dkundel merged commit 86de2ae into main Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants