forked from sveltejs/kit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate .d.ts bundle from source (sveltejs#9992)
* use dts-buddy * updates * fixes * tidy up * rename * format * bump dts-buddy * bump * add prepublishOnly script * build types before running check * Invalid should be Failure * ugh * fix * fix * fix * get site building * try this * fix * reinstate code * appease eslint * fix some stuff * prettier * fix * appease typescript * fix * "eslint: so you can remember why you hate programming" * remove unused types * use proper imports for ambient types * jfc eslint fuck OFF * try this * bump dts-buddy * try this * function interfaces need to be types now. who the hell knows why * hide-the-pain-harold.jpg * juggle some stuff * jfc * expose __sveltekit/paths and __sveltekit/environment * exclude internal module declarations * fix docs * Update packages/kit/src/exports/public.d.ts Co-authored-by: Ben McCann <[email protected]> * format --------- Co-authored-by: Rich Harris <[email protected]> Co-authored-by: Ben McCann <[email protected]>
- Loading branch information
1 parent
81af6ba
commit 9d8376f
Showing
67 changed files
with
804 additions
and
836 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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.