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

feat: resolve declaration files (e.g. .d.ts) as a last resort [sc-23313] #1023

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sorccu
Copy link
Contributor

@sorccu sorccu commented Feb 20, 2025

It seems that some users are using declaration files as shared header files and there is nothing else to resolve. During normal transpilation, any such imports would get removed and the declaration file would not be part of the dist bundle. Since we transpile on the runner, it would be nice to have the file available there even though it's not technically even required. More importantly however this change makes the parser not complain about missing dependencies if it encounters imports that can only be resolved to a declaration file.

I hereby confirm that I followed the code guidelines found at engineering guidelines

Affected Components

  • CLI
  • Create CLI
  • Test
  • Docs
  • Examples
  • Other

Notes for the Reviewer

Resolves #[issue-number]

New Dependency Submission

It seems that some users are using declaration files as shared header files
and there is nothing else to resolve. During normal transpilation, any such
imports would get removed and the declaration file would not be part of the
dist bundle. Since we transpile on the runner, it would be nice to have the
file available there even though it's not technically even required. More
importantly however this change makes the parser not complain about missing
dependencies if it encounters imports that can only be resolved to a
declaration file.
@sorccu sorccu added the build Issue regarding building and packaging label Feb 20, 2025
Copy link

🎉 Experimental release successfully published on npm

npm install [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issue regarding building and packaging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant