diff --git a/package.json b/package.json index c5bd768..6c55ad4 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "scripts": { "build": "coffee -c -o build/ src/", "prepare": "npm run build", + "prepublishOnly": "npm run update-cli-docs", "test": "npm run build && node src/test.js", "update-cli-docs": "node -e \"const fs = require('fs'); fs.writeFileSync('README.md', fs.readFileSync('README.md', 'utf8').replace(/```HELP_OUTPUT.+?```/s, '```HELP_OUTPUT\\n' + require('child_process').execSync('ascii-hypercube --help').toString().trim() + '\\n```'))\"" },