René's URL Explorer Experiment


Title: Allow configuration of NodeBuilderFlags.AllowNodeModulesRelativePaths for un-distributed mono repos · Issue #37960 · microsoft/TypeScript · GitHub

Open Graph Title: Allow configuration of NodeBuilderFlags.AllowNodeModulesRelativePaths for un-distributed mono repos · Issue #37960 · microsoft/TypeScript

X Title: Allow configuration of NodeBuilderFlags.AllowNodeModulesRelativePaths for un-distributed mono repos · Issue #37960 · microsoft/TypeScript

Description: Search Terms AllowNodeModulesRelativePaths The inferred type of ... cannot be named without a reference to ... #29808 #30858 #27340 Suggestion Allow the optional use of AllowNodeModulesRelativePaths during declaration creation Use Cases ...

Open Graph Description: Search Terms AllowNodeModulesRelativePaths The inferred type of ... cannot be named without a reference to ... #29808 #30858 #27340 Suggestion Allow the optional use of AllowNodeModulesRelativePath...

X Description: Search Terms AllowNodeModulesRelativePaths The inferred type of ... cannot be named without a reference to ... #29808 #30858 #27340 Suggestion Allow the optional use of AllowNodeModulesRelativePath...

Opengraph URL: https://github.com/microsoft/TypeScript/issues/37960

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow configuration of NodeBuilderFlags.AllowNodeModulesRelativePaths for un-distributed mono repos","articleBody":"\r\n## Search Terms\r\n\r\n- AllowNodeModulesRelativePaths\r\n-  The inferred type of ... cannot be named without a reference to ...\r\n- #29808 \r\n- https://github.com/microsoft/TypeScript/issues/30858\r\n- https://github.com/microsoft/TypeScript/pull/27340\r\n\r\n## Suggestion\r\n\r\nAllow the optional use of `AllowNodeModulesRelativePaths` during declaration creation \r\n\r\n## Use Cases\r\n\r\nI understand why @weswigham added https://github.com/microsoft/TypeScript/pull/27340 and it is correct for most consumers, especially those that publish packages for consumption on NPM. \r\n\r\nHowever, it seems like for npm style mono-repos where packages are only consumed locally and not published to a registry, it is valid to have seemingly non-portable TS references (lerna, pnpm, rush, yarn workspaces). A relative path to a node_module may still be valid as long as the structure stays consistent, which it does for this style of mono repo with a single node_modules directory. \r\n\r\nI am using a mono repo managed by Bazel and rules_nodejs and users are experiencing issues with the creation of declaration files that otherwise would contain relative paths to node_module files. https://github.com/bazelbuild/rules_nodejs/issues/1013\r\n\r\n(The conversation in https://github.com/microsoft/TypeScript/issues/30858 was helpful, however, it seemed to still be focusing on resolving portable types, which is only necessary when distributing the declaration files. If they are consumed locally, portability is not a concern. \r\n\r\n## Examples\r\n\r\nI'm not sure the best way (or standard way) for these flags to be set, however, I imagine an entry in the TSConfig Compiler Options would make the most sense: \r\n\r\n```diff\r\ninterface CompilerOptions {\r\n  ...\r\n+  allowUnportableDeclarationImports: true\r\n} \r\n```\r\n\r\nCurrently I am patching Typescript to toggle on this  behavior and it appears it is working just as expected.\r\n\r\n[typescript+3.7.3.patch.txt](https://github.com/microsoft/TypeScript/files/4476155/typescript%2B3.7.3.patch.txt)\r\n\r\n## Checklist\r\n\r\nMy suggestion meets these guidelines:\r\n\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. library functionality, non-ECMAScript syntax with JavaScript output, etc.)\r\n* [X] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).\r\n","author":{"url":"https://github.com/joeljeske","@type":"Person","name":"joeljeske"},"datePublished":"2020-04-14T15:34:07Z","url":"https://github.com/microsoft/TypeScript/issues/37960"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8b3cdcd9-0f4e-1f3b-3715-5c1557ed9d27
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8DCA:1EC9BC:33BD79E:4203929:6B01E388
html-safe-noncef4181d84b75fd1e851dafa03a0a90d07e35fbc63f3bb41267d198ae5de5e179c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RENBOjFFQzlCQzozM0JENzlFOjQyMDM5Mjk6NkIwMUUzODgiLCJ2aXNpdG9yX2lkIjoiMTY4ODU4MDIwMjUzNzU0MjUzNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac4f025457c0f0b1692cad238d3bb2c36049f5ac36db18adb3efc585cf4f37d833
hovercard-subject-tagissue:599664401
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/37960/issue_layout
twitter:imagehttps://opengraph.githubassets.com/eb24a9032589d10451e1a9aa6de0841868b90f7de04bffff2b1661645b899f2c/microsoft/TypeScript/issues/37960
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/eb24a9032589d10451e1a9aa6de0841868b90f7de04bffff2b1661645b899f2c/microsoft/TypeScript/issues/37960
og:image:altSearch Terms AllowNodeModulesRelativePaths The inferred type of ... cannot be named without a reference to ... #29808 #30858 #27340 Suggestion Allow the optional use of AllowNodeModulesRelativePath...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejoeljeske
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/37960#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F37960
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F37960
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/37960
Reloadhttps://github.com/microsoft/TypeScript/issues/37960
Reloadhttps://github.com/microsoft/TypeScript/issues/37960
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests312 (312)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/37960
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/37960
Allow configuration of NodeBuilderFlags.AllowNodeModulesRelativePaths for un-distributed mono reposhttps://github.com/microsoft/TypeScript/issues/37960#top
https://github.com/weswigham
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
Needs InvestigationThis issue needs a team member to investigate its status.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
RescheduledThis issue was previously scheduled to an earlier milestonehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Rescheduled%22
Won't FixThe severity and priority of this issue do not warrant the time or complexity needed to fix ithttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Won't%20Fix%22
TypeScript 5.1.0https://github.com/microsoft/TypeScript/milestone/178
https://github.com/joeljeske
Joel Jeske (joeljeske)https://github.com/joeljeske
on Apr 14, 2020https://github.com/microsoft/TypeScript/issues/37960#issue-599664401
Package dependencies and The inferred type of ... cannot be named without a reference to ... #29808https://github.com/microsoft/TypeScript/issues/29808
types in transitive dependencies causing errors after upgrade from 3.1: The inferred type of ... cannot be named without a reference to #30858https://github.com/microsoft/TypeScript/issues/30858
Build better import paths for declaration emit/typeToString from reexports if possible #27340https://github.com/microsoft/TypeScript/pull/27340
Wesley Wigham (@weswigham)https://github.com/weswigham
#27340https://github.com/microsoft/TypeScript/pull/27340
bazel-contrib/rules_nodejs#1013https://github.com/bazel-contrib/rules_nodejs/issues/1013
#30858https://github.com/microsoft/TypeScript/issues/30858
typescript+3.7.3.patch.txthttps://github.com/microsoft/TypeScript/files/4476155/typescript%2B3.7.3.patch.txt
TypeScript's Design Goalshttps://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals
Nexthttps://github.com/microsoft/TypeScript/issues/37960?timeline_page=1
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Wesley Wigham (weswigham)https://github.com/weswigham
on Apr 15, 2020https://github.com/microsoft/TypeScript/issues/37960#event-3237097695
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Needs InvestigationThis issue needs a team member to investigate its status.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
on Apr 15, 2020https://github.com/microsoft/TypeScript/issues/37960#event-3237098092
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
TypeScript 4.0https://github.com/microsoft/TypeScript/milestone/114
on Apr 15, 2020https://github.com/microsoft/TypeScript/issues/37960#event-3237098295
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Apr 15, 2020https://github.com/microsoft/TypeScript/issues/37960#issuecomment-614255356
Wesley Wigham (@weswigham)https://github.com/weswigham
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Apr 15, 2020https://github.com/microsoft/TypeScript/issues/37960#issuecomment-614289110
Joel Jeske (@joeljeske)https://github.com/joeljeske
https://github.com/joeljeske
Joel Jeske (joeljeske)https://github.com/joeljeske
on Apr 15, 2020https://github.com/microsoft/TypeScript/issues/37960#issuecomment-614330140
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Apr 16, 2020https://github.com/microsoft/TypeScript/issues/37960#issuecomment-614843647
https://github.com/joeljeske
Joel Jeske (joeljeske)https://github.com/joeljeske
on Apr 16, 2020https://github.com/microsoft/TypeScript/issues/37960#issuecomment-614870113
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Apr 16, 2020https://github.com/microsoft/TypeScript/issues/37960#issuecomment-614910284
https://github.com/joeljeske
Joel Jeske (joeljeske)https://github.com/joeljeske
on Apr 17, 2020https://github.com/microsoft/TypeScript/issues/37960#issuecomment-614965374
Florian (flolu)https://github.com/flolu
on Apr 28, 2020https://github.com/microsoft/TypeScript/issues/37960#event-3281947494
fix(typescript): cannot be named without a reference to errorhttps://github.com/flolu/centsideas/commit/1f44d73e3c14653171831e64c1c83913987e2178
1f44d73https://github.com/flolu/centsideas/commit/1f44d73e3c14653171831e64c1c83913987e2178
https://github.com/flolu
Florian (flolu)https://github.com/flolu
on Apr 28, 2020https://github.com/microsoft/TypeScript/issues/37960#issuecomment-620838018
Joel Jeske (@joeljeske)https://github.com/joeljeske
https://github.com/joeljeske
Joel Jeske (joeljeske)https://github.com/joeljeske
on Apr 28, 2020https://github.com/microsoft/TypeScript/issues/37960#issuecomment-620840638
Wesley Wigham (@weswigham)https://github.com/weswigham
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
TypeScript 4.0https://github.com/microsoft/TypeScript/milestone/114
Typescript 4.0.1https://github.com/microsoft/TypeScript/milestone/123
on Jun 29, 2020https://github.com/microsoft/TypeScript/issues/37960#event-3493747836
Andrew Branch (andrewbranch)https://github.com/andrewbranch
TypeScript 4.4.1 (RC)https://github.com/microsoft/TypeScript/milestone/144
TypeScript 4.5.0https://github.com/microsoft/TypeScript/milestone/147
on Aug 31, 2021https://github.com/microsoft/TypeScript/issues/37960#event-5229240361
https://github.com/ccstr
ccstr (ccstr)https://github.com/ccstr
on Oct 6, 2021https://github.com/microsoft/TypeScript/issues/37960#issuecomment-937308333
Joel Jeske (@joeljeske)https://github.com/joeljeske
Andrew Branch (@andrewbranch)https://github.com/andrewbranch
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
TypeScript 4.5.0https://github.com/microsoft/TypeScript/milestone/147
TypeScript 4.6.0https://github.com/microsoft/TypeScript/milestone/151
on Dec 15, 2021https://github.com/microsoft/TypeScript/issues/37960#event-5768065185
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
TypeScript 4.6.0https://github.com/microsoft/TypeScript/milestone/151
TypeScript 4.6.1https://github.com/microsoft/TypeScript/milestone/158
on Feb 3, 2022https://github.com/microsoft/TypeScript/issues/37960#event-6005887229
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
TypeScript 4.6.1https://github.com/microsoft/TypeScript/milestone/158
TypeScript 4.8.0https://github.com/microsoft/TypeScript/milestone/163
on May 13, 2022https://github.com/microsoft/TypeScript/issues/37960#event-6608004781
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
on Jun 15, 2022https://github.com/microsoft/TypeScript/issues/37960#event-6816032500
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
TypeScript 4.8.0https://github.com/microsoft/TypeScript/milestone/163
TypeScript 5.1.0https://github.com/microsoft/TypeScript/milestone/178
on Feb 1, 2023https://github.com/microsoft/TypeScript/issues/37960#event-8413679111
Wesley Wigham (weswigham)https://github.com/weswigham
Won't FixThe severity and priority of this issue do not warrant the time or complexity needed to fix ithttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Won't%20Fix%22
on Dec 11, 2023https://github.com/microsoft/TypeScript/issues/37960#event-11216110314
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Dec 11, 2023https://github.com/microsoft/TypeScript/issues/37960#issuecomment-1850929606
Wesley Wigham (weswigham)https://github.com/weswigham
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Dec 11, 2023https://github.com/microsoft/TypeScript/issues/37960#event-11216127814
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/37960
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/37960
Wesley Wigham (weswigham)https://github.com/weswigham
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
Needs InvestigationThis issue needs a team member to investigate its status.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
RescheduledThis issue was previously scheduled to an earlier milestonehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Rescheduled%22
Won't FixThe severity and priority of this issue do not warrant the time or complexity needed to fix ithttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Won't%20Fix%22
TypeScript 5.1.0https://github.com/microsoft/TypeScript/milestone/178
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.