-
Notifications
You must be signed in to change notification settings - Fork 323
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
imports with resolution-mode not replaced #582
Comments
Also worked for me. Thanks for that 👍 |
FoxxMD
added a commit
to FoxxMD/multi-scrobbler
that referenced
this issue
Feb 14, 2024
Changing tsconfig resolution caused generation to generate new (bad?) import lines. Replacing with regex from YousefED/typescript-json-schema#582 returned ref/definitions to normal
FoxxMD
added a commit
to FoxxMD/endlessh-notify
that referenced
this issue
Feb 14, 2024
Using tsconfig NodeNext resolution caused generation to generate bad(?) import lines. Replacing with regex from YousefED/typescript-json-schema#582 returned ref/definitions to normal and enables actually using validation
FoxxMD
added a commit
to FoxxMD/typescript-json-schema
that referenced
this issue
Apr 3, 2024
Used fix provided by @jer-sen
FoxxMD
added a commit
to FoxxMD/multi-scrobbler
that referenced
this issue
Oct 11, 2024
Still missing a bunch of definitions, unfortunately. YousefED/typescript-json-schema#582
I was getting This regex fixed things for me: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With my new TS config I have some imports in the output such as:
Fixing this regex make them disappear:
var REGEX_FILE_NAME_OR_SPACE = /(\bimport\(".*?"(, \{ assert: \{ "resolution-mode": "(import|require)" \} \})?\)|".*?")\.| /g;
The text was updated successfully, but these errors were encountered: