René's URL Explorer Experiment


Title: Do not compile ts code of external module · Issue #4667 · microsoft/TypeScript · GitHub

Open Graph Title: Do not compile ts code of external module · Issue #4667 · microsoft/TypeScript

X Title: Do not compile ts code of external module · Issue #4667 · microsoft/TypeScript

Description: #2338 implements npm module lookup (very cool!) I have a request. I want to tsc lookup .d.ts first, not .ts. in above case. code dependencies are resolved to node_modules/commandpost/index.d.ts -> node_modules/commandpost/lib/index.ts wh...

Open Graph Description: #2338 implements npm module lookup (very cool!) I have a request. I want to tsc lookup .d.ts first, not .ts. in above case. code dependencies are resolved to node_modules/commandpost/index.d.ts -> ...

X Description: #2338 implements npm module lookup (very cool!) I have a request. I want to tsc lookup .d.ts first, not .ts. in above case. code dependencies are resolved to node_modules/commandpost/index.d.ts -&g...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Do not compile ts code of external module ","articleBody":"#2338 implements npm module lookup (very cool!)\n\nI have a request.\nI want to tsc lookup `.d.ts` first, not `.ts`.\n\nin above case.\ncode dependencies are resolved to `node_modules/commandpost/index.d.ts` -> `node_modules/commandpost/lib/index.ts` when my code exec `import * as commandpost from \"commandpost\";`\nI want to tsc resolve `node_modules/commandpost/index.d.ts` -> `node_modules/commandpost/lib/index.d.ts`, not .ts.\n\n```\n$ tree node_modules/commandpost\nnode_modules/commandpost\n├── LICENSE.txt\n├── README.md\n├── dtsm.json\n├── index.d.ts\n├── lib\n│   ├── argument.d.ts\n│   ├── argument.js\n│   ├── argument.js.map\n│   ├── argument.ts\n│   ├── command.d.ts\n│   ├── command.js\n│   ├── command.js.map\n│   ├── command.ts\n│   ├── index.d.ts\n│   ├── index.js\n│   ├── index.js.map\n│   ├── index.ts\n│   ├── option.d.ts\n│   ├── option.js\n│   ├── option.js.map\n│   ├── option.ts\n│   ├── utils.d.ts\n│   ├── utils.js\n│   ├── utils.js.map\n│   └── utils.ts\n├── package.json\n└── tsconfig.json\n```\n\nexternal ts code can't compile everywhere.\nfor example.\n\n```\n$ cat node_modules/commandpost/lib/index.ts\n/// \u003creference path=\"../node_modules/typescript/lib/lib.es6.d.ts\" />\n\n\"use strict\";\n\ntry {\n... omitted ...\n```\n\nbut node_modules/commandpost/node_modules/typescript/lib/lib.es6.d.ts is not exists (typescript is devDependencies\n\nDoes TypeScript team has best practise about project structure for npm module?\n\n[commandpost](https://github.com/vvakame/commandpost)\n","author":{"url":"https://github.com/vvakame","@type":"Person","name":"vvakame"},"datePublished":"2015-09-06T00:38:07Z","url":"https://github.com/microsoft/TypeScript/issues/4667"}

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:f9ff1211-d8d4-1efb-7f65-b59a5c110775
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idABC8:1D8AA1:E7C598:13266C7:6B00FB7A
html-safe-nonce09b70a55dc97525fa7de9ab1cad6c4aa244fc7a8158ad59f145bc26ce621e385
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkM4OjFEOEFBMTpFN0M1OTg6MTMyNjZDNzo2QjAwRkI3QSIsInZpc2l0b3JfaWQiOiI1MzU4MzA3ODI3Njk1ODExNDUwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac2e29a62ab1969f21ea1d943aa90f3e810abe422f2dc08a9564086cbd19e9f3d5
hovercard-subject-tagissue:105059170
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/4667/issue_layout
twitter:imagehttps://opengraph.githubassets.com/354f0a593e3b1b53ca5dac92d83f63a2788b9c54281f5b8c8fcac0c0878fb780/microsoft/TypeScript/issues/4667
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/354f0a593e3b1b53ca5dac92d83f63a2788b9c54281f5b8c8fcac0c0878fb780/microsoft/TypeScript/issues/4667
og:image:alt#2338 implements npm module lookup (very cool!) I have a request. I want to tsc lookup .d.ts first, not .ts. in above case. code dependencies are resolved to node_modules/commandpost/index.d.ts -> ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevvakame
hostnamegithub.com
expected-hostnamegithub.com
Nonee208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187
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
release7dafd017fb7809a839c443dba08622af38e63c09
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/4667#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F4667
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%2F4667
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/4667
Reloadhttps://github.com/microsoft/TypeScript/issues/4667
Reloadhttps://github.com/microsoft/TypeScript/issues/4667
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests309 (309)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/4667
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/4667
Do not compile ts code of external module https://github.com/microsoft/TypeScript/issues/4667#top
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%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 1.8https://github.com/microsoft/TypeScript/milestone/15
https://github.com/vvakame
Masahiro Wakame (vvakame)https://github.com/vvakame
on Sep 6, 2015https://github.com/microsoft/TypeScript/issues/4667#issue-105059170
#2338https://github.com/microsoft/TypeScript/issues/2338
commandposthttps://github.com/vvakame/commandpost
Nexthttps://github.com/microsoft/TypeScript/issues/4667?timeline_page=1
https://github.com/vvakame
Masahiro Wakame (vvakame)https://github.com/vvakame
on Sep 6, 2015https://github.com/microsoft/TypeScript/issues/4667#issuecomment-138062472
Masahiro Wakame (vvakame)https://github.com/vvakame
on Sep 6, 2015https://github.com/microsoft/TypeScript/issues/4667#event-402126317
https://github.com/vvakame
Masahiro Wakame (vvakame)https://github.com/vvakame
on Sep 6, 2015https://github.com/microsoft/TypeScript/issues/4667#issuecomment-138069856
#4665https://github.com/microsoft/TypeScript/issues/4665
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
on Sep 6, 2015https://github.com/microsoft/TypeScript/issues/4667#event-402299109
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
TypeScript 1.6.2https://github.com/microsoft/TypeScript/milestone/13
on Sep 6, 2015https://github.com/microsoft/TypeScript/issues/4667#event-402299117
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
Vladimir Matveev (vladima)https://github.com/vladima
on Sep 6, 2015https://github.com/microsoft/TypeScript/issues/4667#event-402299119
Vadim Macagon (enlight)https://github.com/enlight
on Sep 13, 2015https://github.com/microsoft/TypeScript/issues/4667#event-408078689
Generate proper external module declarations instead of ambient oneshttps://github.com/debugworkbench/core-components/commit/b72cf3a530ec2f965f826a030d726b8e167091ff
b72cf3ahttps://github.com/debugworkbench/core-components/commit/b72cf3a530ec2f965f826a030d726b8e167091ff
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
on Sep 15, 2015https://github.com/microsoft/TypeScript/issues/4667#event-410380754
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Sep 15, 2015https://github.com/microsoft/TypeScript/issues/4667#event-410380819
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Sep 15, 2015https://github.com/microsoft/TypeScript/issues/4667#issuecomment-140573583
Masahiro Wakame (@vvakame)https://github.com/vvakame
https://github.com/vvakame
Masahiro Wakame (vvakame)https://github.com/vvakame
on Sep 17, 2015https://github.com/microsoft/TypeScript/issues/4667#issuecomment-141288373
Mohamed Hegazy (@mhegazy)https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Sep 18, 2015https://github.com/microsoft/TypeScript/issues/4667#event-412734513
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
TypeScript 1.8https://github.com/microsoft/TypeScript/milestone/15
TypeScript 1.6.2https://github.com/microsoft/TypeScript/milestone/13
on Sep 18, 2015https://github.com/microsoft/TypeScript/issues/4667#event-412734545
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
on Sep 18, 2015https://github.com/microsoft/TypeScript/issues/4667#event-412734580
Masahiro Wakame (vvakame)https://github.com/vvakame
on Sep 22, 2015https://github.com/microsoft/TypeScript/issues/4667#event-416060261
for microsoft/TypeScript#4667https://github.com/vvakame/review.js/commit/79326ab96bfac4056a5cb6726e886546f259b9fe
microsoft/TypeScript#4667https://github.com/microsoft/TypeScript/issues/4667
79326abhttps://github.com/vvakame/review.js/commit/79326ab96bfac4056a5cb6726e886546f259b9fe
https://github.com/vvakame
Masahiro Wakame (vvakame)https://github.com/vvakame
on Sep 22, 2015https://github.com/microsoft/TypeScript/issues/4667#issuecomment-142439067
vvakame/commandpost@d637859https://github.com/vvakame/commandpost/commit/d637859a72a575e14af05cae7c0db13db6b0d33c
Masahiro Wakame (vvakame)https://github.com/vvakame
on Sep 23, 2015https://github.com/microsoft/TypeScript/issues/4667#event-416485328
feat(dtsm): add workaround for microsoft/TypeScript/issues/4667https://github.com/vvakame/dtsm/commit/0c634eb475ad8faa65726e9e70049a564cd73055
microsoft/TypeScript/issues/4667https://github.com/microsoft/TypeScript/issues/4667
0c634ebhttps://github.com/vvakame/dtsm/commit/0c634eb475ad8faa65726e9e70049a564cd73055
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
TypeScript 1.7https://github.com/microsoft/TypeScript/milestone/11
TypeScript 1.8https://github.com/microsoft/TypeScript/milestone/15
on Oct 9, 2015https://github.com/microsoft/TypeScript/issues/4667#event-431884668
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Jan 7, 2016https://github.com/microsoft/TypeScript/issues/4667#issuecomment-169783489
Vladimir Matveev (@vladima)https://github.com/vladima
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jan 7, 2016https://github.com/microsoft/TypeScript/issues/4667#event-508639721
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
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 Jan 7, 2016https://github.com/microsoft/TypeScript/issues/4667#event-508639775
https://github.com/adidahiya
Adi Dahiya (adidahiya)https://github.com/adidahiya
on Jan 7, 2016https://github.com/microsoft/TypeScript/issues/4667#issuecomment-169787965
Mohamed Hegazy (@mhegazy)https://github.com/mhegazy
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Jan 7, 2016https://github.com/microsoft/TypeScript/issues/4667#issuecomment-169788294
Vladimir Matveev (@vladima)https://github.com/vladima
Ken Wagatsuma (kenju)https://github.com/kenju
on Sep 11, 2017https://github.com/microsoft/TypeScript/issues/4667#event-1242640581
do not include ts fileshttps://github.com/bitjourney/react-simple-image/commit/f7ba1b87abc40b1df2854b30670b5f93c433003f
f7ba1b8https://github.com/bitjourney/react-simple-image/commit/f7ba1b87abc40b1df2854b30670b5f93c433003f
microsofthttps://github.com/microsoft
on Jun 19, 2018https://github.com/microsoft/TypeScript/issues/4667#event-1689614108
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Vladimir Matveev (vladima)https://github.com/vladima
on Jun 19, 2018https://github.com/microsoft/TypeScript/issues/4667#event-1689614111
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/4667
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/4667
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%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 1.8https://github.com/microsoft/TypeScript/milestone/15
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.