Skip to content

Commit

Permalink
Automatically update CLI help on readme before publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
1j01 committed Oct 20, 2024
1 parent b827596 commit dce723c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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```'))\""
},
Expand Down

0 comments on commit dce723c

Please sign in to comment.