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

Build d.ts for target #10192

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Build d.ts for target #10192

wants to merge 6 commits into from

Conversation

jwunderl
Copy link
Member

@jwunderl jwunderl commented Sep 17, 2024

Simple version for now since we just want a prototype, but easy to add list of packages to include / from share link support / etc if we want.

Should look at stripping it so hidden / deprecated apis etc are removed as well, but spent too long staring at this before realizing my local arcade build was just very broken so need to look at other stuff that's more useful for now, basically just stashing this here.

it outputs to separate d.ts files but also combines them into a 'combined.d.ts' at the end. This doesn't kick off a build or anything so need to have served first (which does mean it only takes about a second to run

(could also go from program -> more full d.ts emitter, but this seems to work fine for what we want at least?)

generated-dts.zip

@jwunderl jwunderl requested a review from riknoll September 17, 2024 21:22
@jwunderl jwunderl requested a review from thsparks September 17, 2024 22:09
);

console.log(`writing combined.d.ts`)
fs.writeFileSync(path.join(builtFolder, "combined.d.ts"), combined);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is a single file for all d.ts, maybe call it index.d.ts?

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 this pull request may close these issues.

2 participants