@kurtinatlanta/prettier 3.8.0-dev → 3.8.0-hoyt.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs CHANGED
@@ -7244,11 +7244,11 @@ var init_options6 = __esm({
7244
7244
  // src/main/plugins/builtin-plugins/utilities.js
7245
7245
  function toLazyLoadPlugin({
7246
7246
  name,
7247
- importPlugin: importPlugin2,
7247
+ load,
7248
7248
  options: options7,
7249
7249
  languages,
7250
- parserNames,
7251
- printerNames
7250
+ parsers: parserNames,
7251
+ printers: printerNames
7252
7252
  }) {
7253
7253
  const plugin = { name };
7254
7254
  if (options7) {
@@ -7266,11 +7266,11 @@ function toLazyLoadPlugin({
7266
7266
  names.map((name2) => [
7267
7267
  name2,
7268
7268
  true ? async () => {
7269
- const loaded = await importPlugin2();
7269
+ const loaded = await load();
7270
7270
  Object.assign(plugin, loaded);
7271
7271
  return loaded[property][name2];
7272
7272
  } : async () => {
7273
- const loaded = await importPlugin2();
7273
+ const loaded = await load();
7274
7274
  plugin[property] = loaded[property];
7275
7275
  return loaded[property][name2];
7276
7276
  }
@@ -7280,6 +7280,9 @@ function toLazyLoadPlugin({
7280
7280
  }
7281
7281
  return plugin;
7282
7282
  }
7283
+ function toLazyLoadPlugins(...plugins2) {
7284
+ return plugins2.map((plugin) => toLazyLoadPlugin(plugin));
7285
+ }
7283
7286
  var init_utilities = __esm({
7284
7287
  "src/main/plugins/builtin-plugins/utilities.js"() {
7285
7288
  }
@@ -7288,21 +7291,9 @@ var init_utilities = __esm({
7288
7291
  // src/main/plugins/builtin-plugins/production-plugins.js
7289
7292
  var production_plugins_exports = {};
7290
7293
  __export(production_plugins_exports, {
7291
- acorn: () => acorn,
7292
- angular: () => angular,
7293
- babel: () => babel,
7294
- estree: () => estree,
7295
- flow: () => flow,
7296
- glimmer: () => glimmer,
7297
- graphql: () => graphql,
7298
- html: () => html,
7299
- markdown: () => markdown,
7300
- meriyah: () => meriyah,
7301
- postcss: () => postcss,
7302
- typescript: () => typescript,
7303
- yaml: () => yaml
7294
+ plugins: () => plugins
7304
7295
  });
7305
- var acorn, angular, babel, estree, flow, glimmer, graphql, html, markdown, meriyah, postcss, typescript, yaml;
7296
+ var plugins;
7306
7297
  var init_production_plugins = __esm({
7307
7298
  "src/main/plugins/builtin-plugins/production-plugins.js"() {
7308
7299
  init_languages_evaluate();
@@ -7320,110 +7311,112 @@ var init_production_plugins = __esm({
7320
7311
  init_languages_evaluate8();
7321
7312
  init_options6();
7322
7313
  init_utilities();
7323
- acorn = /* @__PURE__ */ toLazyLoadPlugin({
7324
- name: "acorn",
7325
- importPlugin: () => import("./plugins/acorn.mjs"),
7326
- parserNames: ["acorn", "espree"]
7327
- });
7328
- angular = /* @__PURE__ */ toLazyLoadPlugin({
7329
- name: "angular",
7330
- importPlugin: () => import("./plugins/angular.mjs"),
7331
- parserNames: [
7332
- "__ng_action",
7333
- "__ng_binding",
7334
- "__ng_directive",
7335
- "__ng_interpolation"
7336
- ]
7337
- });
7338
- babel = /* @__PURE__ */ toLazyLoadPlugin({
7339
- name: "babel",
7340
- importPlugin: () => import("./plugins/babel.mjs"),
7341
- parserNames: [
7342
- "__babel_estree",
7343
- "__js_expression",
7344
- "__ts_expression",
7345
- "__vue_event_binding",
7346
- "__vue_expression",
7347
- "__vue_ts_event_binding",
7348
- "__vue_ts_expression",
7349
- "babel",
7350
- "babel-flow",
7351
- "babel-ts",
7352
- "json",
7353
- "json-stringify",
7354
- "json5",
7355
- "jsonc"
7356
- ]
7357
- });
7358
- estree = /* @__PURE__ */ toLazyLoadPlugin({
7359
- name: "estree",
7360
- importPlugin: () => import("./plugins/estree.mjs"),
7361
- options: options_default4,
7362
- languages: [...languages_evaluate_default6, ...languages_evaluate_default5],
7363
- printerNames: ["estree", "estree-json"]
7364
- });
7365
- flow = /* @__PURE__ */ toLazyLoadPlugin({
7366
- name: "flow",
7367
- importPlugin: () => import("./plugins/flow.mjs"),
7368
- parserNames: ["flow"]
7369
- });
7370
- glimmer = /* @__PURE__ */ toLazyLoadPlugin({
7371
- name: "glimmer",
7372
- importPlugin: () => import("./plugins/glimmer.mjs"),
7373
- languages: languages_evaluate_default3,
7374
- parserNames: ["glimmer"],
7375
- printerNames: ["glimmer"]
7376
- });
7377
- graphql = /* @__PURE__ */ toLazyLoadPlugin({
7378
- name: "graphql",
7379
- importPlugin: () => import("./plugins/graphql.mjs"),
7380
- options: options_default2,
7381
- languages: languages_evaluate_default2,
7382
- parserNames: ["graphql"],
7383
- printerNames: ["graphql"]
7384
- });
7385
- html = /* @__PURE__ */ toLazyLoadPlugin({
7386
- name: "html",
7387
- importPlugin: () => import("./plugins/html.mjs"),
7388
- options: options_default3,
7389
- languages: languages_evaluate_default4,
7390
- parserNames: ["angular", "html", "lwc", "mjml", "vue"],
7391
- printerNames: ["html"]
7392
- });
7393
- markdown = /* @__PURE__ */ toLazyLoadPlugin({
7394
- name: "markdown",
7395
- importPlugin: () => import("./plugins/markdown.mjs"),
7396
- options: options_default5,
7397
- languages: languages_evaluate_default7,
7398
- parserNames: ["markdown", "mdx", "remark"],
7399
- printerNames: ["mdast"]
7400
- });
7401
- meriyah = /* @__PURE__ */ toLazyLoadPlugin({
7402
- name: "meriyah",
7403
- importPlugin: () => import("./plugins/meriyah.mjs"),
7404
- parserNames: ["meriyah"]
7405
- });
7406
- postcss = /* @__PURE__ */ toLazyLoadPlugin({
7407
- name: "postcss",
7408
- importPlugin: () => import("./plugins/postcss.mjs"),
7409
- options: options_default,
7410
- languages: languages_evaluate_default,
7411
- parserNames: ["css", "less", "scss"],
7412
- printerNames: ["postcss"]
7413
- });
7414
- typescript = /* @__PURE__ */ toLazyLoadPlugin({
7415
- name: "typescript",
7416
- importPlugin: () => import("./plugins/typescript.mjs"),
7417
- parserNames: ["typescript"]
7418
- });
7419
- yaml = /* @__PURE__ */ toLazyLoadPlugin({
7420
- name: "yaml",
7421
- importPlugin: () => import("./plugins/yaml.mjs"),
7422
- options: options_default6,
7423
- languages: languages_evaluate_default8,
7424
- parserNames: ["yaml"],
7425
- printerNames: ["yaml"]
7426
- });
7314
+ plugins = /* @__PURE__ */ toLazyLoadPlugins(
7315
+ {
7316
+ name: "acorn",
7317
+ load: () => import("./plugins/acorn.mjs"),
7318
+ parsers: ["acorn", "espree"]
7319
+ },
7320
+ {
7321
+ name: "angular",
7322
+ load: () => import("./plugins/angular.mjs"),
7323
+ parsers: [
7324
+ "__ng_action",
7325
+ "__ng_binding",
7326
+ "__ng_directive",
7327
+ "__ng_interpolation"
7328
+ ]
7329
+ },
7330
+ {
7331
+ name: "babel",
7332
+ load: () => import("./plugins/babel.mjs"),
7333
+ parsers: [
7334
+ "__babel_estree",
7335
+ "__js_expression",
7336
+ "__ts_expression",
7337
+ "__vue_event_binding",
7338
+ "__vue_expression",
7339
+ "__vue_ts_event_binding",
7340
+ "__vue_ts_expression",
7341
+ "babel",
7342
+ "babel-flow",
7343
+ "babel-ts",
7344
+ "json",
7345
+ "json-stringify",
7346
+ "json5",
7347
+ "jsonc"
7348
+ ]
7349
+ },
7350
+ {
7351
+ name: "estree",
7352
+ load: () => import("./plugins/estree.mjs"),
7353
+ options: options_default4,
7354
+ languages: [...languages_evaluate_default6, ...languages_evaluate_default5],
7355
+ printers: ["estree", "estree-json"]
7356
+ },
7357
+ {
7358
+ name: "flow",
7359
+ load: () => import("./plugins/flow.mjs"),
7360
+ parsers: ["flow"]
7361
+ },
7362
+ {
7363
+ name: "glimmer",
7364
+ load: () => import("./plugins/glimmer.mjs"),
7365
+ languages: languages_evaluate_default3,
7366
+ parsers: ["glimmer"],
7367
+ printers: ["glimmer"]
7368
+ },
7369
+ {
7370
+ name: "graphql",
7371
+ load: () => import("./plugins/graphql.mjs"),
7372
+ options: options_default2,
7373
+ languages: languages_evaluate_default2,
7374
+ parsers: ["graphql"],
7375
+ printers: ["graphql"]
7376
+ },
7377
+ {
7378
+ name: "html",
7379
+ load: () => import("./plugins/html.mjs"),
7380
+ options: options_default3,
7381
+ languages: languages_evaluate_default4,
7382
+ parsers: ["angular", "html", "lwc", "mjml", "vue"],
7383
+ printers: ["html"]
7384
+ },
7385
+ {
7386
+ name: "markdown",
7387
+ load: () => import("./plugins/markdown.mjs"),
7388
+ options: options_default5,
7389
+ languages: languages_evaluate_default7,
7390
+ parsers: ["markdown", "mdx", "remark"],
7391
+ printers: ["mdast"]
7392
+ },
7393
+ {
7394
+ name: "meriyah",
7395
+ load: () => import("./plugins/meriyah.mjs"),
7396
+ parsers: ["meriyah"]
7397
+ },
7398
+ {
7399
+ name: "postcss",
7400
+ load: () => import("./plugins/postcss.mjs"),
7401
+ options: options_default,
7402
+ languages: languages_evaluate_default,
7403
+ parsers: ["css", "less", "scss"],
7404
+ printers: ["postcss"]
7405
+ },
7406
+ {
7407
+ name: "typescript",
7408
+ load: () => import("./plugins/typescript.mjs"),
7409
+ parsers: ["typescript"]
7410
+ },
7411
+ {
7412
+ name: "yaml",
7413
+ load: () => import("./plugins/yaml.mjs"),
7414
+ options: options_default6,
7415
+ languages: languages_evaluate_default8,
7416
+ parsers: ["yaml"],
7417
+ printers: ["yaml"]
7418
+ }
7419
+ );
7427
7420
  }
7428
7421
  });
7429
7422
 
@@ -7447,7 +7440,7 @@ var require_ignore = __commonJS({
7447
7440
  var SLASH = "/";
7448
7441
  var TMP_KEY_IGNORE = "node-ignore";
7449
7442
  if (typeof Symbol !== "undefined") {
7450
- TMP_KEY_IGNORE = Symbol.for("node-ignore");
7443
+ TMP_KEY_IGNORE = /* @__PURE__ */ Symbol.for("node-ignore");
7451
7444
  }
7452
7445
  var KEY_IGNORE = TMP_KEY_IGNORE;
7453
7446
  var define = (object, key2, value) => {
@@ -7880,7 +7873,7 @@ var require_ignore = __commonJS({
7880
7873
  module.exports = factory;
7881
7874
  factory.default = factory;
7882
7875
  module.exports.isPathValid = isPathValid;
7883
- define(module.exports, Symbol.for("setupWindows"), setupWindows);
7876
+ define(module.exports, /* @__PURE__ */ Symbol.for("setupWindows"), setupWindows);
7884
7877
  }
7885
7878
  });
7886
7879
 
@@ -8490,8 +8483,8 @@ var commonDeprecatedHandler = (keyOrPair, redirectTo, { descriptor }) => {
8490
8483
  var import_picocolors2 = __toESM(require_picocolors(), 1);
8491
8484
 
8492
8485
  // node_modules/vnopts/lib/constants.js
8493
- var VALUE_NOT_EXIST = Symbol.for("vnopts.VALUE_NOT_EXIST");
8494
- var VALUE_UNCHANGED = Symbol.for("vnopts.VALUE_UNCHANGED");
8486
+ var VALUE_NOT_EXIST = /* @__PURE__ */ Symbol.for("vnopts.VALUE_NOT_EXIST");
8487
+ var VALUE_UNCHANGED = /* @__PURE__ */ Symbol.for("vnopts.VALUE_UNCHANGED");
8495
8488
 
8496
8489
  // node_modules/vnopts/lib/handlers/invalid/common.js
8497
8490
  var INDENTATION = " ".repeat(2);
@@ -10017,7 +10010,7 @@ var path2 = {
10017
10010
  };
10018
10011
  var sep = defaultPlatform === "win32" ? path2.win32.sep : path2.posix.sep;
10019
10012
  minimatch.sep = sep;
10020
- var GLOBSTAR = Symbol("globstar **");
10013
+ var GLOBSTAR = /* @__PURE__ */ Symbol("globstar **");
10021
10014
  minimatch.GLOBSTAR = GLOBSTAR;
10022
10015
  var qmark2 = "[^/]";
10023
10016
  var star2 = qmark2 + "*?";
@@ -15873,7 +15866,7 @@ function printCommentsSeparately(path17, options7) {
15873
15866
  if (!value) {
15874
15867
  return {};
15875
15868
  }
15876
- const ignored = options7[Symbol.for("printedComments")];
15869
+ const ignored = options7[/* @__PURE__ */ Symbol.for("printedComments")];
15877
15870
  const comments = (value.comments || []).filter((comment) => !ignored.has(comment));
15878
15871
  if (comments.length === 0) {
15879
15872
  return {
@@ -15917,8 +15910,8 @@ function printComments(path17, doc2, options7) {
15917
15910
  }
15918
15911
  function ensureAllCommentsPrinted(options7) {
15919
15912
  const {
15920
- [Symbol.for("comments")]: comments,
15921
- [Symbol.for("printedComments")]: printedComments
15913
+ [/* @__PURE__ */ Symbol.for("comments")]: comments,
15914
+ [/* @__PURE__ */ Symbol.for("printedComments")]: printedComments
15922
15915
  } = options7;
15923
15916
  for (const comment of comments) {
15924
15917
  if (!comment.printed && !printedComments.has(comment)) {
@@ -16196,12 +16189,12 @@ var core_options_evaluate_default = {
16196
16189
 
16197
16190
  // src/main/support.js
16198
16191
  function getSupportInfo({
16199
- plugins = [],
16192
+ plugins: plugins2 = [],
16200
16193
  showDeprecated = false
16201
16194
  } = {}) {
16202
- const languages = plugins.flatMap((plugin) => plugin.languages ?? []);
16195
+ const languages = plugins2.flatMap((plugin) => plugin.languages ?? []);
16203
16196
  const options7 = [];
16204
- for (const option of normalizeOptionSettings(Object.assign({}, ...plugins.map(({
16197
+ for (const option of normalizeOptionSettings(Object.assign({}, ...plugins2.map(({
16205
16198
  options: options8
16206
16199
  }) => options8), core_options_evaluate_default))) {
16207
16200
  if (!showDeprecated && option.deprecated) {
@@ -16212,10 +16205,10 @@ function getSupportInfo({
16212
16205
  option.choices = option.choices.filter((choice) => !choice.deprecated);
16213
16206
  }
16214
16207
  if (option.name === "parser") {
16215
- option.choices = [...option.choices, ...collectParsersFromLanguages(option.choices, languages, plugins)];
16208
+ option.choices = [...option.choices, ...collectParsersFromLanguages(option.choices, languages, plugins2)];
16216
16209
  }
16217
16210
  }
16218
- option.pluginDefaults = Object.fromEntries(plugins.filter((plugin) => plugin.defaultOptions?.[option.name] !== void 0).map((plugin) => [plugin.name, plugin.defaultOptions[option.name]]));
16211
+ option.pluginDefaults = Object.fromEntries(plugins2.filter((plugin) => plugin.defaultOptions?.[option.name] !== void 0).map((plugin) => [plugin.name, plugin.defaultOptions[option.name]]));
16219
16212
  options7.push(option);
16220
16213
  }
16221
16214
  return {
@@ -16223,14 +16216,14 @@ function getSupportInfo({
16223
16216
  options: options7
16224
16217
  };
16225
16218
  }
16226
- function* collectParsersFromLanguages(parserChoices, languages, plugins) {
16219
+ function* collectParsersFromLanguages(parserChoices, languages, plugins2) {
16227
16220
  const existingParsers = new Set(parserChoices.map((choice) => choice.value));
16228
16221
  for (const language of languages) {
16229
16222
  if (language.parsers) {
16230
16223
  for (const parserName of language.parsers) {
16231
16224
  if (!existingParsers.has(parserName)) {
16232
16225
  existingParsers.add(parserName);
16233
- const plugin = plugins.find((plugin2) => plugin2.parsers && Object.prototype.hasOwnProperty.call(plugin2.parsers, parserName));
16226
+ const plugin = plugins2.find((plugin2) => plugin2.parsers && Object.prototype.hasOwnProperty.call(plugin2.parsers, parserName));
16234
16227
  let description = language.name;
16235
16228
  if (plugin?.name) {
16236
16229
  description += ` (plugin: ${plugin.name})`;
@@ -16716,7 +16709,7 @@ var method_find_last_default = findLast;
16716
16709
  import { builders as __doc_builders2 } from "./doc.mjs";
16717
16710
 
16718
16711
  // src/main/front-matter/constants.js
16719
- var FRONT_MATTER_MARK = Symbol.for("PRETTIER_IS_FRONT_MATTER");
16712
+ var FRONT_MATTER_MARK = /* @__PURE__ */ Symbol.for("PRETTIER_IS_FRONT_MATTER");
16720
16713
  var FRONT_MATTER_VISITOR_KEYS = [];
16721
16714
 
16722
16715
  // src/main/front-matter/is-front-matter.js
@@ -16801,14 +16794,14 @@ function createGetVisitorKeysFunction(printerGetVisitorKeys, supportFrontMatter)
16801
16794
  var create_get_visitor_keys_function_default = createGetVisitorKeysFunction;
16802
16795
 
16803
16796
  // src/main/parser-and-printer.js
16804
- function getParserPluginByParserName(plugins, parserName) {
16797
+ function getParserPluginByParserName(plugins2, parserName) {
16805
16798
  if (!parserName) {
16806
16799
  throw new Error("parserName is required.");
16807
16800
  }
16808
16801
  const plugin = method_find_last_default(
16809
16802
  /* OPTIONAL_OBJECT: false */
16810
16803
  0,
16811
- plugins,
16804
+ plugins2,
16812
16805
  (plugin2) => plugin2.parsers && Object.prototype.hasOwnProperty.call(plugin2.parsers, parserName)
16813
16806
  );
16814
16807
  if (plugin) {
@@ -16820,14 +16813,14 @@ function getParserPluginByParserName(plugins, parserName) {
16820
16813
  }
16821
16814
  throw new ConfigError(message);
16822
16815
  }
16823
- function getPrinterPluginByAstFormat(plugins, astFormat) {
16816
+ function getPrinterPluginByAstFormat(plugins2, astFormat) {
16824
16817
  if (!astFormat) {
16825
16818
  throw new Error("astFormat is required.");
16826
16819
  }
16827
16820
  const plugin = method_find_last_default(
16828
16821
  /* OPTIONAL_OBJECT: false */
16829
16822
  0,
16830
- plugins,
16823
+ plugins2,
16831
16824
  (plugin2) => plugin2.printers && Object.prototype.hasOwnProperty.call(plugin2.printers, astFormat)
16832
16825
  );
16833
16826
  if (plugin) {
@@ -16840,10 +16833,10 @@ function getPrinterPluginByAstFormat(plugins, astFormat) {
16840
16833
  throw new ConfigError(message);
16841
16834
  }
16842
16835
  function resolveParser({
16843
- plugins,
16836
+ plugins: plugins2,
16844
16837
  parser
16845
16838
  }) {
16846
- const plugin = getParserPluginByParserName(plugins, parser);
16839
+ const plugin = getParserPluginByParserName(plugins2, parser);
16847
16840
  return initParser(plugin, parser);
16848
16841
  }
16849
16842
  function initParser(plugin, parserName) {
@@ -16856,7 +16849,6 @@ async function initPrinter(plugin, astFormat) {
16856
16849
  return normalizePrinter(printer);
16857
16850
  }
16858
16851
  var normalizedPrinters = /* @__PURE__ */ new WeakMap();
16859
- var PRINTER_NORMALIZED_MARK = Symbol("PRINTER_NORMALIZED_MARK");
16860
16852
  function normalizePrinter(printer) {
16861
16853
  if (normalizedPrinters.has(printer)) {
16862
16854
  return normalizedPrinters.get(printer);
@@ -17155,10 +17147,10 @@ async function textToDoc(text, partialNextOptions, parentOptions, printAstToDoc2
17155
17147
  function printIgnored(path17, options7, printPath, args) {
17156
17148
  const {
17157
17149
  originalText,
17158
- [Symbol.for("comments")]: comments,
17150
+ [/* @__PURE__ */ Symbol.for("comments")]: comments,
17159
17151
  locStart,
17160
17152
  locEnd,
17161
- [Symbol.for("printedComments")]: printedComments
17153
+ [/* @__PURE__ */ Symbol.for("printedComments")]: printedComments
17162
17154
  } = options7;
17163
17155
  const { node } = path17;
17164
17156
  const start = locStart(node);
@@ -17256,8 +17248,8 @@ function callPluginPrintFunction(path17, options7, printPath, args, embeds) {
17256
17248
  }
17257
17249
  async function prepareToPrint(ast, options7) {
17258
17250
  const comments = ast.comments ?? [];
17259
- options7[Symbol.for("comments")] = comments;
17260
- options7[Symbol.for("printedComments")] = /* @__PURE__ */ new Set();
17251
+ options7[/* @__PURE__ */ Symbol.for("comments")] = comments;
17252
+ options7[/* @__PURE__ */ Symbol.for("printedComments")] = /* @__PURE__ */ new Set();
17261
17253
  attachComments(ast, options7);
17262
17254
  const {
17263
17255
  printer: {
@@ -17545,7 +17537,7 @@ var {
17545
17537
  printDocToString: printDocToStringWithoutNormalizeOptions
17546
17538
  } = __doc_printer;
17547
17539
  var BOM = "\uFEFF";
17548
- var CURSOR = Symbol("cursor");
17540
+ var CURSOR = /* @__PURE__ */ Symbol("cursor");
17549
17541
  async function coreFormat(originalText, opts2, addAlignmentSize = 0) {
17550
17542
  if (!originalText || originalText.trim().length === 0) {
17551
17543
  return {
@@ -17583,7 +17575,7 @@ async function coreFormat(originalText, opts2, addAlignmentSize = 0) {
17583
17575
  }
17584
17576
  result.formatted = trimmed + convertEndOfLineOptionToCharacter(opts2.endOfLine);
17585
17577
  }
17586
- const comments = opts2[Symbol.for("comments")];
17578
+ const comments = opts2[/* @__PURE__ */ Symbol.for("comments")];
17587
17579
  if (opts2.cursorOffset >= 0) {
17588
17580
  let oldCursorRegionStart;
17589
17581
  let oldCursorRegionText;
@@ -17855,15 +17847,7 @@ var CATEGORY_GLOBAL = "Global";
17855
17847
  var CATEGORY_SPECIAL = "Special";
17856
17848
 
17857
17849
  // src/main/plugins/load-builtin-plugins.js
17858
- var loadBuiltinPluginsWithoutCache = true ? async function() {
17859
- return Object.values(
17860
- await Promise.resolve().then(() => (init_production_plugins(), production_plugins_exports))
17861
- );
17862
- } : async function() {
17863
- return Object.values(
17864
- await null
17865
- );
17866
- };
17850
+ var loadBuiltinPluginsWithoutCache = true ? async () => (await Promise.resolve().then(() => (init_production_plugins(), production_plugins_exports))).plugins : async () => (await null).plugins;
17867
17851
  var cache2;
17868
17852
  function loadBuiltinPlugins() {
17869
17853
  return cache2 ?? (cache2 = loadBuiltinPluginsWithoutCache());
@@ -17918,8 +17902,8 @@ function clearCache2() {
17918
17902
  }
17919
17903
 
17920
17904
  // src/main/plugins/load-plugins.js
17921
- function loadPlugins(plugins = []) {
17922
- return Promise.all(plugins.map((plugin) => loadPlugin(plugin)));
17905
+ function loadPlugins(plugins2 = []) {
17906
+ return Promise.all(plugins2.map((plugin) => loadPlugin(plugin)));
17923
17907
  }
17924
17908
  var load_plugins_default = loadPlugins;
17925
17909
 
@@ -18017,9 +18001,9 @@ async function getParser(file, options7) {
18017
18001
  if (config?.parser) {
18018
18002
  return config.parser;
18019
18003
  }
18020
- let plugins = options7.plugins ?? config?.plugins ?? [];
18021
- plugins = (await Promise.all([load_builtin_plugins_default(), load_plugins_default(plugins)])).flat();
18022
- return infer_parser_default({ plugins }, { physicalFile: file });
18004
+ let plugins2 = options7.plugins ?? config?.plugins ?? [];
18005
+ plugins2 = (await Promise.all([load_builtin_plugins_default(), load_plugins_default(plugins2)])).flat();
18006
+ return infer_parser_default({ plugins: plugins2 }, { physicalFile: file });
18023
18007
  }
18024
18008
  var get_file_info_default = getFileInfo;
18025
18009
 
@@ -18027,7 +18011,7 @@ var get_file_info_default = getFileInfo;
18027
18011
  import * as doc from "./doc.mjs";
18028
18012
 
18029
18013
  // src/main/version.evaluate.js
18030
- var version_evaluate_default = "3.8.0-dev";
18014
+ var version_evaluate_default = "3.8.0-hoyt.1";
18031
18015
 
18032
18016
  // src/utilities/public.js
18033
18017
  var public_exports = {};
@@ -18278,13 +18262,13 @@ function isNextLineEmpty2(text, startIndex) {
18278
18262
  function withPlugins(fn, optionsArgumentIndex = 1) {
18279
18263
  return async (...args) => {
18280
18264
  const options7 = args[optionsArgumentIndex] ?? {};
18281
- const { plugins = [] } = options7;
18265
+ const { plugins: plugins2 = [] } = options7;
18282
18266
  args[optionsArgumentIndex] = {
18283
18267
  ...options7,
18284
18268
  plugins: (await Promise.all([
18285
18269
  load_builtin_plugins_default(),
18286
18270
  // TODO: standalone version allow `plugins` to be `prettierPlugins` which is an object, should allow that too
18287
- load_plugins_default(plugins)
18271
+ load_plugins_default(plugins2)
18288
18272
  ])).flat()
18289
18273
  };
18290
18274
  return fn(...args);
@@ -2147,7 +2147,7 @@ var init_constants_evaluate = __esm({
2147
2147
  "angular",
2148
2148
  "lwc"
2149
2149
  ];
2150
- PRETTIER_VERSION = "3.8.0-dev";
2150
+ PRETTIER_VERSION = "3.8.0-hoyt.1";
2151
2151
  }
2152
2152
  });
2153
2153
 
@@ -1324,7 +1324,7 @@ var {
1324
1324
  // src/cli/options/create-minimist-options.js
1325
1325
  function createMinimistOptions(detailedOptions) {
1326
1326
  const booleanNames = [];
1327
- const stringNames = [];
1327
+ const stringNames = ["_"];
1328
1328
  const defaultValues = {};
1329
1329
  for (const option of detailedOptions) {
1330
1330
  const { name, alias, type } = option;
@@ -1426,7 +1426,7 @@ function parseArgv(rawArguments, detailedOptions, logger, keys2) {
1426
1426
  return [option.forwardToApi || camelCase(key), value];
1427
1427
  })
1428
1428
  ),
1429
- _: normalized._?.map(String),
1429
+ _: normalized._,
1430
1430
  get __raw() {
1431
1431
  return argv2;
1432
1432
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kurtinatlanta/prettier",
3
- "version": "3.8.0-dev",
3
+ "version": "3.8.0-hoyt.1",
4
4
  "description": "Prettier is an opinionated code formatter",
5
5
  "bin": "./bin/prettier.cjs",
6
6
  "repository": "kurtinatlanta/prettier",
@@ -205,6 +205,6 @@
205
205
  "registry": "https://registry.npmjs.org/"
206
206
  },
207
207
  "scripts": {
208
- "prepublishOnly": "node -e \"assert.equal(require('.').version, require('../..').version)\""
208
+ "prepublishOnly": "node -e \"assert.equal(require('.').version, require('..').version)\""
209
209
  }
210
210
  }