-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Generate .d.ts bundle from source #9992
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
Merged
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
2fdff69
use dts-buddy
a7ecb57
updates
9c0712e
fixes
ae74981
tidy up
595d003
rename
ed7ffcd
format
a252c27
bump dts-buddy
1f4160d
bump
db03744
add prepublishOnly script
b802f6c
build types before running check
6f7a4fe
Invalid should be Failure
a664437
ugh
c10a9a3
fix
ccd520f
fix
1b4a0cb
fix
0f7a61f
get site building
e563689
try this
e220595
Merge branch 'master' into dts-buddy
Rich-Harris 1017a49
fix
38c9e4f
reinstate code
05bd2b8
appease eslint
7c9ca73
fix some stuff
96f0d25
prettier
d7e15d1
fix
c428829
appease typescript
2bab43c
fix
8e7d00e
"eslint: so you can remember why you hate programming"
998b5a1
remove unused types
b9ea65b
use proper imports for ambient types
4a041fe
jfc eslint fuck OFF
2a054e1
try this
9368ee2
bump dts-buddy
e8c945f
try this
1a4211d
function interfaces need to be types now. who the hell knows why
4376994
hide-the-pain-harold.jpg
2c4b8ab
juggle some stuff
c36447d
jfc
8a92705
expose __sveltekit/paths and __sveltekit/environment
d01d60c
exclude internal module declarations
eee8be0
fix docs
721fc90
Update packages/kit/src/exports/public.d.ts
Rich-Harris 09c13ff
format
536f474
rename message to body
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { createBundle } from 'dts-buddy'; | ||
|
||
createBundle({ | ||
output: 'types/index.d.ts', | ||
modules: { | ||
'@sveltejs/kit': 'src/exports/public.d.ts', | ||
'@sveltejs/kit/hooks': 'src/exports/hooks/index.js', | ||
'@sveltejs/kit/node': 'src/exports/node/index.js', | ||
'@sveltejs/kit/node/polyfills': 'src/exports/node/polyfills.js', | ||
'@sveltejs/kit/vite': 'src/exports/vite/index.js', | ||
'$app/environment': 'src/runtime/app/environment.js', | ||
'$app/forms': 'src/runtime/app/forms.js', | ||
'$app/navigation': 'src/runtime/app/navigation.js', | ||
'$app/paths': 'src/runtime/app/paths.js', | ||
'$app/stores': 'src/runtime/app/stores.js' | ||
}, | ||
include: ['src'] | ||
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.