a homebrewed DnD campaign based in the Honkai: Star Rail universe
hsr honkaistarrail dnd

chore: fix cloudflare migration, followup to #102 (#103)

authored by samanthanguyen.me and committed by

GitHub d6b4581c 9d7a9c77

+11 -2
+10
app/svelte.config.js
··· 30 30 }, 31 31 }, 32 32 extensions: ['.svelte', '.svx'], 33 + typescript: { 34 + config: (config) => { 35 + // writing this in tsconfig.json itself doesn't seem to work (not sure why), 36 + // so let's add the final file via sveltekit's config. 37 + // - https://svelte.dev/docs/kit/configuration#typescript 38 + // - https://developers.cloudflare.com/workers/languages/typescript/#migrating 39 + config.compilerOptions.types.push('./worker-configuration.d.ts') 40 + config.compilerOptions.types.push('node') 41 + }, 42 + }, 33 43 })
+1 -2
app/tsconfig.json
··· 10 10 "skipLibCheck": true, 11 11 "sourceMap": true, 12 12 "strict": true, 13 - "moduleResolution": "bundler", 14 - "types": ["./worker-configuration.d.ts", "node"] 13 + "moduleResolution": "bundler" 15 14 } 16 15 // Path aliases are handled by https://svelte.dev/docs/kit/configuration#alias 17 16 // except $lib which is handled by https://svelte.dev/docs/kit/configuration#files