File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
packages/create-svelte/scripts Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' create-svelte ' : patch
3+ ---
4+
5+ [ fix] check for app.d.ts rather than global.d.ts
Original file line number Diff line number Diff line change @@ -66,10 +66,10 @@ async function generate_templates(shared) {
6666 const js = [ ] ;
6767
6868 for ( const file of ts ) {
69- // The global .d.ts file makes TS/JS aware of some ambient modules, which are
69+ // The app .d.ts file makes TS/JS aware of some ambient modules, which are
7070 // also needed for JS projects if people turn on "checkJs" in their jsonfig
7171 if ( file . name . endsWith ( '.d.ts' ) ) {
72- if ( file . name . endsWith ( 'global .d.ts' ) ) js . push ( file ) ;
72+ if ( file . name . endsWith ( 'app .d.ts' ) ) js . push ( file ) ;
7373 } else if ( file . name . endsWith ( '.ts' ) ) {
7474 const transformed = transform ( file . contents , {
7575 transforms : [ 'typescript' ]
You can’t perform that action at this time.
0 commit comments