💡 refactor(structure): Improved organization of monorepo packages and implementations#164
Merged
Charles Hudson (phobetron) merged 1 commit intomainfrom Mar 4, 2026
Conversation
Wiz Scan Summary
To detect these findings earlier in the dev lifecycle, try using Wiz Code VS Code Extension. |
4c62633 to
c84ebbb
Compare
… implementations
Restructuring the monorepo around a `packages/*` layout and align implementation naming with SDK package conventions.
- Move SDK source trees from `platforms/javascript/*` and `universal/*` into `packages/*`, including:
- `packages/universal/{api-schemas,api-client,core-sdk}`
- `packages/node/node-sdk` (+ `packages/node/frameworks/.keep`)
- `packages/web/{web-sdk,preview-panel,frameworks/react-web-sdk}`
- `packages/react-native-sdk`
- `packages/{android,ios}` docs
- Rename implementation apps to SDK-oriented names:
- `node-ssr-only` -> `node-sdk`
- `node-ssr-web-vanilla` -> `node-sdk+web-sdk`
- `web-vanilla` -> `web-sdk`
- `web-react` -> `web-sdk_react`
- `react-native` -> `react-native-sdk`
- Update root scripts and commands to new names/paths (`package.json`), including E2E setup/run targets and lint scope migration from `platforms/universal` to `packages`.
- Update workspace/tooling configuration for the new structure: `pnpm-workspace.yaml`, `pnpm-lock.yaml`, `tsconfig.base.json` path aliases, and `typedoc.json` entry points.
- Rewire CI path filters and E2E jobs in `.github/workflows/main-pipeline.yaml` to new package and implementation paths, job outputs, command targets, env setup paths, and artifact locations.
- Refresh project docs/governance docs to match renamed paths and commands: `README.md`, `CONTRIBUTING.md`, `.specify/memory/constitution.md`, `.specify/research/repository-research.md`.
- Update package/build/test config references (rsbuild/rslib/rstest/tsconfig/metro) to relocated dependency paths.
- Remove obsolete tracked Gradle wrapper JARs from legacy React Native locations.
New directory structure:
```
optimization/
├── implementations/
│ ├── node-sdk/
│ ├── node-sdk+web-sdk/
│ ├── react-native-sdk/
│ ├── web-sdk/
│ └── web-sdk_react/
├── lib/
├── packages/
│ ├── android/
│ ├── ios/
│ ├── react-native-sdk/
│ ├── node/
│ │ ├── frameworks/
│ │ └── node-sdk/
│ ├── universal/
│ │ ├── api-client/
│ │ ├── api-schemas/
│ │ └── core-sdk/
│ └── web/
│ ├── frameworks/
│ │ └── react-web-sdk/
│ ├── preview-panel/
│ └── web-sdk/
├── scripts/
└── specs/
```
[[NT-2544](https://contentful.atlassian.net/browse/NT-2544)]
c84ebbb to
94d8c8c
Compare
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.
Restructuring the monorepo around a
packages/*layout and align implementation naming with SDK package conventions.platforms/javascript/*anduniversal/*intopackages/*, including:packages/universal/{api-schemas,api-client,core-sdk}packages/node/node-sdk(+packages/node/frameworks/.keep)packages/web/{web-sdk,preview-panel,frameworks/react-web-sdk}packages/react-native-sdkpackages/{android,ios}docsnode-ssr-only->node-sdknode-ssr-web-vanilla->node-sdk+web-sdkweb-vanilla->web-sdkweb-react->web-sdk_reactreact-native->react-native-sdkpackage.json), including E2E setup/run targets and lint scope migration fromplatforms/universaltopackages.pnpm-workspace.yaml,pnpm-lock.yaml,tsconfig.base.jsonpath aliases, andtypedoc.jsonentry points..github/workflows/main-pipeline.yamlto new package and implementation paths, job outputs, command targets, env setup paths, and artifact locations.README.md,CONTRIBUTING.md,.specify/memory/constitution.md,.specify/research/repository-research.md.New directory structure:
[NT-2544]