clean up startup package manifest.

This commit is contained in:
matt debergalis
2012-02-14 17:24:07 -08:00
parent e1a9fb82b9
commit 2ed2e47c84
2 changed files with 4 additions and 14 deletions

View File

@@ -330,7 +330,7 @@ _.extend(Bundle.prototype, {
else
canon_where = _.clone(canon_where);
canon_where.sort();
var canon_where = JSON.stringify(canon_where);
canon_where = JSON.stringify(canon_where);
if (inst.where[canon_where])
return; // already used in this environment

View File

@@ -3,17 +3,7 @@ Package.describe({
internal: true
});
// XXX hack -- need a way to use a package at bundle time
var _ = require('../../packages/underscore/underscore.js');
Package.on_use(function (api, where) {
where = where || ['client', 'server'];
if (!(where instanceof Array))
where = [where];
if (_.indexOf(where, 'client') !== -1)
api.add_files('startup_client.js', 'client');
if (_.indexOf(where, 'server') !== -1)
api.add_files('startup_server.js', 'server');
Package.on_use(function (api) {
api.add_files('startup_client.js', 'client');
api.add_files('startup_server.js', 'server');
});