Skip to content
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

compilerOptions.lib is not compatible with tsconfig.json #300

Closed
nounder opened this issue May 23, 2023 · 3 comments · Fixed by #303
Closed

compilerOptions.lib is not compatible with tsconfig.json #300

nounder opened this issue May 23, 2023 · 3 comments · Fixed by #303

Comments

@nounder
Copy link

nounder commented May 23, 2023

compilerOptions.lib in tsconfig.json is case insensitive. In fact, VSCode by default auto-completes possible names in mixed case:
Screenshot 2023-05-23 at 12 33 10

On the other hand, compilerOptions.lib in dnt build options only accepts lowercase names:

error: Uncaught (in promise) Error: Could not find filename for lib: ESNext
      throw new Error(`Could not find filename for lib: ${name}`);

Same applies for typings.

dnt should accept compilterOptions in same format Typescript does.

@dsherret
Copy link
Member

Are you using typescript? What version of dnt are you using?

| "dom"

@dsherret
Copy link
Member

Ah, I see. The screenshot is of tsconfig.json. I think aligning them with that would be good.

@nounder
Copy link
Author

nounder commented May 23, 2023

Whoa, that was quick. Thanks @dsherret!

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 a pull request may close this issue.

2 participants