Skip to content

feat: publish internal packages as public on npm#15

Merged
prosdev merged 8 commits into
mainfrom
feat/publish-internal-packages-as-public
Nov 21, 2025
Merged

feat: publish internal packages as public on npm#15
prosdev merged 8 commits into
mainfrom
feat/publish-internal-packages-as-public

Conversation

@prosdev
Copy link
Copy Markdown
Contributor

@prosdev prosdev commented Nov 21, 2025

Summary

This PR enables publishing internal packages ( and ) as public packages on npm while hiding internal schema details.

Changes

🔒 Hide Internal Schema

  • Make collections required - Removed default collection names from
  • Users must now configure their own collection names, preventing exposure of internal Firestore schema
  • Updated tests to use generic collection names (, etc.)

📦 Publishing Changes

  • Changed for both internal packages to publish to npm as public
  • Removed GitHub Packages registry configuration
  • Removed GitHub Packages authentication from release workflow

📝 Documentation

  • Updated README to clarify users must configure their own schema
  • Removed specific internal collection names from examples
  • Added note that package is Contentstack-specific but generic

🧪 Testing

  • All tests updated and passing (27/27)
  • Tests use generic collection names instead of internal ones

Impact

  • Breaking Change: now requires config (no defaults)
  • Packages will be publicly visible on npm but require users to configure their own schema
  • Internal Firestore schema structure remains hidden

Version Bumps

  • : minor (0.1.0 → 0.2.0)
  • : patch (0.1.0 → 0.1.1)

- Remove @lytics registry override to allow public packages to publish to npm
- Only set authentication token, let publishConfig determine registry
- Add packages: write permission for GitHub Packages publishing
…chema

- Remove default collection names from FirestoreAdapter
- Require users to configure their own collection names
- This prevents exposing internal Firestore schema structure
- Use sample collection names in tests instead of internal names
- Remove duplicate collections key in test
- All tests passing with required collections
- Remove specific internal collection names from examples
- Add note that users must configure their own schema
- Update installation instructions for npm (no GitHub Packages)
- Clarify that package is Contentstack-specific but generic
- Update @lytics/playwright-adapters-internal to publish to npm
- Update @lytics/playwright-journey to publish to npm
- Remove GitHub Packages registry configuration
- Packages will be public but require users to configure their own schema
- Remove GitHub Packages auth steps (no longer needed)
- Remove packages:write permission
- Simplify workflow comments
- All packages now publish to npm via OIDC
- Replace this.db! with explicit null checks
- Improves type safety and satisfies Biome linting rules
@prosdev prosdev merged commit 7237ab4 into main Nov 21, 2025
1 check passed
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.

2 participants