Skip to content

importFixes: When one file redirects to another, consider both for global import specifiers - #25834

Merged
7 commits merged into
masterfrom
duplicatePackageImportFixes
Aug 1, 2018
Merged

7 commits merged into
masterfrom
duplicatePackageImportFixes

Conversation

@ghost

Copy link
Copy Markdown

@mhegazy

Copy link
Copy Markdown
Contributor

Wesley Wigham (@weswigham) can you also take a look. seems related to the .d.ts issue

@weswigham

Copy link
Copy Markdown
Member

Mohamed Hegazy (@mhegazy) Well, #25850 definitely conflicts with this. 😄

@ghost
ghost force-pushed the duplicatePackageImportFixes branch from b3d901f to 06f0ba5 Compare July 25, 2018 17:02
@ghost
ghost force-pushed the duplicatePackageImportFixes branch from 06f0ba5 to 2d955a3 Compare July 25, 2018 18:39
@ghost
ghost force-pushed the duplicatePackageImportFixes branch from 2dcac53 to 15b8af7 Compare July 30, 2018 23:15
@ghost
ghost force-pushed the duplicatePackageImportFixes branch from b7f1c21 to 6d83f95 Compare July 31, 2018 00:04
Comment thread src/compiler/moduleSpecifiers.ts Outdated
// KLUDGE: Don't assume one 'node_modules' links to another. More likely a single directory inside the node_modules is the symlink.
// ALso, don't assume that an `@foo` directory is linked. More likely the contents of that are linked.
function isNodeModulesOrScopedPackageDirectory(s: string): boolean {
return s === "node_modules" || startsWith(s, "@");

@weswigham Wesley Wigham (weswigham) Jul 31, 2018 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

node_modules comparison should (probably) use platform case comparison, for completeness.

@weswigham Wesley Wigham (weswigham) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nit, but looks good.

@ghost
ghost merged commit 9c9f3e3 into master Aug 1, 2018
@ghost
ghost deleted the duplicatePackageImportFixes branch August 1, 2018 00:28
@microsoft Microsoft (microsoft) locked as resolved and limited conversation to collaborators Oct 21, 2025
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants