File tree 2 files changed +7
-2
lines changed
packages/create-svelte/scripts
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) {
66
66
const js = [ ] ;
67
67
68
68
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
70
70
// also needed for JS projects if people turn on "checkJs" in their jsonfig
71
71
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 ) ;
73
73
} else if ( file . name . endsWith ( '.ts' ) ) {
74
74
const transformed = transform ( file . contents , {
75
75
transforms : [ 'typescript' ]
You can’t perform that action at this time.
0 commit comments