diff --git a/.changeset/selfish-tips-divide.md b/.changeset/selfish-tips-divide.md new file mode 100644 index 000000000000..ac7e76767543 --- /dev/null +++ b/.changeset/selfish-tips-divide.md @@ -0,0 +1,5 @@ +--- +'create-svelte': patch +--- + +Run svelte-kit sync before svelte-check in check scripts diff --git a/packages/create-svelte/shared/+typescript/package.json b/packages/create-svelte/shared/+typescript/package.json index 465f674b811b..7b5612f977ae 100644 --- a/packages/create-svelte/shared/+typescript/package.json +++ b/packages/create-svelte/shared/+typescript/package.json @@ -1,7 +1,7 @@ { "scripts": { - "check": "svelte-check --tsconfig ./tsconfig.json", - "check:watch": "svelte-check --tsconfig ./tsconfig.json --watch" + "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", + "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch" }, "devDependencies": { "typescript": "^4.7.4",