diff --git a/CHANGELOG.md b/CHANGELOG.md index d626c8b..3242370 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [0.6.0] - 2026-04-28 + +### Changed + +- Renamed npm package from `@sadcoderlabs/laughing-man` to `laughing-man-cli`. Install with `npm i -g laughing-man-cli`. The `laughing-man` command itself is unchanged. +- GitHub repository moved to `github.com/vinta/laughing-man`. + ## [0.5.0] - 2026-04-12 ### Added diff --git a/CLAUDE.md b/CLAUDE.md index bd50427..906fe52 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -18,8 +18,8 @@ laughing-man send # Send issue N via Resend Broadcast laughing-man send status # Show delivery status for all sent broadcasts ``` -Install from npm: `npm install -g @sadcoderlabs/laughing-man` -Or run without installing: `npx @sadcoderlabs/laughing-man ` +Install from npm: `npm install -g laughing-man-cli` +Or run without installing: `npx laughing-man-cli ` ## Tech Stack diff --git a/README.md b/README.md index ac65059..5e70495 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,9 @@ # laughing-man -[![npm Version](https://img.shields.io/npm/v/@sadcoderlabs/laughing-man?style=for-the-badge)](https://www.npmjs.com/package/@sadcoderlabs/laughing-man) -[![CI](https://img.shields.io/github/actions/workflow/status/sadcoderlabs/laughing-man/ci.yml?style=for-the-badge&label=Build)](https://github.com/sadcoderlabs/laughing-man/actions/workflows/ci.yml) -[![Agent Friendly](https://img.shields.io/badge/Agent-Friendly-blue?style=for-the-badge)](https://github.com/sadcoderlabs/laughing-man/blob/main/skills/laughing-man/SKILL.md) +[![npm Version](https://img.shields.io/npm/v/laughing-man-cli?style=for-the-badge)](https://www.npmjs.com/package/laughing-man-cli) +[![CI](https://img.shields.io/github/actions/workflow/status/vinta/laughing-man/ci.yml?style=for-the-badge&label=Build)](https://github.com/vinta/laughing-man/actions/workflows/ci.yml) +[![Agent Friendly](https://img.shields.io/badge/Agent-Friendly-blue?style=for-the-badge)](https://github.com/vinta/laughing-man/blob/main/skills/laughing-man/SKILL.md) Turn your Markdown into a self-hosted newsletter. @@ -17,13 +17,13 @@ Write your newsletter in Markdown with whatever tools you like (Obsidian, Logseq Requires Node.js 22+ (for npx) and a domain name. ```bash -npm install -g @sadcoderlabs/laughing-man +npm install -g laughing-man-cli ``` Or run without installing: ```bash -npx @sadcoderlabs/laughing-man --help +npx laughing-man-cli --help ``` ## Usage @@ -31,7 +31,7 @@ npx @sadcoderlabs/laughing-man --help If you're the type who skips the manual, just copy this prompt to your agent: ```prompt -How do I use this tool? Read https://raw.githubusercontent.com/sadcoderlabs/laughing-man/main/skills/laughing-man/SKILL.md +How do I use this tool? Read https://raw.githubusercontent.com/vinta/laughing-man/main/skills/laughing-man/SKILL.md ``` ### Initiate diff --git a/package.json b/package.json index 8f7cfad..c4b065e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "@sadcoderlabs/laughing-man", - "version": "0.5.0", + "name": "laughing-man-cli", + "version": "0.6.0", "description": "Turn your Markdown into a self-hosted newsletter", "type": "module", "files": [ @@ -19,7 +19,7 @@ "license": "MIT", "repository": { "type": "git", - "url": "git+https://github.com/sadcoderlabs/laughing-man.git" + "url": "git+https://github.com/vinta/laughing-man.git" }, "keywords": [ "newsletter", diff --git a/skills/laughing-man/SKILL.md b/skills/laughing-man/SKILL.md index 4f4e02e..48dbb24 100644 --- a/skills/laughing-man/SKILL.md +++ b/skills/laughing-man/SKILL.md @@ -31,7 +31,7 @@ Tell the user which steps you're skipping and why, then start from the first inc Run this if no `laughing-man.yaml` exists in the working directory: ```bash -npx @sadcoderlabs/laughing-man init +npx laughing-man-cli init ``` Creates: @@ -138,7 +138,7 @@ Paste the value when prompted. No redeployment is needed. Secrets take effect im ### 7. Run setup web ```bash -npx @sadcoderlabs/laughing-man setup web +npx laughing-man-cli setup web ``` Expected output (all green): @@ -180,7 +180,7 @@ Docs: ### 8. Run setup newsletter ```bash -npx @sadcoderlabs/laughing-man setup newsletter +npx laughing-man-cli setup newsletter ``` Expected output: @@ -232,15 +232,15 @@ Frontmatter fields: ### 10. Build and deploy ```bash -npx @sadcoderlabs/laughing-man build -npx @sadcoderlabs/laughing-man deploy +npx laughing-man-cli build +npx laughing-man-cli deploy ``` To preview locally before deploying: ```bash -npx @sadcoderlabs/laughing-man preview # includes drafts -npx @sadcoderlabs/laughing-man preview --no-drafts # published issues only (--production also works) +npx laughing-man-cli preview # includes drafts +npx laughing-man-cli preview --no-drafts # published issues only (--production also works) ``` ### 11. Verify diff --git a/src/commands/deploy.ts b/src/commands/deploy.ts index a841f21..961178c 100644 --- a/src/commands/deploy.ts +++ b/src/commands/deploy.ts @@ -64,7 +64,7 @@ export async function runDeploy(options: DeployOptions): Promise { if (result.error) { if ((result.error as NodeJS.ErrnoException).code === "ENOENT") { throw new Error( - "Bundled wrangler executable was not found. Reinstall @sadcoderlabs/laughing-man.", + "Bundled wrangler executable was not found. Reinstall laughing-man-cli.", ); } diff --git a/tests/commands/build.test.ts b/tests/commands/build.test.ts index d38167d..2c71ecc 100644 --- a/tests/commands/build.test.ts +++ b/tests/commands/build.test.ts @@ -183,11 +183,11 @@ env: {} expect(indexHtml).toContain("Created with"); expect(indexHtml).toContain( - 'href="https://github.com/sadcoderlabs/laughing-man"', + 'href="https://github.com/vinta/laughing-man"', ); expect(issueHtml).toContain("Created with"); expect(issueHtml).toContain( - 'href="https://github.com/sadcoderlabs/laughing-man"', + 'href="https://github.com/vinta/laughing-man"', ); }); diff --git a/themes/laughing-man/layout.ts b/themes/laughing-man/layout.ts index faab653..251b613 100644 --- a/themes/laughing-man/layout.ts +++ b/themes/laughing-man/layout.ts @@ -23,6 +23,6 @@ export function siteFooter(name: string): string { ${escapeHtml(name)} Created with - laughing-man + laughing-man `; }