Skip to content

chore(packages): READMEs for the 6 published libs + stable dev userData name - #236

Merged
th3-br41n merged 1 commit into
mainfrom
chore/pkg-readmes-dev-userdata
Jul 21, 2026
Merged

th3-br41n merged 1 commit into
mainfrom
chore/pkg-readmes-dev-userdata

Conversation

@th3-br41n

Copy link
Copy Markdown
Contributor

#1 publish-hygiene follow-ups.

  • READMEs for @brainstorm-os/{block-protocol,sdk-types,tokens,react-yjs,sdk,editor} — they published without one. prepare-publish.mjs already copies README.md into dist, so the next publish (a 0.0.2) ships them.
  • Stable dev userData name: app.setName(isDev ? "brainstorm-dev" : "Brainstorm"). Dev previously keyed userData off the npm package name, so the scope rename moved it to a fresh empty dir and orphaned the vault registry (the vault-list-empty incident). Pinning it to brainstorm-dev keeps dev distinct from the packaged app (single-instance lock) and immune to future renames.

Note: the dev userData dir changes once with this (→ ~/Library/Application Support/brainstorm-dev); the vault data in ~/Documents is untouched, and the registry pointer is migrated separately.

🤖 Generated with Claude Code

…ta name

- README.md for @brainstorm-os/{block-protocol,sdk-types,tokens,react-yjs,sdk,
  editor} — they published to npm without one (prepare-publish.mjs already
  copies README.md into dist, so the next publish ships them).
- Pin the Electron app name to a STABLE value independent of the npm package
  name: packaged = "Brainstorm", dev = "brainstorm-dev". Previously dev kept
  the package name as its userData dir, so the @brainstorm→@brainstorm-os
  rename silently moved dev's userData to a fresh empty dir and orphaned the
  vault registry. "brainstorm-dev" stays distinct from "Brainstorm" so the
  packaged app's single-instance lock still doesn't collide with a dev session.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@th3-br41n
th3-br41n merged commit a9388cb into main Jul 21, 2026
0 of 3 checks passed
@th3-br41n
th3-br41n deleted the chore/pkg-readmes-dev-userdata branch July 21, 2026 17:40
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