Skip to content

Commit

Permalink
🐛 Aligns cli and package version
Browse files Browse the repository at this point in the history
  • Loading branch information
jaandrle committed Jan 2, 2025
1 parent a27c84f commit c7fdff2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
import "nodejsscript";
import { randomMDN } from './index.js';
import { url_main, env_names } from './consts.js';
$.api("randomMDN")
.version("1.0.2")
const { version, bin }= s.cat("./package.json").xargs(JSON.parse);
const [ name ]= Object.keys(bin);
$.api(name)
.version(version)
.describe([
"This script posts a new random article from MDN¹ to a given mastodon instance.",
"To post to the correct mastodon instance, use the `--url` and `--token` options.",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "randommdn",
"version": "1.2.0",
"version": "1.2.1",
"description": "Posting a random article from MDN.",
"type": "module",
"bin": {
Expand Down

0 comments on commit c7fdff2

Please sign in to comment.