Package.describe({
  name: "aldeed:schema-index",
  summary: "Control some MongoDB indexing with schema options",
  version: "1.0.1",
  git: "https://github.com/aldeed/meteor-schema-index.git"
});

Package.onUse(function(api) {
  api.use([
    'aldeed:collection2-core@1.0.0',
    'underscore@1.0.0',
    'minimongo@1.0.0',
    'check@1.0.0',
    'ecmascript@0.3.0'
  ]);
  
  api.addFiles([
    'lib/indexing.js'
  ]);

  api.addFiles([
    'lib/schemaIndex.js'
  ], 'server');
});

Package.onTest(function(api) {
  api.use([
    'aldeed:schema-index',
    'tinytest@1.0.0',
    'underscore@1.0.0',
    'random@1.0.0',
    'mongo@1.0.0',
    'aldeed:simple-schema',
  ]);

  api.addFiles([
    'tests/indexing.js'
  ]);
});

Package.describe({
  name: "aldeed:schema-index",
  summary: "Control some MongoDB indexing with schema options",
  version: "1.0.1",
  git: "https://github.com/aldeed/meteor-schema-index.git"
});

Package.onUse(function(api) {
  api.use([
    'aldeed:collection2-core@1.0.0',
    'underscore@1.0.0',
    'minimongo@1.0.0',
    'check@1.0.0',
    'ecmascript@0.1.6'
  ]);
  
  api.addFiles([
    'lib/indexing.js'
  ]);

  api.addFiles([
    'lib/schemaIndex.js'
  ], 'server');
});

Package.onTest(function(api) {
  api.use([
    'aldeed:schema-index',
    'tinytest@1.0.0',
    'underscore@1.0.0',
    'random@1.0.0',
    'mongo@1.0.0',
    'aldeed:simple-schema',
  ]);

  api.addFiles([
    'tests/indexing.js'
  ]);
});

revert ecmascript to version dependant packages require. 0.1.6