@kubb/core
Advanced tools
Comparing version 0.50.1 to 0.51.0
@@ -9,3 +9,3 @@ 'use strict'; | ||
var rimraf = require('rimraf'); | ||
var beautify = require('js-beautify'); | ||
var prettier = require('prettier'); | ||
var EventEmitter = require('eventemitter3'); | ||
@@ -20,3 +20,2 @@ var uniq = require('lodash.uniq'); | ||
var rimraf__default = /*#__PURE__*/_interopDefault(rimraf); | ||
var beautify__default = /*#__PURE__*/_interopDefault(beautify); | ||
var EventEmitter__default = /*#__PURE__*/_interopDefault(EventEmitter); | ||
@@ -121,12 +120,13 @@ var uniq__default = /*#__PURE__*/_interopDefault(uniq); | ||
var formatOptions = { | ||
indent_size: 1, | ||
indent_char: " ", | ||
max_preserve_newlines: 5, | ||
preserve_newlines: true, | ||
brace_style: "collapse", | ||
space_before_conditional: true, | ||
wrap_line_length: 160 | ||
tabWidth: 2, | ||
printWidth: 160, | ||
parser: "typescript", | ||
singleQuote: true, | ||
semi: false, | ||
bracketSameLine: false, | ||
endOfLine: "auto" | ||
// plugins: [parserTypescript], | ||
}; | ||
var format = (source) => { | ||
return beautify__default.default(source, formatOptions); | ||
return prettier.format(source, formatOptions); | ||
}; | ||
@@ -133,0 +133,0 @@ |
{ | ||
"name": "@kubb/core", | ||
"version": "0.50.1", | ||
"version": "0.51.0", | ||
"description": "Generator core", | ||
@@ -49,3 +49,3 @@ "repository": { | ||
"uuid": "^9.0.0", | ||
"js-beautify": "^1.14.7" | ||
"prettier": "^2.8.4" | ||
}, | ||
@@ -52,0 +52,0 @@ "devDependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3557528
31463
+ Addedprettier@^2.8.4
+ Addedprettier@2.8.8(transitive)
- Removedjs-beautify@^1.14.7
- Removed@isaacs/cliui@8.0.2(transitive)
- Removed@one-ini/wasm@0.1.1(transitive)
- Removed@pkgjs/parseargs@0.11.0(transitive)
- Removedabbrev@2.0.0(transitive)
- Removedansi-regex@5.0.16.1.0(transitive)
- Removedansi-styles@4.3.06.2.1(transitive)
- Removedbrace-expansion@2.0.1(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedcommander@10.0.1(transitive)
- Removedconfig-chain@1.1.13(transitive)
- Removedcross-spawn@7.0.6(transitive)
- Removedeastasianwidth@0.2.0(transitive)
- Removededitorconfig@1.0.4(transitive)
- Removedemoji-regex@8.0.09.2.2(transitive)
- Removedforeground-child@3.3.0(transitive)
- Removedglob@10.4.5(transitive)
- Removedini@1.3.8(transitive)
- Removedis-fullwidth-code-point@3.0.0(transitive)
- Removedisexe@2.0.0(transitive)
- Removedjackspeak@3.4.3(transitive)
- Removedjs-beautify@1.15.1(transitive)
- Removedjs-cookie@3.0.5(transitive)
- Removedlru-cache@10.4.3(transitive)
- Removedminimatch@9.0.19.0.5(transitive)
- Removedminipass@7.1.2(transitive)
- Removednopt@7.2.1(transitive)
- Removedpackage-json-from-dist@1.0.1(transitive)
- Removedpath-key@3.1.1(transitive)
- Removedpath-scurry@1.11.1(transitive)
- Removedproto-list@1.2.4(transitive)
- Removedsemver@7.6.3(transitive)
- Removedshebang-command@2.0.0(transitive)
- Removedshebang-regex@3.0.0(transitive)
- Removedsignal-exit@4.1.0(transitive)
- Removedstring-width@4.2.35.1.2(transitive)
- Removedstrip-ansi@6.0.17.1.0(transitive)
- Removedwhich@2.0.2(transitive)
- Removedwrap-ansi@7.0.08.1.0(transitive)