createModule

fun createModule(modulesDir: Path, name: String): Result<Path>

Scaffold a new module folder <modulesDir>/<name> with a tessera.json manifest and a starter index.ts. Fails if the folder already exists (so we never clobber an existing module). Returns the module directory on success.