-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix one more orphan import-only bug (#180)
- Loading branch information
Showing
4 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: sass_migrator | ||
version: 1.3.6 | ||
version: 1.3.7 | ||
description: A tool for running migrations on Sass files | ||
author: Jennifer Thakar <[email protected]> | ||
homepage: https://github.com/sass/migrator | ||
|
36 changes: 36 additions & 0 deletions
36
test/migrators/module/partial_migration/changed_path/load_paths.hrx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<==> arguments | ||
--migrate-deps --load-path load-path --load-path . | ||
|
||
<==> README.md | ||
This test is for a combination of edge cases where an orphan import-only file | ||
available through two load paths, one of which is the directory the migrator | ||
is being run from. | ||
|
||
This is a regression test for a bug where References and _ModuleMigrationVisitor | ||
disagreed about which import-only file to use, resulting in a crash. | ||
|
||
<==> input/entrypoint/in/a/subdirectory.scss | ||
@import "old"; | ||
|
||
a { | ||
color: $lib-variable; | ||
} | ||
|
||
<==> input/load-path/_old.import.scss | ||
@forward "new" as lib-*; | ||
|
||
<==> input/_new.scss | ||
$variable: green; | ||
|
||
<==> input/_old.import.scss | ||
@forward "wrong"; | ||
|
||
<==> input/_wrong.scss | ||
$lib-variable: blue; | ||
|
||
<==> output/entrypoint/in/a/subdirectory.scss | ||
@use "new"; | ||
|
||
a { | ||
color: new.$variable; | ||
} |