Skip to content

Commit 3f00de2

Browse files
committed
chore(test app): Update packages and use module/moduleResolution NodeNext
Also fixed legacy typings in app.d.ts
1 parent 250d932 commit 3f00de2

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

test-app/package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test-app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
"type": "module",
1515
"devDependencies": {
1616
"@sveltejs/adapter-static": "3.0.8",
17-
"@sveltejs/kit": "2.16.1",
17+
"@sveltejs/kit": "2.17.2",
1818
"eslint-plugin-svelte": "2.46.1",
19-
"svelte": "5.19.2",
19+
"svelte": "5.20.1",
2020
"svelte-check": "4.1.4",
2121
"svelte-preprocess": "^6.0.3",
2222
"svgo": "3.3.2",

test-app/src/app.d.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
declare module '*.svg?component' {
2-
import type { Component, SvelteComponent } from 'svelte'
2+
import type { Component } from 'svelte'
33
import type { SVGAttributes } from 'svelte/elements'
44

5-
const content: Component<
6-
SvelteComponent<SVGAttributes<SVGSVGElement> & { title?: string }>
7-
>
5+
const content: Component<SVGAttributes<SVGSVGElement> & { title?: string }>
86

97
export default content
108
}

test-app/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"extends": "./.svelte-kit/tsconfig.json",
33
"compilerOptions": {
4-
"allowSyntheticDefaultImports": true
4+
"moduleResolution": "NodeNext",
5+
"module": "NodeNext",
6+
"verbatimModuleSyntax": true
57
}
68
}

0 commit comments

Comments
 (0)