code: function getJsonPathInfo(jsonPath) {
    const dirPath = path.dirname(jsonPath)
    const fileName = path.basename(jsonPath, '.json')
    const relative = path.relative(srcPath, dirPath)
    const fileBase = path.join(relative, fileName)
  
    return {
      dirPath, fileName, relative, fileBase
    }
  }
docs: 获取 json 路径相关信息