oxfmt 0.32.0 → 0.34.0

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.
Files changed (39) hide show
  1. package/configuration_schema.json +51 -6
  2. package/dist/{postcss-DKPxyBch.js → angular-DdA9f8ZK.js} +7 -6
  3. package/dist/{apis-6GJvrGdK.js → apis-Ddb0m55g.js} +4 -4
  4. package/dist/babel-CmMxKXKi.js +3 -0
  5. package/dist/{bindings-DuRSBSH9.js → bindings-DTOgpISZ.js} +26 -26
  6. package/dist/{chunk-DSjvVL_1-DGPqLkX8.js → chunk-DSjvVL_1-K7gBHu1i.js} +1 -1
  7. package/dist/cli-worker.d.ts +1 -1
  8. package/dist/cli-worker.js +1 -1
  9. package/dist/cli.js +5 -4
  10. package/dist/{babel-CX7YS1y4.js → dist-DQgkZSFc.js} +5160 -1
  11. package/dist/index.d.ts +9 -4
  12. package/dist/index.js +2 -2
  13. package/dist/{v4-C_IPPFom-CzWZrmWL.js → jiti-Bb1dT6Cw-CP1_dUF7.js} +3 -10755
  14. package/dist/{migrate-prettier-CRIoVxnG.js → migrate-prettier-CPi8N90o.js} +1 -1
  15. package/dist/postcss-D79LfgjO.js +3 -0
  16. package/dist/{prettier-iX8V55ba.js → prettier-DIVejRqd.js} +14 -14
  17. package/dist/{prettier-plugin-oxfmt-CTfSH0ez.js → prettier-plugin-oxfmt-CI1pYfTP.js} +3 -3
  18. package/dist/{resolve-pWjAK-4f-BDpC233X.js → resolve-pWjAK-4f-YzJRPmwZ.js} +2 -2
  19. package/dist/{sorter-VB3XW2i_-BpFugw-x.js → sorter-BZkvDMjt-CiG199np.js} +6 -6
  20. package/dist/sorter-CjGwXe5x.js +5 -0
  21. package/dist/{utils-D8dQkKEd-Dq0tCGW_.js → utils-D8dQkKEd-bSmL59ud.js} +1 -1
  22. package/dist/v3-D-mr2VVh-DAVD4LOh.js +16709 -0
  23. package/dist/v4-C-HWEQJm-DOWhMvfI.js +10759 -0
  24. package/package.json +20 -20
  25. package/dist/angular-9UbP57Ow.js +0 -3952
  26. package/dist/dist-D3CWjTTc.js +0 -1151
  27. package/dist/sorter-DnKClyKU.js +0 -5
  28. package/dist/v3-RIpeMkdf-CHWXIFE7.js +0 -79883
  29. /package/dist/{acorn-DTid_xfu.js → acorn-DSYDYt2u.js} +0 -0
  30. /package/dist/{estree-vodXR09f.js → estree-DBPlpXot.js} +0 -0
  31. /package/dist/{flow-D6joRvfg.js → flow-DZRswbuH.js} +0 -0
  32. /package/dist/{glimmer-CDzFnA-R.js → glimmer-B28TNYIB.js} +0 -0
  33. /package/dist/{graphql-DQKSu6tT.js → graphql-3p9xuuKy.js} +0 -0
  34. /package/dist/{html-CRvdkeeP.js → html-D2VbMQAT.js} +0 -0
  35. /package/dist/{index-DgRWzHwv.d.ts → index-BNhsnuYk.d.ts} +0 -0
  36. /package/dist/{markdown-CDEe6Nm4.js → markdown-DdJpriJP.js} +0 -0
  37. /package/dist/{meriyah-DSeGVyBs.js → meriyah-CQnZTN4N.js} +0 -0
  38. /package/dist/{typescript-BFhFx1UJ.js → typescript-D5lCjM2U.js} +0 -0
  39. /package/dist/{yaml-DXzn9wd5.js → yaml-jtj0ZWQC.js} +0 -0
@@ -10,7 +10,7 @@ import { readFile } from "node:fs/promises";
10
10
  async function runMigratePrettier() {
11
11
  const cwd = process.cwd();
12
12
  if (await hasOxfmtrcFile(cwd)) return exitWithError("Oxfmt configuration file already exists.");
13
- const { resolveConfigFile, resolveConfig } = await import("./prettier-iX8V55ba.js").then((n) => n.n);
13
+ const { resolveConfigFile, resolveConfig } = await import("./prettier-DIVejRqd.js").then((n) => n.n);
14
14
  const prettierConfigPath = await resolveConfigFile(join(cwd, "dummy.js"));
15
15
  if (!prettierConfigPath) {
16
16
  console.log("No Prettier configuration file found.");
@@ -0,0 +1,3 @@
1
+ import { a as en, i as _l, n as Si, r as Ti, t as Hy } from "./angular-DdA9f8ZK.js";
2
+
3
+ export { _l as default, Si as languages, Ti as options, en as parsers, Hy as printers };
@@ -11358,7 +11358,7 @@ async function loadConfigFromPackageYaml(file) {
11358
11358
  var parseYaml;
11359
11359
  async function loadYaml(file) {
11360
11360
  const content = await read_file_default(file);
11361
- if (!parseYaml) ({__parsePrettierYamlConfig: parseYaml} = await import("./yaml-DXzn9wd5.js"));
11361
+ if (!parseYaml) ({__parsePrettierYamlConfig: parseYaml} = await import("./yaml-jtj0ZWQC.js"));
11362
11362
  try {
11363
11363
  return parseYaml(content);
11364
11364
  } catch (error) {
@@ -15174,7 +15174,7 @@ function createParsersAndPrinters(modules) {
15174
15174
  };
15175
15175
  }
15176
15176
  var estreePlugin = createParsersAndPrinters([{
15177
- importPlugin: () => import("./estree-vodXR09f.js"),
15177
+ importPlugin: () => import("./estree-DBPlpXot.js"),
15178
15178
  printers: ["estree", "estree-json"]
15179
15179
  }]);
15180
15180
  var options7 = {
@@ -15197,11 +15197,11 @@ var languages = [
15197
15197
  ];
15198
15198
  var { parsers, printers } = createParsersAndPrinters([
15199
15199
  {
15200
- importPlugin: () => import("./acorn-DTid_xfu.js"),
15200
+ importPlugin: () => import("./acorn-DSYDYt2u.js"),
15201
15201
  parsers: ["acorn", "espree"]
15202
15202
  },
15203
15203
  {
15204
- importPlugin: () => import("./angular-9UbP57Ow.js"),
15204
+ importPlugin: () => import("./angular-DdA9f8ZK.js"),
15205
15205
  parsers: [
15206
15206
  "__ng_action",
15207
15207
  "__ng_binding",
@@ -15210,7 +15210,7 @@ var { parsers, printers } = createParsersAndPrinters([
15210
15210
  ]
15211
15211
  },
15212
15212
  {
15213
- importPlugin: () => import("./babel-CX7YS1y4.js"),
15213
+ importPlugin: () => import("./babel-CmMxKXKi.js"),
15214
15214
  parsers: [
15215
15215
  "babel",
15216
15216
  "babel-flow",
@@ -15229,21 +15229,21 @@ var { parsers, printers } = createParsersAndPrinters([
15229
15229
  ]
15230
15230
  },
15231
15231
  {
15232
- importPlugin: () => import("./flow-D6joRvfg.js"),
15232
+ importPlugin: () => import("./flow-DZRswbuH.js"),
15233
15233
  parsers: ["flow"]
15234
15234
  },
15235
15235
  {
15236
- importPlugin: () => import("./glimmer-CDzFnA-R.js"),
15236
+ importPlugin: () => import("./glimmer-B28TNYIB.js"),
15237
15237
  parsers: ["glimmer"],
15238
15238
  printers: ["glimmer"]
15239
15239
  },
15240
15240
  {
15241
- importPlugin: () => import("./graphql-DQKSu6tT.js"),
15241
+ importPlugin: () => import("./graphql-3p9xuuKy.js"),
15242
15242
  parsers: ["graphql"],
15243
15243
  printers: ["graphql"]
15244
15244
  },
15245
15245
  {
15246
- importPlugin: () => import("./html-CRvdkeeP.js"),
15246
+ importPlugin: () => import("./html-D2VbMQAT.js"),
15247
15247
  parsers: [
15248
15248
  "html",
15249
15249
  "angular",
@@ -15254,7 +15254,7 @@ var { parsers, printers } = createParsersAndPrinters([
15254
15254
  printers: ["html"]
15255
15255
  },
15256
15256
  {
15257
- importPlugin: () => import("./markdown-CDEe6Nm4.js"),
15257
+ importPlugin: () => import("./markdown-DdJpriJP.js"),
15258
15258
  parsers: [
15259
15259
  "markdown",
15260
15260
  "mdx",
@@ -15263,11 +15263,11 @@ var { parsers, printers } = createParsersAndPrinters([
15263
15263
  printers: ["mdast"]
15264
15264
  },
15265
15265
  {
15266
- importPlugin: () => import("./meriyah-DSeGVyBs.js"),
15266
+ importPlugin: () => import("./meriyah-CQnZTN4N.js"),
15267
15267
  parsers: ["meriyah"]
15268
15268
  },
15269
15269
  {
15270
- importPlugin: () => import("./postcss-DKPxyBch.js"),
15270
+ importPlugin: () => import("./postcss-D79LfgjO.js"),
15271
15271
  parsers: [
15272
15272
  "css",
15273
15273
  "less",
@@ -15276,11 +15276,11 @@ var { parsers, printers } = createParsersAndPrinters([
15276
15276
  printers: ["postcss"]
15277
15277
  },
15278
15278
  {
15279
- importPlugin: () => import("./typescript-BFhFx1UJ.js"),
15279
+ importPlugin: () => import("./typescript-D5lCjM2U.js"),
15280
15280
  parsers: ["typescript"]
15281
15281
  },
15282
15282
  {
15283
- importPlugin: () => import("./yaml-DXzn9wd5.js"),
15283
+ importPlugin: () => import("./yaml-jtj0ZWQC.js"),
15284
15284
  parsers: ["yaml"],
15285
15285
  printers: ["yaml"]
15286
15286
  }
@@ -1,7 +1,7 @@
1
- import "./bindings-DuRSBSH9.js";
2
- import "./apis-6GJvrGdK.js";
1
+ import "./bindings-DTOgpISZ.js";
2
+ import "./apis-Ddb0m55g.js";
3
3
  import { jsTextToDoc } from "./index.js";
4
- import { r as builders } from "./prettier-iX8V55ba.js";
4
+ import { r as builders } from "./prettier-DIVejRqd.js";
5
5
 
6
6
  //#region src-js/libs/prettier-plugin-oxfmt/text-to-doc.ts
7
7
  const { hardline, join } = builders;
@@ -1,8 +1,8 @@
1
- import { i as __require, t as __commonJSMin } from "./chunk-DSjvVL_1-DGPqLkX8.js";
1
+ import { i as __require, t as __commonJSMin } from "./chunk-DSjvVL_1-K7gBHu1i.js";
2
2
  import { fileURLToPath } from "node:url";
3
3
  import fs from "node:fs";
4
4
 
5
- //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2ac6e70_prettier@3.8.1/node_modules/prettier-plugin-tailwindcss/dist/resolve-pWjAK-4f.mjs
5
+ //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier@3.8.1/node_modules/prettier-plugin-tailwindcss/dist/resolve-pWjAK-4f.mjs
6
6
  function expiringMap(duration) {
7
7
  let map = /* @__PURE__ */ new Map();
8
8
  return {
@@ -1,11 +1,11 @@
1
- import { a as resolveJsFrom, t as expiringMap } from "./resolve-pWjAK-4f-BDpC233X.js";
2
- import { n as cacheForDirs, t as bigSign } from "./utils-D8dQkKEd-Dq0tCGW_.js";
1
+ import { a as resolveJsFrom, t as expiringMap } from "./resolve-pWjAK-4f-YzJRPmwZ.js";
2
+ import { n as cacheForDirs, t as bigSign } from "./utils-D8dQkKEd-bSmL59ud.js";
3
3
  import * as path from "node:path";
4
4
  import { dirname, resolve } from "path";
5
5
  import { readdirSync, statSync } from "fs";
6
6
  import { pathToFileURL } from "node:url";
7
7
 
8
- //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2ac6e70_prettier@3.8.1/node_modules/prettier-plugin-tailwindcss/dist/sorter-VB3XW2i_.mjs
8
+ //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier@3.8.1/node_modules/prettier-plugin-tailwindcss/dist/sorter-BZkvDMjt.mjs
9
9
  let seen = /* @__PURE__ */ new Set();
10
10
  function warn(key, arg, ...args) {
11
11
  if (seen.has(key)) return;
@@ -104,14 +104,14 @@ async function getTailwindConfig(options) {
104
104
  if (!stylesheet && !(mod === null || mod === void 0 ? void 0 : mod.__unstable__loadDesignSystem)) jsConfig = jsConfig ?? findClosestJsConfig(inputDir);
105
105
  if (jsConfig) {
106
106
  if (!stylesheet) return pathToApiMap.remember(`${pkgDir}:${jsConfig}`, async () => {
107
- const { loadV3 } = await import("./v3-RIpeMkdf-CHWXIFE7.js");
107
+ const { loadV3 } = await import("./v3-D-mr2VVh-DAVD4LOh.js");
108
108
  return loadV3(pkgDir, jsConfig);
109
109
  });
110
110
  error("explicit-stylesheet-and-config-together", base, `You have specified a Tailwind CSS stylesheet and a Tailwind CSS config at the same time. Use stylesheetPath unless you are using v3. Preferring the stylesheet.`);
111
111
  }
112
112
  if (mod && !mod.__unstable__loadDesignSystem) {
113
113
  if (!stylesheet) return pathToApiMap.remember(`${pkgDir}:${jsConfig}`, async () => {
114
- const { loadV3 } = await import("./v3-RIpeMkdf-CHWXIFE7.js");
114
+ const { loadV3 } = await import("./v3-D-mr2VVh-DAVD4LOh.js");
115
115
  return loadV3(pkgDir, jsConfig);
116
116
  });
117
117
  mod = null;
@@ -119,7 +119,7 @@ async function getTailwindConfig(options) {
119
119
  }
120
120
  if (mod && mod.__unstable__loadDesignSystem && pkgDir) stylesheet ?? (stylesheet = `${pkgDir}/theme.css`);
121
121
  return pathToApiMap.remember(`${pkgDir}:${stylesheet}`, async () => {
122
- const { loadV4 } = await import("./v4-C_IPPFom-CzWZrmWL.js");
122
+ const { loadV4 } = await import("./v4-C-HWEQJm-DOWhMvfI.js");
123
123
  return loadV4(mod, stylesheet);
124
124
  });
125
125
  }
@@ -0,0 +1,5 @@
1
+ import "./chunk-DSjvVL_1-K7gBHu1i.js";
2
+ import "./resolve-pWjAK-4f-YzJRPmwZ.js";
3
+ import { r as getTailwindConfig, t as createSorter } from "./sorter-BZkvDMjt-CiG199np.js";
4
+
5
+ export { createSorter };
@@ -1,6 +1,6 @@
1
1
  import * as path from "node:path";
2
2
 
3
- //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2ac6e70_prettier@3.8.1/node_modules/prettier-plugin-tailwindcss/dist/utils-D8dQkKEd.mjs
3
+ //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier@3.8.1/node_modules/prettier-plugin-tailwindcss/dist/utils-D8dQkKEd.mjs
4
4
  function isNodeLike(value) {
5
5
  return typeof (value === null || value === void 0 ? void 0 : value.type) === "string";
6
6
  }