mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
updated regex in build file to correctly remove old dist files
This commit is contained in:
parent
ed347c3641
commit
f8d1745e24
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
|
||||
|
Loading…
Reference in New Issue
Block a user