const path = require('path');

let version;

module.exports = {
  Client: require('./client/Client'),
  Shard: require('./sharding/Shard'),
  ShardingManager: require('./sharding/ShardingManager'),
  Collection: require('./util/Collection'),

  get version() {
    if (!version) version = require(path.join(__dirname, '..', 'package.json')).version;
    return version;
  },
};

const path = require('path');

module.exports = {
  Client: require('./client/Client'),
  Shard: require('./sharding/Shard'),
  ShardingManager: require('./sharding/ShardingManager'),
  Collection: require('./util/Collection'),
  version: require(path.join(__dirname, '..', 'package.json')).version,
};

Make version a regular property instead of getter
Make version a regular property instead of getter
