Skip to content

Commit 950c1da

Browse files
committed
no-mistakes(document): docs: name CodeWriter/TsWriter in engine surface
1 parent 6d5b2b0 commit 950c1da

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎docs/features/own-your-codegen.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ holds), the naming tables and the type-mapping tables (`names.ts`, `naming.ts`,
109109
projection and report lowering that `meta migrate` and `meta verify` run. An owned file
110110
imports the engine from the package's engine entry, `@metaobjectsdev/codegen-ts/engine`,
111111
which also exports the code printer's `code`, `imp` and `joinCode` (`poet.ts`, the package's
112-
vendored copy of `ts-poet`). The list is `ENGINE_MODULES`, exported from that entry; a module
112+
vendored copy of `ts-poet`) and the code writer (`CodeWriter`, `TsWriter`, ADR-0063),
113+
which lays a file out but decides nothing about what the file contains, so like the
114+
printer it stays with the engine. The list is `ENGINE_MODULES`, exported from that entry; a module
113115
that is not on it and that a generator reaches is copied. An owned generator therefore
114116
imports no packaged module that returns emitted text, and a test ejects each generator alone
115117
into an empty project to prove it: it compiles as your `tsconfig.codegen.json` checks it and

0 commit comments

Comments
 (0)