mirror of
https://github.com/konvajs/konva.git
synced 2025-10-07 16:13:47 +08:00
updated regex in build file to correctly remove old dist files
This commit is contained in:
4
Thorfile
4
Thorfile
@@ -15,7 +15,7 @@ class Build < Thor
|
||||
|
||||
puts ":: Deleting other development files..."
|
||||
Dir.foreach("dist") do |file|
|
||||
if file.match(/kinetic-.+\.(\d|\.)+\.js/)
|
||||
if file.match(/.*[^(min)]\.js/)
|
||||
File.delete("dist/" + file)
|
||||
end
|
||||
end
|
||||
@@ -35,7 +35,7 @@ class Build < Thor
|
||||
|
||||
puts ":: Deleting other development files..."
|
||||
Dir.foreach("dist") do |file|
|
||||
if file.match(/kinetic-.+\.min\.js/)
|
||||
if file.match(/.*min\.js/)
|
||||
File.delete("dist/" + file)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user