Title: Infer project references from common monorepo patterns / tools · Issue #25376 · microsoft/TypeScript · GitHub
Open Graph Title: Infer project references from common monorepo patterns / tools · Issue #25376 · microsoft/TypeScript
X Title: Infer project references from common monorepo patterns / tools · Issue #25376 · microsoft/TypeScript
Description: Genesis: see section "Repetitive configuration" in #3469 (comment) Search Terms monorepo infer project references automatically yarn lerna workspace package.json Suggestion For common monorepo managers, we should natively understand cros...
Open Graph Description: Genesis: see section "Repetitive configuration" in #3469 (comment) Search Terms monorepo infer project references automatically yarn lerna workspace package.json Suggestion For common monorepo mana...
X Description: Genesis: see section "Repetitive configuration" in #3469 (comment) Search Terms monorepo infer project references automatically yarn lerna workspace package.json Suggestion For common mon...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/25376
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Infer project references from common monorepo patterns / tools","articleBody":"Genesis: see section \"Repetitive configuration\" in https://github.com/Microsoft/TypeScript/issues/3469#issuecomment-400439520\r\n\r\n## Search Terms\r\n\r\nmonorepo infer project references automatically yarn lerna workspace package.json\r\n\r\n## Suggestion\r\n\r\nFor common monorepo managers, we should natively understand cross-project references declared in `package.json` as if they were declared in `tsconfig.json`\r\n\r\nOpen questions:\r\n * Which formats (lerna, yarn, pnpm, etc) would be supported? Can all of them be consistently detected, or would you need to opt in to a specific \"monorepo format\" to enable a specific resolution algorithm?\r\n * How do we find the `tsconfig.json` file? This data is actually not present in the current (non-tsconfig) dependency graph. We could assume it to be in the package root; what if it's elsewhere?\r\n * Would you need to opt in? Would there be a way to opt out? What should that look like?\r\n\r\n## Use Cases\r\n\r\n * Monorepos of all (supportable) flavors\r\n\r\n## Examples\r\n\r\nhttps://github.com/RyanCavanaugh/learn-a\r\n\r\nThis repo has a fair bit of duplication where projects need to write down their dependencies in package.json *and* as references (with different syntax) in `tsconfig.json`.\r\n\r\n## Checklist\r\n\r\nMy suggestion meets these guidelines:\r\n* [x] This wouldn't be a breaking change in existing TypeScript / JavaScript code\r\n* [x] This wouldn't change the runtime behavior of existing JavaScript code\r\n* [x] This could be implemented without emitting different JS based on the types of the expressions\r\n* [x] This isn't a runtime feature (e.g. new expression-level syntax)\r\n\r\n","author":{"url":"https://github.com/RyanCavanaugh","@type":"Person","name":"RyanCavanaugh"},"datePublished":"2018-07-02T19:39:07Z","url":"https://github.com/microsoft/TypeScript/issues/25376"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4287f74b-4bb0-8723-bce6-fef72eb1487c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ECAC:31D532:43861D:591B2F:6B01976D |
| html-safe-nonce | eea6e5f28d2783b999ae6e153ee32a0772cef3015c48065037cc531c76fb7929 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0FDOjMxRDUzMjo0Mzg2MUQ6NTkxQjJGOjZCMDE5NzZEIiwidmlzaXRvcl9pZCI6IjM0OTM0NTkwNTA5Nzk0OTc4MzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f9bcd27999d6c5973298d6bc070d79f7ef1d3a7d2346453ac3f44418b22170d3 |
| hovercard-subject-tag | issue:337638127 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/25376/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dd980126fd68469b5254915cb90e54eb716d4a56cd4122288593b2214e5be54f/microsoft/TypeScript/issues/25376 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dd980126fd68469b5254915cb90e54eb716d4a56cd4122288593b2214e5be54f/microsoft/TypeScript/issues/25376 |
| og:image:alt | Genesis: see section "Repetitive configuration" in #3469 (comment) Search Terms monorepo infer project references automatically yarn lerna workspace package.json Suggestion For common monorepo mana... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RyanCavanaugh |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width