Skip to content

refactor: rename the reader workspace to @tackup/docs, its published name - #151

Open
nclsndr wants to merge 2 commits into
mainfrom
refactor/rename-reader-to-docs
Open

nclsndr wants to merge 2 commits into
mainfrom
refactor/rename-reader-to-docs

Conversation

@nclsndr

@nclsndr nclsndr commented Dec 3, 2026 •

Copy link
Copy Markdown
Owner

Why

The docs reader lived in packages/reader as @tackup/reader, but npm publishes it as @tackup/docs: the folder that the npm page links to has another name than the package on that page. Now the folder, the workspace name and the published name match.

An agent waiting for a review also lost its wait when the review folders were removed at the wrong moment, and a test of the wait failed in CI.

What

  • packages/reader is packages/docs, and the workspace @tackup/reader is @tackup/docs. Imports, workspace references, configuration, scripts, skills and docs follow, and Bun regenerated bun.lock.
  • The package build takes the published name from the workspace manifest instead of renaming it.
  • The published manifest's repository.directory is now packages/docs.
  • packages/extension-docs stays, and so does the import @tackup/reader in users' pages and component modules: the reader resolves that name itself, and no package has it. A tsconfig path keeps the example sources type-checked.
  • tack docs review wait looks again when a review folder is removed during a look, instead of failing. This is the one behavior change, in its own commit. Two regression tests remove the folder at the listing and at the claim; both failed before the fix.

Related to

#146, #150

Published package

The @tackup/docs tarball has the same 107 files before and after. The lines that differ:

File What differs
package.json repository.directory
dist/engine.js, dist/watcher.js the source paths that esbuild writes as comments
dist/engine.js, dist/reader-files.ts the workspace name in a fallback that only a source run reaches

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Deploying tack-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1105966
Status: ✅  Deploy successful!
Preview URL: https://ebeca107.tack-ayg.pages.dev
Branch Preview URL: https://refactor-rename-reader-to-do.tack-ayg.pages.dev

View logs

…name

The folder packages/reader is now packages/docs, so the folder, the workspace
and the npm package share one name. The build takes the published name from
the workspace manifest. Pages keep importing @tackup/reader, a name the reader
resolves itself.
A look that found a review folder removed between making it and using it
failed the whole wait, which also made a test of the wait fail at times.
@nclsndr
nclsndr force-pushed the refactor/rename-reader-to-docs branch from c41d815 to 1105966 Compare December 3, 2026 23:59

This branch has not been deployed

No deployments
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