File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -57,18 +57,15 @@ required_dependencies.keys.each do |dep|
5757 # Check for missing dependencies
5858 if ! Dir .exists?(path)
5959 Dir .mkdir(path)
60-
61- update_versions_yaml(required_dependencies, minified, dep)
6260 dependencies_to_install << dep
6361 else
6462 config = File .open(" #{ path } /versions.yml" ) do |file |
6563 YAML .parse(file).as_h
6664 end
6765
6866 if config[" version" ].as_s != required_dependencies[dep][" version" ].as_s || config[" minified" ].as_bool != minified
69- ` rm -rf #{ path } /*`
67+ ` rm -rf #{ path } /*.js #{ path } /*.css `
7068 dependencies_to_install << dep
71- update_versions_yaml(required_dependencies, minified, dep)
7269 end
7370 end
7471end
@@ -139,6 +136,9 @@ dependencies_to_install.each do |dep|
139136 end
140137 end
141138
139+ # Update/create versions file for the dependency
140+ update_versions_yaml(required_dependencies, minified, dep_name)
141+
142142 channel.send(dep_name)
143143 rescue ex
144144 channel.send(ex)
You can’t perform that action at this time.
0 commit comments