Right now, codegen uses transformed package name as the directory name for types (not to be confused with outputDir, type directory is one level below it.) Directory name is also hardcoded in generated resource files (import type { BackboneElement } from "../hl7-fhir-r4-core/BackboneElement"; ). This is aesthetically suboptimal. There should be an option to configure this directory name.