mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 14:20:42 +08:00
Add ADR for a shared core package
Both apps carry diverging copies of the same domain logic. Record where shared logic lives, which types it uses and how it moves over.
This commit is contained in:
+1
-1
@@ -60,7 +60,7 @@ the components:
|
||||
heartwood
|
||||
- Define them in `lib/types.ts`, named after domain concepts such as `Author`
|
||||
or `Reaction`. The first extraction that needs a domain type creates the
|
||||
file
|
||||
file. ADR 4 moves them to `@radicle-gui/core` once that package exists
|
||||
- Apps pass their own objects when the shapes match, and map them in one place
|
||||
where they don't. Never import an app's types here
|
||||
|
||||
|
||||
Reference in New Issue
Block a user