Skip to content

Commit dce723c

Browse files
committed
Automatically update CLI help on readme before publishing
1 parent b827596 commit dce723c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"scripts": {
1919
"build": "coffee -c -o build/ src/",
2020
"prepare": "npm run build",
21+
"prepublishOnly": "npm run update-cli-docs",
2122
"test": "npm run build && node src/test.js",
2223
"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```'))\""
2324
},

0 commit comments

Comments
 (0)