You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the jsii options to override tsc outDir, no types are included in the .jsii assembly. This appears to be because of how the main file for the assembly is located:
The use of the regex here to replace .d.ts with .ts assumes that the source file that created the typings file is in the same directory, which it won't be when tsc outDir is set. It seems jsii should either use the typings file as is (if that's possible), or have a separate configuration option for where the main source file is.
Verbose Log
No useful logs.
The text was updated successfully, but these errors were encountered:
Also, when mainFile here doesn't exist (as in this case because of the difference in path between the types file and the source file), there's no indication that anything went wrong, jsii just silently does nothing, which seems undesirable.
jpmartin2
changed the title
JSII does work properly with out of source build
JSII does not work properly with out of source build
Feb 19, 2020
When configuring tsc.outDir, the jsii compiler would not look for the
correct source file and captured no types from the module. This
commit fixes this problem by reversing the types attribute in order
to resolve back to the corresponding source file.
Fixes#1273
* fix: out-of-source builds are broken
When configuring tsc.outDir, the jsii compiler would not look for the
correct source file and captured no types from the module. This
commit fixes this problem by reversing the types attribute in order
to resolve back to the corresponding source file.
Fixes#1273
* PR feedback
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
🐛 Bug Report
Affected Languages
This bug affects the generation of jsii assemblies
TypeScript
orJavascript
Python
Java
C#
,F#
, ...)General Information
What is the problem?
When using the jsii options to override tsc outDir, no types are included in the .jsii assembly. This appears to be because of how the main file for the assembly is located:
jsii/packages/jsii/lib/assembler.ts
Line 74 in 591a5d9
Verbose Log
No useful logs.
The text was updated successfully, but these errors were encountered: