re-add translateTo call to chef export

This commit is contained in:
d98762625 2018-05-30 11:29:38 +01:00
parent 336810cbf4
commit 6db9521419
2 changed files with 5 additions and 14 deletions

View file

@ -9,8 +9,8 @@
* @license Apache-2.0
*/
/*eslint no-console: ["off"] */
/*eslint no-console: 0 */
/* eslint camelcase: 0 */
import fs from "fs";
import path from "path";
@ -34,7 +34,7 @@ let code = `/**
*/
import "babel-polyfill";
import { wrap } from "./apiUtils";
import { wrap, translateTo } from "./apiUtils";
import {
`;
@ -74,7 +74,7 @@ code += ` };
}
const chef = generateChef();
chef.translateTo = translateTo;
`;
Object.keys(operations).forEach((op) => {
@ -82,6 +82,7 @@ Object.keys(operations).forEach((op) => {
});
code +=`
export default chef;
export {
`;