using `rootDir` instead of `baseDir`