UNPKG

wechaty-grpc

Version:
15 lines 430 B
import path from 'path'; import fs from 'fs'; import { codeRoot } from './cjs.js'; function getOpenApiPath(...paths) { return path.join(codeRoot, 'out', ...paths); } const puppetSwaggerFile = getOpenApiPath('wechaty', 'puppet.swagger.json'); const puppet = { v0: { data: fs.readFileSync(puppetSwaggerFile, 'utf-8'), file: puppetSwaggerFile, }, }; export { puppet, }; //# sourceMappingURL=openapi.js.map