Blame view

node_modules/bower/lib/index.js 634 Bytes
2dda2e10   Administrator   generator ignore
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  var commands = require('./commands');
  var version = require('./version');
  var abbreviations = require('./util/abbreviations')(commands);
  
  function clearRuntimeCache() {
      // Note that in edge cases, some architecture components instance's
      // in-memory cache might be skipped.
      // If that's a problem, you should create and fresh instances instead.
      var PackageRepository = require('./core/PackageRepository');
      PackageRepository.clearRuntimeCache();
  }
  
  module.exports = {
      version: version,
      commands: commands,
      config: require('./config')(),
      abbreviations: abbreviations,
      reset: clearRuntimeCache
  };