Skip to content

chore: make this the analytics plugin's own repository - #27

Merged
danielmlr merged 1 commit into
mainfrom
chore/single-plugin-repo
Sep 29, 2026
Merged

danielmlr merged 1 commit into
mainfrom
chore/single-plugin-repo

Conversation

@danielmlr

Copy link
Copy Markdown
Member

Makes this repository the analytics plugin's own: the plugin moves from packages/analytics to the root, and the two unreleased plugins leave. The repository will be renamed to eisbachcode/emdash-plugin-analytics; GitHub redirects the old address.

Do not merge before the two new repositories exist and the rename is done (see the order below).

Changes

  • Layout: everything in packages/analytics moves to the root, so GitHub's landing page and the registry's "View source" show the plugin's README. emdash-plugin release plan finds a plugin at the repository root (discoverPluginDirectories in packages/plugin-cli/src/release-prepare.ts, emdash@1.0.1), so emdash-release.yml needs no change.
  • Removed: packages/content-freshness and packages/content-link-check move to eisbachcode/emdash-plugin-content-freshness and eisbachcode/emdash-plugin-content-link-check. packages/shared goes: analytics used only clampNumber (now src/values.ts, with its tests) and the type PluginContentItem (now in src/index/bootstrap.ts).
  • URLs: repository, homepage and bugs in package.json, repo in the manifest (which the registry profile takes) and the README image URLs point to the new name.
  • Root files: one package.json (the plugin's, plus the Changesets scripts), one AGENTS.md (the plugin's, plus what applies from the old workspace file), .claude/CLAUDE.md as the only link to it; pnpm-workspace.yaml keeps its settings without a package list.
  • CI: the tests job runs pnpm test; scripts/compat-matrix.sh runs the one suite at the root.
  • Changeset: patch, so 0.2.4 publishes the new links to npm.

Verified

  • pnpm install, pnpm typecheck, pnpm build: pass.
  • pnpm test: 314 passed (the 312 before, plus the two clampNumber tests from the shared package).
  • emdash-plugin bundle: finds the plugin at the root; the bundle holds backend.js, manifest.json and README.md (131.5 KB), not the banner.
  • scripts/compat-matrix.sh --no-baseline 1.0.1:0.2.6: 314 passed.
  • actionlint 1.7.7: no findings on the three workflows.

Order

  1. The two new repositories exist with the plugins' code (import of main at 1dea814).
  2. Rename this repository to emdash-plugin-analytics (Settings → General).
  3. On npmjs.com, the analytics trusted publisher names repository emdash-plugin-analytics (workflow release.yml, environment npm).
  4. Merge this PR, then pnpm exec emdash-plugin profile setup --provenance optional -y in a checkout of main.
  5. Merge the Version Packages PR: 0.2.4 from the renamed repository.

@changeset-bot

changeset-bot Bot commented Sep 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0ee0b12

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@eisbachcode/emdash-plugin-analytics Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@danielmlr
danielmlr merged commit b63f396 into main Sep 29, 2026
9 checks passed
@danielmlr
danielmlr deleted the chore/single-plugin-repo branch September 29, 2026 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant