{"id":17808298,"url":"https://github.com/loaderb0t/nx-gitignore-issue","last_synced_at":"2025-10-13T23:10:45.439Z","repository":{"id":115027802,"uuid":"539898351","full_name":"LoaderB0T/nx-gitignore-issue","owner":"LoaderB0T","description":"Repro repo for nx issue","archived":false,"fork":false,"pushed_at":"2022-09-22T09:33:18.000Z","size":363,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-25T07:53:57.381Z","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/LoaderB0T.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":"2022-09-22T09:21:33.000Z","updated_at":"2022-09-22T09:33:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"3876f3cb-b92c-4420-bcd1-4659f95d4c46","html_url":"https://github.com/LoaderB0T/nx-gitignore-issue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LoaderB0T/nx-gitignore-issue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LoaderB0T%2Fnx-gitignore-issue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LoaderB0T%2Fnx-gitignore-issue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LoaderB0T%2Fnx-gitignore-issue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LoaderB0T%2Fnx-gitignore-issue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LoaderB0T","download_url":"https://codeload.github.com/LoaderB0T/nx-gitignore-issue/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LoaderB0T%2Fnx-gitignore-issue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017236,"owners_count":26086015,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"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-10-27T15:10:18.292Z","updated_at":"2025-10-13T23:10:45.405Z","avatar_url":"https://github.com/LoaderB0T.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitignoreIssue\n\n## Repro steps\n\n1. run `npm install`\n2. run `npm run prepare`\n3. run `nx build gitignore`\n\n## Expected behavior\n\nNo build errors\n\n## Actual behavior\n\nBuild error:\n\n```\nlibs/lib-a/src/lib/service.ts:1:1 - error TS6059: File 'D:/git/gitignore-issue/libs/lib-a/src/lib/service.ngtypecheck.ts' is not under 'rootDir' 'D:\\git\\gitignore-issue\\libs\\lib-b\\src'. 'rootDir' is expected to contain all source files.\n\n1 import { Injectable } from '@angular/core';\n \nlibs/lib-a/src/index.ts:1:1 - error TS6059: File 'D:/git/gitignore-issue/libs/lib-a/src/index.ngtypecheck.ts' is not under 'rootDir' 'D:\\git\\gitignore-issue\\libs\\lib-b\\src'. 'rootDir' is expected to contain all source files.\n\n1 export * from './lib/service';\n \nlibs/lib-a/src/index.ts:1:15 - error TS6059: File 'D:/git/gitignore-issue/libs/lib-a/src/lib/service.ts' is not under 'rootDir' 'D:\\git\\gitignore-issue\\libs\\lib-b\\src'. 'rootDir' is expected to contain all source files.\n\n1 export * from './lib/service';\n                ~~~~~~~~~~~~~~~\nlibs/lib-b/src/lib/.api/ignoredFile/service.ts:3:29 - error TS6059: File 'D:/git/gitignore-issue/libs/lib-a/src/index.ts' is not under 'rootDir' 'D:\\git\\gitignore-issue\\libs\\lib-b\\src'. 'rootDir' is expected to contain all source files.\n\n3 import { LibAService } from '@gitignore-issue/lib-a';\n                              ~~~~~~~~~~~~~~~~~~~~~~~~\n\n\n —————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————— \n\n \u003e  NX   Ran target build for project gitignore and 1 task(s) it depends on (3s)\n\n    ×    1/1 failed\n    √    0/1 succeeded [0 read from cache]\n```\n\n## Validate that it is because of the gitignore\n\n1. Delete the .gitignore file `libs/lib-b/src/lib/.api/.gitignore`\n2. Run `nx build gitignore` again -\u003e build succeeds\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floaderb0t%2Fnx-gitignore-issue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floaderb0t%2Fnx-gitignore-issue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floaderb0t%2Fnx-gitignore-issue/lists"}