@@ -23,15 +23,15 @@ export function init(config, mode) {
2323 * Update SvelteKit's generated files
2424 * @param {import('types').ValidatedConfig } config
2525 */
26- export async function create ( config ) {
26+ export function create ( config ) {
2727 const manifest_data = create_manifest_data ( { config } ) ;
2828
2929 const output = path . join ( config . kit . outDir , 'generated' ) ;
3030
3131 write_client_manifest ( config . kit , manifest_data , `${ output } /client` ) ;
3232 write_server ( config , output ) ;
3333 write_root ( manifest_data , output ) ;
34- await write_all_types ( config , manifest_data ) ;
34+ write_all_types ( config , manifest_data ) ;
3535
3636 return { manifest_data } ;
3737}
@@ -44,31 +44,29 @@ export async function create(config) {
4444 * @param {import('types').ManifestData } manifest_data
4545 * @param {string } file
4646 */
47- export async function update ( config , manifest_data , file ) {
48- await write_types ( config , manifest_data , file ) ;
49-
50- return { manifest_data } ;
47+ export function update ( config , manifest_data , file ) {
48+ write_types ( config , manifest_data , file ) ;
5149}
5250
5351/**
5452 * Run sync.init and sync.create in series, returning the result from sync.create.
5553 * @param {import('types').ValidatedConfig } config
5654 * @param {string } mode The Vite mode
5755 */
58- export async function all ( config , mode ) {
56+ export function all ( config , mode ) {
5957 init ( config , mode ) ;
60- return await create ( config ) ;
58+ return create ( config ) ;
6159}
6260
6361/**
6462 * Run sync.init and then generate all type files.
6563 * @param {import('types').ValidatedConfig } config
6664 * @param {string } mode The Vite mode
6765 */
68- export async function all_types ( config , mode ) {
66+ export function all_types ( config , mode ) {
6967 init ( config , mode ) ;
7068 const manifest_data = create_manifest_data ( { config } ) ;
71- await write_all_types ( config , manifest_data ) ;
69+ write_all_types ( config , manifest_data ) ;
7270}
7371
7472/**
0 commit comments