{"id":15388539,"url":"https://github.com/deebloo/ts-dist-options","last_synced_at":"2025-04-06T01:41:05.253Z","repository":{"id":71870512,"uuid":"268798266","full_name":"deebloo/ts-dist-options","owner":"deebloo","description":null,"archived":false,"fork":false,"pushed_at":"2020-06-02T14:29:42.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-12T07:53:51.398Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/deebloo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-02T12:43:46.000Z","updated_at":"2020-06-02T14:29:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"acbec7ca-bce7-4c19-af07-bf98c950083a","html_url":"https://github.com/deebloo/ts-dist-options","commit_stats":{"total_commits":3,"total_committers":2,"mean_commits":1.5,"dds":"0.33333333333333337","last_synced_commit":"c5a623254da0e818daea22218676aa36bcaee086"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deebloo%2Fts-dist-options","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deebloo%2Fts-dist-options/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deebloo%2Fts-dist-options/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deebloo%2Fts-dist-options/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deebloo","download_url":"https://codeload.github.com/deebloo/ts-dist-options/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247423492,"owners_count":20936622,"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":"2024-10-01T14:57:11.630Z","updated_at":"2025-04-06T01:41:05.233Z","avatar_url":"https://github.com/deebloo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TS distribution issues\n\nThis repo is to demonstrate the potential issues when distributing typescript source code vs compiled js code with d.ts files.\n\n## Install Typescript\n\n```BASH\nnpm i -g typescript@3.9.3\n```\n\n## Build Module 1\n\nModule 1 is built WITHOUT strict compiler options.\n\n```BASH\ntsc -p module-1/tsconfig.json\n```\n\n## Build Module 2 (Works)\n\nModule 2 is built WITH strict compiler options.\n\nModule 2 depends on Module 1 and uses the js file + d.ts.\n\nThis works because the compiler doesn't type check the JS file, just the d.ts file\n\n```BASH\ntsc -p module-2/tsconfig.json\n```\n\n## Build Module 3 (Fails)\n\nModule 3 is built WITH strict compiler options.\n\nModule 3 depends on Module 1 and uses the source Typescript code\n\nThis fails because the compiler needs to compile the source code of Lib 1 which was written with less strict options in mind.\n\n```BASH\ntsc -p module-3/tsconfig.json\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeebloo%2Fts-dist-options","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeebloo%2Fts-dist-options","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeebloo%2Fts-dist-options/lists"}