diff --git a/package.json b/package.json index 704cd6c2..01683631 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,6 @@ "test": "NODE_ENV=test mocha", "test:cov": "NODE_ENV=test node ./node_modules/istanbul/lib/cli.js cover --preserve-comments ./node_modules/mocha/bin/_mocha -- -R spec", "generate-docs": "jsdoc2md lib/redis.js lib/cluster/index.js lib/commander.js > API.md", - "build": "node tools/build > commands.js", "bench": "matcha benchmarks/*.js" }, "repository": { @@ -28,7 +27,7 @@ "double-ended-queue": "^2.1.0-0", "flexbuffer": "0.0.6", "lodash": "^4.8.2", - "redis-commands": "^1.1.0", + "redis-commands": "^1.2.0", "redis-parser": "^1.3.0" }, "devDependencies": { diff --git a/tools/build.js b/tools/build.js deleted file mode 100644 index 1b405aec..00000000 --- a/tools/build.js +++ /dev/null @@ -1,25 +0,0 @@ -'use strict'; - -var Redis = require('../'); -var redis = new Redis(); - -redis.info(function (err, info) { - var version = info.match(/redis_version:([\d\.]+)/)[1]; - redis.command(function (err, res) { - redis.disconnect(); - var contents = '// This file was generated by `$ npm run build` on ' + (new Date()).toLocaleString() + '\n'; - contents += '// Redis Version: ' + version + '\n'; - var commands = res.reduce(function (prev, current) { - prev[current[0]] = { - arity: current[1], - flags: current[2], - keyStart: current[3], - keyStop: current[4], - step: current[5] - }; - return prev; - }, {}); - contents += 'module.exports = ' + JSON.stringify(commands, null, ' ') + ';\n'; - process.stdout.write(contents); - }); -});