contentful-typescript-codegen
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -350,7 +350,13 @@ #!/usr/bin/env node | ||
return __awaiter(this, void 0, void 0, function () { | ||
var sortedContentTypes, source; | ||
var sortedContentTypes, source, prettierConfig; | ||
return __generator(this, function (_a) { | ||
sortedContentTypes = contentTypes.sort(function (a, b) { return a.sys.id.localeCompare(b.sys.id); }); | ||
source = renderAllContentTypes$1(sortedContentTypes); | ||
return [2 /*return*/, prettier.format(source, { parser: "typescript" })]; | ||
switch (_a.label) { | ||
case 0: | ||
sortedContentTypes = contentTypes.sort(function (a, b) { return a.sys.id.localeCompare(b.sys.id); }); | ||
source = renderAllContentTypes$1(sortedContentTypes); | ||
return [4 /*yield*/, prettier.resolveConfig(process.cwd())]; | ||
case 1: | ||
prettierConfig = _a.sent(); | ||
return [2 /*return*/, prettier.format(source, __assign({}, prettierConfig, { parser: "typescript" }))]; | ||
} | ||
}); | ||
@@ -357,0 +363,0 @@ }); |
"use strict"; | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
@@ -42,7 +53,13 @@ return new (P || (P = Promise))(function (resolve, reject) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var sortedContentTypes, source; | ||
var sortedContentTypes, source, prettierConfig; | ||
return __generator(this, function (_a) { | ||
sortedContentTypes = contentTypes.sort(function (a, b) { return a.sys.id.localeCompare(b.sys.id); }); | ||
source = renderAllContentTypes(sortedContentTypes); | ||
return [2 /*return*/, prettier_1.format(source, { parser: "typescript" })]; | ||
switch (_a.label) { | ||
case 0: | ||
sortedContentTypes = contentTypes.sort(function (a, b) { return a.sys.id.localeCompare(b.sys.id); }); | ||
source = renderAllContentTypes(sortedContentTypes); | ||
return [4 /*yield*/, prettier_1.resolveConfig(process.cwd())]; | ||
case 1: | ||
prettierConfig = _a.sent(); | ||
return [2 /*return*/, prettier_1.format(source, __assign({}, prettierConfig, { parser: "typescript" }))]; | ||
} | ||
}); | ||
@@ -49,0 +66,0 @@ }); |
@@ -10,3 +10,3 @@ { | ||
}, | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"main": "dist/contentful-typescript-codegen.js", | ||
@@ -13,0 +13,0 @@ "bin": "./dist/contentful-typescript-codegen.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
104482
1098