From 48b7ddac1a0b5bc5ef5fe2af84ab6bd4d149f508 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 8 Oct 2026 13:38:27 +0000 Subject: [PATCH] fix: include README and LICENSE in the published package Copy the repository root README.md and LICENSE into packages/router on prepack so they are included in the npm tarball. The hero image in the README now uses an absolute URL so it renders on npmjs.com. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01XzEsqHjb7nDGfaePZYkyYk --- README.md | 2 +- packages/router/.gitignore | 3 +++ packages/router/package.json | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 packages/router/.gitignore diff --git a/README.md b/README.md index de39115..525f393 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # FUNSTACK Router -![FUNSTACK Router](docs/FUNSTACK_Router_Hero_small.png) +![FUNSTACK Router](https://raw.githubusercontent.com/uhyo/funstack-router/master/docs/FUNSTACK_Router_Hero_small.png) A modern React router built on the [Navigation API](https://developer.mozilla.org/en-US/docs/Web/API/Navigation_API). diff --git a/packages/router/.gitignore b/packages/router/.gitignore new file mode 100644 index 0000000..358dbf6 --- /dev/null +++ b/packages/router/.gitignore @@ -0,0 +1,3 @@ +# Copied from the repository root on prepack +/README.md +/LICENSE diff --git a/packages/router/package.json b/packages/router/package.json index 242c7cb..d9e47d8 100644 --- a/packages/router/package.json +++ b/packages/router/package.json @@ -36,6 +36,7 @@ "scripts": { "build": "tsdown", "build:docs": "node --experimental-strip-types scripts/generate-ai-docs.ts", + "prepack": "cp ../../README.md ../../LICENSE .", "dev": "tsdown --watch", "test": "vitest", "test:run": "vitest run",