From c3818b2584a49523c5723a326ac1c1e58002e7b2 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sat, 27 Aug 2022 14:42:40 -0400 Subject: [PATCH] svelte-kit sync before checks - closes #5779 (#6339) --- .changeset/weak-feet-cheer.md | 5 +++++ packages/create-svelte/shared/+checkjs/package.json | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/weak-feet-cheer.md 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",