feat(toolkit): consolidate packages into @ocpp-debugkit/toolkit with subpath exports - #55
Merged
Merged
Conversation
…subpath exports - Create packages/toolkit/ with single @ocpp-debugkit/toolkit package - Move core, scenarios, reporter, CLI code into src/ internal modules - Add src/replay/ and src/react/ stub modules - Configure subpath exports: /core, /scenarios, /reporter, /replay, /react, /cli, /fixtures - Configure ESM build with TypeScript declarations, tree-shaking (sideEffects: false) - CLI binary ocpp-debugkit via package.json#bin - Update web app to consume @ocpp-debugkit/toolkit - Delete old package directories (core, scenarios, reporter, cli) - All 196 existing tests pass from new locations - Update AGENTS.md and CURRENT_STATE.md - Add changeset (minor bump) Closes #54
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
sepehr-safari
added a commit
that referenced
this pull request
Jul 8, 2026
… publish (#67) The release workflow's Changesets action publishes any package whose local version hasn't been published on npm, even without a changeset. This caused @ocpp-debugkit/toolkit@0.2.0 to be auto-published when PR #55 merged with only Phase 0 consolidation code. Fix: set version to 0.2.1 (next available) and private:true to prevent any auto-publishing. private:true will be removed in the release issue (#66) when all v0.2.0 features are complete and we're ready to publish.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Consolidates the four independent npm packages (
@ocpp-debugkit/core,scenarios,reporter,cli) into a single@ocpp-debugkit/toolkitpackage with subpath exports for modular consumption.Changes
packages/toolkit/— single@ocpp-debugkit/toolkitpackagesrc/core/,src/scenarios/,src/reporter/,src/cli/internal modulessrc/replay/andsrc/react/modules with type signatures (filled in later phases)./core,./scenarios,./reporter,./replay,./react,./cli,./fixtures.d.ts+ source maps + declaration maps),sideEffects: falsefor tree-shakingocpp-debugkitviapackage.json#bin@ocpp-debugkit/*to relative pathspackages/core/,packages/scenarios/,packages/reporter/,packages/cli/removedapps/web/now depends on@ocpp-debugkit/toolkit: "workspace:*"only@ocpp-debugkit/toolkitVerification
pnpm build— 2/2 tasks successful (toolkit + web)pnpm test— 196/196 tests pass (all existing tests from new locations)pnpm lint— cleanpnpm typecheck— 3/3 tasks successfulpnpm format:check— all files formattedOld packages
The v0.1.1 packages (
@ocpp-debugkit/core,scenarios,reporter,cli) remain on npm unchanged. They will be deprecated with a migration message after@ocpp-debugkit/toolkit@0.2.0is published and verified. No wrapper packages created.Closes #54