From 89184679fd4240e78d8c44b79430c67a46ed5dda Mon Sep 17 00:00:00 2001 From: Sashko Stubailo Date: Thu, 30 Jul 2015 16:31:38 -0700 Subject: [PATCH] Add check dep to Blaze --- packages/blaze/package.js | 1 + scripts/admin/check-package-dependencies.rb | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/blaze/package.js b/packages/blaze/package.js index 59b3f9f61a8..95a0077602c 100644 --- a/packages/blaze/package.js +++ b/packages/blaze/package.js @@ -7,6 +7,7 @@ Package.onUse(function (api) { api.export(['Blaze', 'UI', 'Handlebars']); api.use('jquery'); // should be a weak dep, by having multiple "DOM backends" api.use('tracker'); + api.use('check'); api.use('underscore'); // only the subset in microscore.js api.use('htmljs'); api.imply('htmljs'); diff --git a/scripts/admin/check-package-dependencies.rb b/scripts/admin/check-package-dependencies.rb index 7cf85d5f7ec..c5a5b262193 100755 --- a/scripts/admin/check-package-dependencies.rb +++ b/scripts/admin/check-package-dependencies.rb @@ -10,7 +10,7 @@ Dir.chdir(root) -file_list = `git grep -l '#{ARGV[0]}' packages/`.lines +file_list = `git grep -lw '#{ARGV[0]}' packages/`.lines package_list = file_list.map do |filename| filename.split("/")[1] end @@ -20,7 +20,7 @@ package_list.each do |p| unless File.open("packages/#{p}/package.js").read.include? ARGV[1] puts "'#{ARGV[0]}' appears in #{p} but '#{ARGV[1]}' not in package.js. Files:" - puts `git grep -l '#{ARGV[0]}' packages/#{p}/` + puts `git grep '#{ARGV[0]}' packages/#{p}/` puts "" end end