Skip to content

Commit

Permalink
Fixup tasks/updater for v5.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
glebm committed Apr 12, 2023
1 parent 092589a commit ba51ab2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tasks/updater/js.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def bootstrap_js_files
# Get the imports from the ES6 files to order requires correctly.
read_files('js/src', src_files).each do |name, content|
file_imports = content.scan(%r{import *(?:[a-zA-Z]*|\{[a-zA-Z ,]*\}) *from '([\w/.-]+)}).flatten(1).map do |f|
Pathname.new(name).dirname.join("#{f}.js").cleanpath.to_s
Pathname.new(name).dirname.join(f).cleanpath.to_s
end.uniq
imports.add name, *(file_imports - INLINED_SRCS)
end
Expand Down
2 changes: 1 addition & 1 deletion tasks/updater/scss.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ def update_scss_assets
log_status 'Updating scss...'
save_to = @save_to[:scss]
contents = {}
bootstrap_scss_files = get_paths_by_type('scss', /\.scss$/)
bootstrap_scss_files = get_paths_by_type('scss', /\.scss$/).reject { |p| p.start_with?('tests/') }
read_files('scss', bootstrap_scss_files).each do |name, file|
contents[name] = file
save_file("#{save_to}/#{name}", file)
Expand Down

0 comments on commit ba51ab2

Please sign in to comment.