-
-
Notifications
You must be signed in to change notification settings - Fork 532
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
On tsconfig.json 'files' handling #620
Comments
Yes, you can read the documentation or search existing issues. Tip: https://github.com/TypeStrong/ts-node#cli-and-programmatic-options. FWIW, no it should not be necessary to use |
Thank you for your fast response. The project I was talking about is AssemblyScript, a TypeScript to WebAssembly compiler, where sources can be compiled to either WebAssembly with I did read the documentation, but wasn't able to spot a way to make |
Couldn’t you use types or references to achieve this? Check the section on configuration, there’s a files flag. |
Can you link me to some places I should look on how you’re expecting to use |
What I am doing for the compiler itself now is to use the files configuration setting explicitly with the duplicated array of files as you suggested. However, if a user of the compiler wants to run their own portable application with Regarding types and references: One of the necessary additional files is a .js file that sets up the environment to mimic some things one would also have when compiling to WebAssembly. The definition file could be injected by other means I think, but the JS file is difficult. Any ideas? |
Files is a boolean flag that, when enables, reads the files from configuration. It doesn’t accept a list of files. If that’s unclear in the README, can you let me know and I’ll try to improve it. I don’t understand how you use the Javascript file - that was never how TypeScript or |
The documentation is actually clear on this. My mistake.
Might well be that I am using some things in unintended ways, and it just so happened to work with |
This is unfortunate for me. Essentially, I have a project where I can't add
/// <reference
s to the sources because the target (JS or WASM) is interchangeable, and the necessary declarations are added through extending different basetsconfig.json
s, relying onfiles
being included.Is there a way to force the old behavior in new versions of
ts-node
?The text was updated successfully, but these errors were encountered: