-
Notifications
You must be signed in to change notification settings - Fork 12k
correction sub-component path in windows when import to ngModule #1719 #1736 #1961
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@hansl LGTM |
@@ -79,6 +79,7 @@ export function bootstrapItem( | |||
|
|||
export function insertImport(fileToEdit: string, symbolName: string, | |||
fileName: string, isDefault = false): Change { | |||
fileName = fileName.replace(/\\/, '/'); // correction in windows |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, could you do a typescript if (process.platform.startsWith('win')) { fileName = fileName.replace(/\\/g, '/'); }
This will also fix the bug that it only replaces the first time this character appears.
Please rebase after and add a unit test please. |
@hansl can you have a look again? |
LGTM. Thanks! |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Due to ast-tool had been re-located. I closed PR #1736. and create a new PR.
this PR is to fix issue #1719.
Fix #1719