File tree 4 files changed +25
-2
lines changed
test/migrators/module/forward_flag/import_only
4 files changed +25
-2
lines changed Original file line number Diff line number Diff line change
1
+ ## 1.3.6
2
+
3
+ ### Module Migrator
4
+
5
+ * Fix a bug that could result in unnecessary import-only files being generated
6
+ when running ` --forward=import-only ` on a file with no dependencies.
7
+
1
8
## 1.3.5
2
9
3
10
### Module Migrator
Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ class _ModuleMigrationVisitor extends MigrationVisitor {
299
299
// import-only file is necessary.
300
300
if (forwardsByUrl.isEmpty ||
301
301
(forwardsByUrl.length == 1 &&
302
- forwardsByUrl[entrypoint]? .keys == { '' } )) {
302
+ forwardsByUrl[entrypoint]? .keys? . join () == '' )) {
303
303
return null ;
304
304
}
305
305
Original file line number Diff line number Diff line change 1
1
name : sass_migrator
2
- version : 1.3.5
2
+ version : 1.3.6
3
3
description : A tool for running migrations on Sass files
4
4
author :
Jennifer Thakar <[email protected] >
5
5
homepage : https://github.com/sass/migrator
Original file line number Diff line number Diff line change
1
+ <==> arguments
2
+ --migrate-deps --forward=import-only
3
+
4
+ <==> README.md
5
+ This text confirms that import-only files are only generated when they're
6
+ necessary.
7
+
8
+ <==> input/entrypoint.scss
9
+ $variable: green;
10
+
11
+ a {
12
+ color: $variable;
13
+ }
14
+
15
+ <==> log.txt
16
+ Nothing to migrate!
You can’t perform that action at this time.
0 commit comments