{"id":24860707,"url":"https://github.com/dominictobias/ts-loader-declaration-bug","last_synced_at":"2025-07-10T22:18:28.825Z","repository":{"id":42810785,"uuid":"269478972","full_name":"dominictobias/ts-loader-declaration-bug","owner":"dominictobias","description":"ts-loader declarations stop generating on style changes bug","archived":false,"fork":false,"pushed_at":"2023-01-06T07:56:12.000Z","size":649,"stargazers_count":2,"open_issues_count":10,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-19T23:36:12.200Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dominictobias.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-04T22:32:33.000Z","updated_at":"2024-07-03T11:09:37.000Z","dependencies_parsed_at":"2023-02-05T16:16:39.946Z","dependency_job_id":null,"html_url":"https://github.com/dominictobias/ts-loader-declaration-bug","commit_stats":null,"previous_names":["sekoyo/ts-loader-declaration-bug","dominictobias/ts-loader-declaration-bug"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dominictobias%2Fts-loader-declaration-bug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dominictobias%2Fts-loader-declaration-bug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dominictobias%2Fts-loader-declaration-bug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dominictobias%2Fts-loader-declaration-bug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dominictobias","download_url":"https://codeload.github.com/dominictobias/ts-loader-declaration-bug/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245690812,"owners_count":20656653,"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-31T21:42:26.473Z","updated_at":"2025-03-26T16:25:31.081Z","avatar_url":"https://github.com/dominictobias.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Expected Behaviour\n\nContinues to emit declaration files\n\n### Actual Behaviour\n\nStops emitting declaration files if ANY modification is made to a .SCSS (sass) file, declaration directory structure is still there without any declarations.\n\nIf an edit is then made to a particular module it generates declarations for those files and it's imports but still missing from the the rest of the project.\n\nEdit: This frequently happens when modifying TS files too, although in that case only some go missing (ones which don't have a direct dependency on the edited file).\n\n### Steps to Reproduce the Problem\n\n```\nyarn install\nyarn start\n```\n\nNote how `dist/types` is generated\n\nNow make a change to the `.scss` file and note all declaration files except for the directory structure are removed.\n\n### Location of a Minimal Repository that Demonstrates the Issue.\n\nhttps://github.com/DominicTobias/ts-loader-declaration-bug\n\n**Edit:** This appears to be caused when using `clean-webpack-plugin` in conjunction with `ts-loader`. So a quick fix is to stop using it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdominictobias%2Fts-loader-declaration-bug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdominictobias%2Fts-loader-declaration-bug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdominictobias%2Fts-loader-declaration-bug/lists"}