From 6f18e3db20a72dbc3ed831251d3f5639a21fd11f Mon Sep 17 00:00:00 2001 From: dominikg Date: Fri, 17 Nov 2023 13:06:57 +0100 Subject: [PATCH] fix: ensure generated types match eslint and prettier --- packages/vite-plugin-svelte-inspector/package.json | 2 +- packages/vite-plugin-svelte/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vite-plugin-svelte-inspector/package.json b/packages/vite-plugin-svelte-inspector/package.json index 103819eac..e33a88e4a 100644 --- a/packages/vite-plugin-svelte-inspector/package.json +++ b/packages/vite-plugin-svelte-inspector/package.json @@ -20,7 +20,7 @@ "scripts": { "check:publint": "publint --strict", "check:types": "tsc --noEmit", - "generate:types": "dts-buddy -m \"@sveltejs/vite-plugin-svelte-inspector:src/public.d.ts\"" + "generate:types": "dts-buddy -m \"@sveltejs/vite-plugin-svelte-inspector:src/public.d.ts\" && eslint --fix types && prettier --write types" }, "engines": { "node": "^18.0.0 || >=20" diff --git a/packages/vite-plugin-svelte/package.json b/packages/vite-plugin-svelte/package.json index eb5400a20..d6302043c 100644 --- a/packages/vite-plugin-svelte/package.json +++ b/packages/vite-plugin-svelte/package.json @@ -20,7 +20,7 @@ "scripts": { "check:publint": "publint --strict", "check:types": "tsc --noEmit", - "generate:types": "dts-buddy -m \"@sveltejs/vite-plugin-svelte:src/public.d.ts\"" + "generate:types": "dts-buddy -m \"@sveltejs/vite-plugin-svelte:src/public.d.ts\" && eslint --fix types && prettier --write types" }, "engines": { "node": "^18.0.0 || >=20"