File tree 3 files changed +21
-0
lines changed
3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ swc_core : patch
3
+ swc_cli_impl : patch
4
+ ---
5
+
6
+ fix(cli): Exclude non-files from get_files_list
Original file line number Diff line number Diff line change @@ -146,6 +146,7 @@ fn get_files_list(
146
146
. into_iter ( )
147
147
. filter_map ( |e| e. ok ( ) )
148
148
. map ( |e| e. into_path ( ) )
149
+ . filter ( |e| e. is_file ( ) )
149
150
. filter ( |e| {
150
151
extensions
151
152
. iter ( )
Original file line number Diff line number Diff line change @@ -144,6 +144,20 @@ fn issue_8667_1() -> Result<()> {
144
144
Ok ( ( ) )
145
145
}
146
146
147
+ #[ test]
148
+ fn issue_9559 ( ) -> Result < ( ) > {
149
+ let sandbox = TempDir :: new ( ) ?;
150
+ fs:: write ( sandbox. path ( ) . join ( "index.ts" ) , r"console.log('Hello')" ) ?;
151
+ fs:: create_dir ( sandbox. path ( ) . join ( "chart.js" ) ) ?;
152
+
153
+ let mut cmd = cli ( ) ?;
154
+ cmd. current_dir ( & sandbox) . arg ( "compile" ) . arg ( sandbox. path ( ) ) ;
155
+
156
+ cmd. assert ( ) . success ( ) ;
157
+
158
+ Ok ( ( ) )
159
+ }
160
+
147
161
/// ln -s $a $b
148
162
fn symlink ( a : & Path , b : & Path ) {
149
163
#[ cfg( unix) ]
You can’t perform that action at this time.
0 commit comments