diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c92e8a535..b8e948b3a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ permissions: contents: read # to fetch code (actions/checkout) env: - # We only install Chromium manually + # We only install Chromium manually PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1' jobs: diff --git a/package.json b/package.json index 47afc17e5..e0f1bdcfd 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "build": "pnpm -r --filter=./packages/* build", "build:sites": "pnpm -r --filter=./sites/* build", "check": "cd packages/svelte && pnpm build && cd ../../ && pnpm -r check", - "lint": "pnpm -r lint", + "lint": "cd packages/svelte && pnpm build && cd ../../ && pnpm -r lint", "format": "pnpm -r format", "changeset:version": "changeset version && pnpm -r generate:version && git add --all", "changeset:publish": "changeset publish" diff --git a/packages/svelte/package.json b/packages/svelte/package.json index 0b554d0ef..2f9377e40 100644 --- a/packages/svelte/package.json +++ b/packages/svelte/package.json @@ -74,7 +74,7 @@ "types": "types/index.d.ts", "scripts": { "format": "prettier . --cache --plugin-search-dir=. --write", - "check": "prettier . --cache --plugin-search-dir=. --check", + "check": "tsc --noEmit", "test": "vitest run && echo \"manually check that there are no type errors in test/types by opening the files in there\"", "build": "rollup -c && pnpm types", "generate:version": "node ./scripts/generate-version.js", @@ -82,7 +82,7 @@ "posttest": "agadoo src/internal/index.js", "prepublishOnly": "pnpm build", "types": "node ./scripts/generate-dts.js", - "lint": "eslint \"{src,test}/**/*.{ts,js}\" --cache" + "lint": "prettier . --cache --plugin-search-dir=. --check && eslint \"{src,test}/**/*.{ts,js}\" --cache" }, "repository": { "type": "git", diff --git a/packages/svelte/svelte-4.0.0.tgz b/packages/svelte/svelte-4.0.0.tgz deleted file mode 100644 index 8c527a3fd..000000000 Binary files a/packages/svelte/svelte-4.0.0.tgz and /dev/null differ diff --git a/packages/svelte/tsconfig.json b/packages/svelte/tsconfig.json index ab4785e74..6665288df 100644 --- a/packages/svelte/tsconfig.json +++ b/packages/svelte/tsconfig.json @@ -35,6 +35,9 @@ "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, - "typeRoots": ["./node_modules/@types"] + "typeRoots": ["./node_modules/@types"], + "paths": { + "svelte": ["./src/runtime/public.d.ts"] + } } }