{"id":24486054,"url":"https://github.com/zachmatson/svelte-check-plugin","last_synced_at":"2025-03-14T22:12:11.738Z","repository":{"id":43405489,"uuid":"446904297","full_name":"zachmatson/svelte-check-plugin","owner":"zachmatson","description":"Webpack plugin which runs svelte-check before compilation","archived":false,"fork":false,"pushed_at":"2022-08-17T01:46:57.000Z","size":63,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T08:47:09.538Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zachmatson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-11T16:46:13.000Z","updated_at":"2023-09-26T03:39:27.000Z","dependencies_parsed_at":"2022-07-08T05:10:54.800Z","dependency_job_id":null,"html_url":"https://github.com/zachmatson/svelte-check-plugin","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachmatson%2Fsvelte-check-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachmatson%2Fsvelte-check-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachmatson%2Fsvelte-check-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachmatson%2Fsvelte-check-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zachmatson","download_url":"https://codeload.github.com/zachmatson/svelte-check-plugin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243652702,"owners_count":20325611,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-21T14:32:04.563Z","updated_at":"2025-03-14T22:12:11.710Z","avatar_url":"https://github.com/zachmatson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svelte-check-plugin\n\n[![npm](https://img.shields.io/npm/v/svelte-check-plugin)](https://www.npmjs.com/package/svelte-check-plugin)\n[![npm](https://img.shields.io/npm/dw/svelte-check-plugin)](https://www.npmjs.com/package/svelte-check-plugin)\n\nThis plugin runs `svelte-check` as part of the webpack build process, and causes the build to fail with proper error reporting when `svelte-check` fails. This enables proper TypeScript checking of Svelte projects in webpack builds.\n\n## Installation\n\nCurrently, this plugin only supports `npm`, as it uses `npx` to run `svelte-check`.\n\n```sh\nnpm install --save-dev svelte-check svelte-check-plugin\n```\n\n## Usage\n\nThe plugin must be specified in your `webpack.config.js`:\n```js\n...\nconst SvelteCheckPlugin = requre(\"svelte-check-plugin\");\n...\nmodule.exports = {\n    ...\n    plugins: {\n        ...,\n        new SvelteCheckPlugin(),\n        ...\n    },\n    ...\n}\n```\n\nIf the plugin is working correctly, you should see output similar to the following when webpack compiles your project:\n```sh\n====================================\nLoading svelte-check in workspace: [your workspace]\nGetting Svelte diagnostics...\n\n====================================\nsvelte-check found 0 errors, 0 warnings, and 0 hints\n```\n\nErrors will show up over the rendered page during development if any occur.\n\nYou can also pass custom arguments to `svelte-check` if desired:\n```js\n...\nplugins: {\n    ...,\n    new SvelteCheckPlugin({\n        args: [\"--fail-on-hints\", \"--tsconfig\", \"path/to/tsconfig\"]\n    }),\n    ...\n},\n...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachmatson%2Fsvelte-check-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzachmatson%2Fsvelte-check-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachmatson%2Fsvelte-check-plugin/lists"}