-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add outDir
option to generate output in a folder
#210
Comments
Looks reasonable for me, but I have a few questions:
As for the implementation you have, I'd improve the error messages and add handling invalid set of options (you cannot use |
I just ran into this myself and what I expected was to run Essentially just compiling once and get output as following:
Currently I run |
@ext yeah the performance is a valid point and for that reasons a config file was introduced a long time ago - you can control everything you need there. The only question here is to provide an option to be able to use the tool without a config file at all, by providing CLI args. I'd probably add 2 CLI args to solve this ticket:
Alternatively, we could consider to introduce "a special format" for entry points (like @ext @samualtnorman what do you think? |
Sounds good to me. |
--out-dir
option on command lineoutDir
option to generate output in a folder
hi me again,
I'd like the ability to specify an
--out-dir
option on the command line that'll be used when specifying multiple entry pointscurrently when specifying multiple entry points you, get all the generated declaration files next to the source files,
or need to create a config file and specify yourself the out file paths
or write the code yourself to generate the out file paths in the config file
it would be nice if this was part of the tool
I had a go at implementing this 7b9ee2d
but I'm sure I've not implemented it in the correct place
plus there's some bike shedding that needs to happen on the behaviour of the option
in my implementation I decided that the root of the project to be relative from was the directory of the
tsconfig.json
if one was specified, otherwise it's your current directoryI will once again have a go at implementing this myself once behaviour has been decided
thank you for reading this :D
The text was updated successfully, but these errors were encountered: