diff --git a/package.js b/package.js index f7a9c91..30f9c92 100644 --- a/package.js +++ b/package.js @@ -5,8 +5,8 @@ Package.describe({ git: 'https://github.com/iron-meteor/iron-controller' }); -Package.on_use(function (api) { - api.versionsFrom('METEOR@0.9.2'); +Package.onUse(function (api) { + api.versionsFrom('3.0.2'); api.use('underscore'); api.use('tracker'); // reactivity @@ -19,13 +19,13 @@ Package.on_use(function (api) { api.use('iron:layout@1.0.12'); api.use('iron:dynamic-template@1.0.12'); - api.add_files('lib/wait_list.js', 'client'); - api.add_files('lib/controller.js'); - api.add_files('lib/controller_server.js', 'server'); - api.add_files('lib/controller_client.js', 'client'); + api.addFiles('lib/wait_list.js', 'client'); + api.addFiles('lib/controller.js'); + api.addFiles('lib/controller_server.js', 'server'); + api.addFiles('lib/controller_client.js', 'client'); }); -Package.on_test(function (api) { +Package.onTest(function (api) { api.use('iron:controller'); api.use('iron:layout'); api.use('tinytest'); @@ -33,7 +33,7 @@ Package.on_test(function (api) { api.use('tracker'); api.use('templating'); - api.add_files('test/controller_test.html', 'client'); - api.add_files('test/wait_list_test.js', 'client'); - api.add_files('test/controller_test.js', 'client'); + api.addFiles('test/controller_test.html', 'client'); + api.addFiles('test/wait_list_test.js', 'client'); + api.addFiles('test/controller_test.js', 'client'); });