diff --git a/.changeset/weak-feet-cheer.md b/.changeset/weak-feet-cheer.md new file mode 100644 index 000000000000..8c056bdd4525 --- /dev/null +++ b/.changeset/weak-feet-cheer.md @@ -0,0 +1,5 @@ +--- +'create-svelte': patch +--- + +Add svelte-kit sync to check scripts in checkjs templates diff --git a/packages/create-svelte/shared/+checkjs/package.json b/packages/create-svelte/shared/+checkjs/package.json index ae2ee38d540d..ccd4dd1269bb 100644 --- a/packages/create-svelte/shared/+checkjs/package.json +++ b/packages/create-svelte/shared/+checkjs/package.json @@ -1,7 +1,7 @@ { "scripts": { - "check": "svelte-check --tsconfig ./jsconfig.json", - "check:watch": "svelte-check --tsconfig ./jsconfig.json --watch" + "check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json", + "check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch" }, "devDependencies": { "typescript": "^4.7.4",