From 7f45ac255ab328ddb0fd0e2d2d13b97b31bc6a6f Mon Sep 17 00:00:00 2001 From: Richard Lai Date: Thu, 24 Sep 2015 09:06:17 -0400 Subject: [PATCH] Update support for Meteor 1.2 --- package.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/package.js b/package.js index 9b98df9518c1..ae1c8dbad734 100644 --- a/package.js +++ b/package.js @@ -13,13 +13,18 @@ Package.describe({ Package.onUse(function (api) { api.versionsFrom('METEOR@1.0'); api.use('jquery', 'client'); - api.addFiles([ + var assets = [ 'dist/fonts/glyphicons-halflings-regular.eot', 'dist/fonts/glyphicons-halflings-regular.svg', 'dist/fonts/glyphicons-halflings-regular.ttf', 'dist/fonts/glyphicons-halflings-regular.woff', 'dist/fonts/glyphicons-halflings-regular.woff2' - ], 'client', { isAsset: true }); + ]; + if (api.addAssets) { + api.addAssets(assets, 'client'); + } else { + api.addFiles(assets, 'client', { isAsset: true }); + } api.addFiles([ 'dist/css/bootstrap.css', 'dist/js/bootstrap.js'