Skip to content

Commit 92e42d8

Browse files
authored
[fix] check for app.d.ts rather than global.d.ts (#4295)
1 parent 800e996 commit 92e42d8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Diff for: .changeset/wise-pens-ring.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'create-svelte': patch
3+
---
4+
5+
[fix] check for app.d.ts rather than global.d.ts

Diff for: packages/create-svelte/scripts/build-templates.js

+2-2
Original file line numberDiff line numberDiff 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']

0 commit comments

Comments
 (0)