{"id":21906637,"url":"https://github.com/enlight/typescript-output-dir-structure-issues","last_synced_at":"2026-04-18T04:31:17.986Z","repository":{"id":137248017,"uuid":"46963151","full_name":"enlight/typescript-output-dir-structure-issues","owner":"enlight","description":"Minimal package to reproduce a couple of bugs in TypeScript","archived":false,"fork":false,"pushed_at":"2015-11-27T06:20:41.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T07:29:34.766Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/enlight.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":"2015-11-27T06:18:01.000Z","updated_at":"2015-11-27T06:20:42.000Z","dependencies_parsed_at":"2023-03-13T20:26:34.450Z","dependency_job_id":null,"html_url":"https://github.com/enlight/typescript-output-dir-structure-issues","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/enlight/typescript-output-dir-structure-issues","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enlight%2Ftypescript-output-dir-structure-issues","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enlight%2Ftypescript-output-dir-structure-issues/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enlight%2Ftypescript-output-dir-structure-issues/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enlight%2Ftypescript-output-dir-structure-issues/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enlight","download_url":"https://codeload.github.com/enlight/typescript-output-dir-structure-issues/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enlight%2Ftypescript-output-dir-structure-issues/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31956789,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-28T16:53:52.045Z","updated_at":"2026-04-18T04:31:17.967Z","avatar_url":"https://github.com/enlight.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"I've noticed a couple of issues with the way the compiler resolves the output directory structure. I've attached a minimal project that can be used to reproduce these issues, it's setup as an NPM package, so after downloading and extracting just run `npm install` to install the latest nightly build of TypeScript (support for filenames in the `--project` compiler option was added very recently).\n\nIssue 1\n======\nFrom the package root run\n```\nnode ./node_modules/typescript/bin/tsc --project src/good-tsconfig.json\n```\nNote that the output directory structure is (as expected):\n```\nlib/\n  first/\n    file1.js\n  second/\n    file2.js\n```\nNow run\n```\nnode ./node_modules/typescript/bin/tsc --project src/bad-tsconfig.json\n```\nNote that the output directory structure is missing the subdir `second`:\n```\nlib2/\n  file2.js\n```\nWhile the expected output directory structure is:\n\n\n```\nlib2/\n  second/\n    file2.js\n```\n\nIssue 2\n======\nI'm not sure if this is a bug or just user error, but it can be reproduced starting with TypeScript 1.6.2 (and possibly earlier, that's just the oldest version I've tried). Run\n```\nnode ./node_modules/typescript/bin/tsc --project src/second\n```\nNote that the output directory structure is:\n```\nlib3/\n  second/\n    first/\n      file1.js\n    second/\n      file2.js\n```\nWhile the expected output directory structure is:\n```\nlib3/\n  first/\n    file1.js\n  second/\n    file2.js\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenlight%2Ftypescript-output-dir-structure-issues","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenlight%2Ftypescript-output-dir-structure-issues","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenlight%2Ftypescript-output-dir-structure-issues/lists"}