oxfmt 0.50.0 → 0.51.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 (33) hide show
  1. package/dist/{acorn-sBRpswSh.js → acorn-Cz3eAoi8.js} +1 -1
  2. package/dist/{angular-DtI-eDW8.js → angular-BzDc3wVg.js} +1 -1
  3. package/dist/{apis-CKvPKBJI.js → apis-H4bwlBNm.js} +7 -53
  4. package/dist/{babel-DaNjvh9L.js → babel-Cs312VeV.js} +1 -1
  5. package/dist/{bindings-Dj_YoR0Z.js → bindings-qpSSlUMn.js} +26 -26
  6. package/dist/chunk-HkwdBwDg.js +37 -0
  7. package/dist/cli-worker.js +1 -1
  8. package/dist/cli.js +50 -31
  9. package/dist/{dist-D_YbN99t.js → dist-DieWQ1D0.js} +14 -14
  10. package/dist/{estree-CzfNsl8m.js → estree-BL2Xy2uB.js} +1 -1
  11. package/dist/{flow-c9AjoQam.js → flow-Bj4lBR-Y.js} +1 -1
  12. package/dist/{glimmer-D_zkI0w_.js → glimmer-C2ccnwyy.js} +1 -1
  13. package/dist/{graphql-BFXkB4Nq.js → graphql-D73FSqwO.js} +1 -1
  14. package/dist/{html-DkcPxRXg.js → html-ENhiK7MR.js} +1 -1
  15. package/dist/index.js +4 -4
  16. package/dist/{init-C3nxU_Wc.js → init-BbKOMZ57.js} +1 -1
  17. package/dist/{jiti-Bb1dT6Cw-C0N20Za1.js → jiti-Bb1dT6Cw-BtDs_aWX.js} +2 -2
  18. package/dist/{markdown-DVLNmbQg.js → markdown-CDTH7TpJ.js} +1 -1
  19. package/dist/{meriyah-BGPf00Rn.js → meriyah-C-N-xeFc.js} +1 -1
  20. package/dist/{migrate-biome-DclTzwKW.js → migrate-biome-BMqs7-eg.js} +1 -1
  21. package/dist/{migrate-prettier-DLfviW85.js → migrate-prettier-CBzqnxHw.js} +2 -2
  22. package/dist/{plugin-DOdiccQR.js → plugin-DiRKvkOT.js} +4 -4
  23. package/dist/{postcss-D-ql-dm8.js → postcss-CS83Slco.js} +1 -1
  24. package/dist/{prettier-Cw36juP9.js → prettier-D7Ly-aG0.js} +15 -15
  25. package/dist/{sorter-BZkvDMjt-DpGe0QK9.js → sorter-BZkvDMjt-r7M4pM9t.js} +7 -7
  26. package/dist/{sorter-w0dgpoFw.js → sorter-D0Nd4qpi.js} +1 -1
  27. package/dist/{typescript-C_eN_ThF.js → typescript-DkgFgfZO.js} +1 -1
  28. package/dist/{v3-D-mr2VVh-CU7hQIit.js → v3-D-mr2VVh-DBBWnwM8.js} +3 -3
  29. package/dist/{v4-C-HWEQJm-C8EWwksG.js → v4-C-HWEQJm-OZwT-Lc8.js} +3 -3
  30. package/dist/{yaml-Bqxyk-13.js → yaml-Ddi9JTUZ.js} +1 -1
  31. package/package.json +20 -20
  32. /package/dist/{prettier-plugin-oxfmt-BlJcmKAv.js → prettier-plugin-oxfmt-Besh6ER1.js} +0 -0
  33. /package/dist/{shared-BtJbjkue.js → shared-BTEY2VsW.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { s as __esmMin } from "./apis-CKvPKBJI.js";
1
+ import { n as __esmMin } from "./chunk-HkwdBwDg.js";
2
2
  //#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/plugins/acorn.mjs
3
3
  function je(e, t) {
4
4
  for (var i = 65536, s = 0; s < t.length; s += 2) {
@@ -1,4 +1,4 @@
1
- import { s as __esmMin } from "./apis-CKvPKBJI.js";
1
+ import { n as __esmMin } from "./chunk-HkwdBwDg.js";
2
2
  //#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/plugins/angular.mjs
3
3
  function Fr(t) {
4
4
  return typeof t == "string" ? (e) => e === t : (e) => t.test(e);
@@ -1,39 +1,4 @@
1
- import { createRequire } from "node:module";
2
- //#region \0rolldown/runtime.js
3
- var __create = Object.create;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf;
8
- var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
10
- var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
11
- var __exportAll = (all, no_symbols) => {
12
- let target = {};
13
- for (var name in all) __defProp(target, name, {
14
- get: all[name],
15
- enumerable: true
16
- });
17
- if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
18
- return target;
19
- };
20
- var __copyProps = (to, from, except, desc) => {
21
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
22
- key = keys[i];
23
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
24
- get: ((k) => from[k]).bind(null, key),
25
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
26
- });
27
- }
28
- return to;
29
- };
30
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
31
- value: mod,
32
- enumerable: true
33
- }) : target, mod));
34
- var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
- var __require = /* @__PURE__ */ createRequire(import.meta.url);
36
- //#endregion
1
+ import { o as __toESM } from "./chunk-HkwdBwDg.js";
37
2
  //#region src-js/libs/apis.ts
38
3
  const CACHES = {
39
4
  prettier: null,
@@ -48,7 +13,7 @@ async function loadCached(key, loader) {
48
13
  }
49
14
  async function loadPrettier() {
50
15
  return loadCached("prettier", async () => {
51
- const prettier = await import("./prettier-Cw36juP9.js");
16
+ const prettier = await import("./prettier-D7Ly-aG0.js");
52
17
  const { formatOptionsHiddenDefaults } = prettier.__internal;
53
18
  formatOptionsHiddenDefaults.parentParser = null;
54
19
  formatOptionsHiddenDefaults.__onHtmlRoot = null;
@@ -57,17 +22,6 @@ async function loadPrettier() {
57
22
  });
58
23
  }
59
24
  /**
60
- * TODO: Plugins support
61
- * - Read `plugins` field
62
- * - Load plugins dynamically and parse `languages` field
63
- * - Map file extensions and filenames to Prettier parsers
64
- *
65
- * @returns Array of loaded plugin's `languages` info
66
- */
67
- async function resolvePlugins() {
68
- return [];
69
- }
70
- /**
71
25
  * Format non-js file
72
26
  *
73
27
  * @returns Formatted code
@@ -130,7 +84,7 @@ async function formatEmbeddedDoc({ texts, options }) {
130
84
  * Option mapping (sortTailwindcss.xxx → tailwindXxx) is also done in Rust side.
131
85
  */
132
86
  async function setupTailwindPlugin(options) {
133
- CACHES.tailwindPlugin ??= await loadCached("tailwindPlugin", () => import("./dist-D_YbN99t.js"));
87
+ CACHES.tailwindPlugin ??= await loadCached("tailwindPlugin", () => import("./dist-DieWQ1D0.js"));
134
88
  options.plugins ??= [];
135
89
  options.plugins.push(CACHES.tailwindPlugin);
136
90
  }
@@ -140,7 +94,7 @@ async function setupTailwindPlugin(options) {
140
94
  * @returns Array of sorted class strings (same order/length as input)
141
95
  */
142
96
  async function sortTailwindClasses({ classes, options }) {
143
- CACHES.tailwindSorter ??= await loadCached("tailwindSorter", () => import("./sorter-w0dgpoFw.js"));
97
+ CACHES.tailwindSorter ??= await loadCached("tailwindSorter", () => import("./sorter-D0Nd4qpi.js"));
144
98
  const { createSorter } = CACHES.tailwindSorter;
145
99
  return (await createSorter({
146
100
  filepath: options.filepath,
@@ -154,7 +108,7 @@ async function sortTailwindClasses({ classes, options }) {
154
108
  * Load prettier-plugin-svelte to provide the `svelte` parser.
155
109
  */
156
110
  async function setupSveltePlugin(options) {
157
- CACHES.sveltePlugin ??= await loadCached("sveltePlugin", async () => await import("./plugin-DOdiccQR.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1)));
111
+ CACHES.sveltePlugin ??= await loadCached("sveltePlugin", async () => await import("./plugin-DiRKvkOT.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1)));
158
112
  options.plugins ??= [];
159
113
  options.plugins.push(CACHES.sveltePlugin);
160
114
  }
@@ -162,9 +116,9 @@ async function setupSveltePlugin(options) {
162
116
  * Load oxfmt plugin for js-in-xxx parsers.
163
117
  */
164
118
  async function setupOxfmtPlugin(options) {
165
- CACHES.oxfmtPlugin ??= await loadCached("oxfmtPlugin", async () => await import("./prettier-plugin-oxfmt-BlJcmKAv.js"));
119
+ CACHES.oxfmtPlugin ??= await loadCached("oxfmtPlugin", async () => await import("./prettier-plugin-oxfmt-Besh6ER1.js"));
166
120
  options.plugins ??= [];
167
121
  options.plugins.push(CACHES.oxfmtPlugin);
168
122
  }
169
123
  //#endregion
170
- export { sortTailwindClasses as a, __exportAll as c, __toESM as d, resolvePlugins as i, __require as l, formatEmbeddedDoc as n, __commonJSMin as o, formatFile as r, __esmMin as s, formatEmbeddedCode as t, __toCommonJS as u };
124
+ export { sortTailwindClasses as i, formatEmbeddedDoc as n, formatFile as r, formatEmbeddedCode as t };
@@ -1,4 +1,4 @@
1
- import { c as __exportAll, s as __esmMin } from "./apis-CKvPKBJI.js";
1
+ import { n as __esmMin, r as __exportAll } from "./chunk-HkwdBwDg.js";
2
2
  //#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/plugins/babel.mjs
3
3
  var babel_exports = /* @__PURE__ */ __exportAll({
4
4
  default: () => Ks,
@@ -57,7 +57,7 @@ function requireNative() {
57
57
  try {
58
58
  const binding = require("@oxfmt/binding-android-arm64");
59
59
  const bindingPackageVersion = require("@oxfmt/binding-android-arm64/package.json").version;
60
- if (bindingPackageVersion !== "0.50.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
60
+ if (bindingPackageVersion !== "0.51.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
61
61
  return binding;
62
62
  } catch (e) {
63
63
  loadErrors.push(e);
@@ -71,7 +71,7 @@ function requireNative() {
71
71
  try {
72
72
  const binding = require("@oxfmt/binding-android-arm-eabi");
73
73
  const bindingPackageVersion = require("@oxfmt/binding-android-arm-eabi/package.json").version;
74
- if (bindingPackageVersion !== "0.50.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
74
+ if (bindingPackageVersion !== "0.51.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
75
75
  return binding;
76
76
  } catch (e) {
77
77
  loadErrors.push(e);
@@ -86,7 +86,7 @@ function requireNative() {
86
86
  try {
87
87
  const binding = require("@oxfmt/binding-win32-x64-gnu");
88
88
  const bindingPackageVersion = require("@oxfmt/binding-win32-x64-gnu/package.json").version;
89
- if (bindingPackageVersion !== "0.50.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
89
+ if (bindingPackageVersion !== "0.51.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
90
90
  return binding;
91
91
  } catch (e) {
92
92
  loadErrors.push(e);
@@ -100,7 +100,7 @@ function requireNative() {
100
100
  try {
101
101
  const binding = require("@oxfmt/binding-win32-x64-msvc");
102
102
  const bindingPackageVersion = require("@oxfmt/binding-win32-x64-msvc/package.json").version;
103
- if (bindingPackageVersion !== "0.50.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
103
+ if (bindingPackageVersion !== "0.51.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
104
104
  return binding;
105
105
  } catch (e) {
106
106
  loadErrors.push(e);
@@ -115,7 +115,7 @@ function requireNative() {
115
115
  try {
116
116
  const binding = require("@oxfmt/binding-win32-ia32-msvc");
117
117
  const bindingPackageVersion = require("@oxfmt/binding-win32-ia32-msvc/package.json").version;
118
- if (bindingPackageVersion !== "0.50.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
118
+ if (bindingPackageVersion !== "0.51.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
119
119
  return binding;
120
120
  } catch (e) {
121
121
  loadErrors.push(e);
@@ -129,7 +129,7 @@ function requireNative() {
129
129
  try {
130
130
  const binding = require("@oxfmt/binding-win32-arm64-msvc");
131
131
  const bindingPackageVersion = require("@oxfmt/binding-win32-arm64-msvc/package.json").version;
132
- if (bindingPackageVersion !== "0.50.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
132
+ if (bindingPackageVersion !== "0.51.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
133
133
  return binding;
134
134
  } catch (e) {
135
135
  loadErrors.push(e);
@@ -144,7 +144,7 @@ function requireNative() {
144
144
  try {
145
145
  const binding = require("@oxfmt/binding-darwin-universal");
146
146
  const bindingPackageVersion = require("@oxfmt/binding-darwin-universal/package.json").version;
147
- if (bindingPackageVersion !== "0.50.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
147
+ if (bindingPackageVersion !== "0.51.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
148
148
  return binding;
149
149
  } catch (e) {
150
150
  loadErrors.push(e);
@@ -158,7 +158,7 @@ function requireNative() {
158
158
  try {
159
159
  const binding = require("@oxfmt/binding-darwin-x64");
160
160
  const bindingPackageVersion = require("@oxfmt/binding-darwin-x64/package.json").version;
161
- if (bindingPackageVersion !== "0.50.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
161
+ if (bindingPackageVersion !== "0.51.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
162
162
  return binding;
163
163
  } catch (e) {
164
164
  loadErrors.push(e);
@@ -172,7 +172,7 @@ function requireNative() {
172
172
  try {
173
173
  const binding = require("@oxfmt/binding-darwin-arm64");
174
174
  const bindingPackageVersion = require("@oxfmt/binding-darwin-arm64/package.json").version;
175
- if (bindingPackageVersion !== "0.50.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
175
+ if (bindingPackageVersion !== "0.51.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
176
176
  return binding;
177
177
  } catch (e) {
178
178
  loadErrors.push(e);
@@ -187,7 +187,7 @@ function requireNative() {
187
187
  try {
188
188
  const binding = require("@oxfmt/binding-freebsd-x64");
189
189
  const bindingPackageVersion = require("@oxfmt/binding-freebsd-x64/package.json").version;
190
- if (bindingPackageVersion !== "0.50.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
190
+ if (bindingPackageVersion !== "0.51.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
191
191
  return binding;
192
192
  } catch (e) {
193
193
  loadErrors.push(e);
@@ -201,7 +201,7 @@ function requireNative() {
201
201
  try {
202
202
  const binding = require("@oxfmt/binding-freebsd-arm64");
203
203
  const bindingPackageVersion = require("@oxfmt/binding-freebsd-arm64/package.json").version;
204
- if (bindingPackageVersion !== "0.50.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
204
+ if (bindingPackageVersion !== "0.51.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
205
205
  return binding;
206
206
  } catch (e) {
207
207
  loadErrors.push(e);
@@ -216,7 +216,7 @@ function requireNative() {
216
216
  try {
217
217
  const binding = require("@oxfmt/binding-linux-x64-musl");
218
218
  const bindingPackageVersion = require("@oxfmt/binding-linux-x64-musl/package.json").version;
219
- if (bindingPackageVersion !== "0.50.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
219
+ if (bindingPackageVersion !== "0.51.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
220
220
  return binding;
221
221
  } catch (e) {
222
222
  loadErrors.push(e);
@@ -230,7 +230,7 @@ function requireNative() {
230
230
  try {
231
231
  const binding = require("@oxfmt/binding-linux-x64-gnu");
232
232
  const bindingPackageVersion = require("@oxfmt/binding-linux-x64-gnu/package.json").version;
233
- if (bindingPackageVersion !== "0.50.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
233
+ if (bindingPackageVersion !== "0.51.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
234
234
  return binding;
235
235
  } catch (e) {
236
236
  loadErrors.push(e);
@@ -245,7 +245,7 @@ function requireNative() {
245
245
  try {
246
246
  const binding = require("@oxfmt/binding-linux-arm64-musl");
247
247
  const bindingPackageVersion = require("@oxfmt/binding-linux-arm64-musl/package.json").version;
248
- if (bindingPackageVersion !== "0.50.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
248
+ if (bindingPackageVersion !== "0.51.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
249
249
  return binding;
250
250
  } catch (e) {
251
251
  loadErrors.push(e);
@@ -259,7 +259,7 @@ function requireNative() {
259
259
  try {
260
260
  const binding = require("@oxfmt/binding-linux-arm64-gnu");
261
261
  const bindingPackageVersion = require("@oxfmt/binding-linux-arm64-gnu/package.json").version;
262
- if (bindingPackageVersion !== "0.50.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
262
+ if (bindingPackageVersion !== "0.51.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
263
263
  return binding;
264
264
  } catch (e) {
265
265
  loadErrors.push(e);
@@ -274,7 +274,7 @@ function requireNative() {
274
274
  try {
275
275
  const binding = require("@oxfmt/binding-linux-arm-musleabihf");
276
276
  const bindingPackageVersion = require("@oxfmt/binding-linux-arm-musleabihf/package.json").version;
277
- if (bindingPackageVersion !== "0.50.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
277
+ if (bindingPackageVersion !== "0.51.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
278
278
  return binding;
279
279
  } catch (e) {
280
280
  loadErrors.push(e);
@@ -288,7 +288,7 @@ function requireNative() {
288
288
  try {
289
289
  const binding = require("@oxfmt/binding-linux-arm-gnueabihf");
290
290
  const bindingPackageVersion = require("@oxfmt/binding-linux-arm-gnueabihf/package.json").version;
291
- if (bindingPackageVersion !== "0.50.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
291
+ if (bindingPackageVersion !== "0.51.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
292
292
  return binding;
293
293
  } catch (e) {
294
294
  loadErrors.push(e);
@@ -303,7 +303,7 @@ function requireNative() {
303
303
  try {
304
304
  const binding = require("@oxfmt/binding-linux-loong64-musl");
305
305
  const bindingPackageVersion = require("@oxfmt/binding-linux-loong64-musl/package.json").version;
306
- if (bindingPackageVersion !== "0.50.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
306
+ if (bindingPackageVersion !== "0.51.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
307
307
  return binding;
308
308
  } catch (e) {
309
309
  loadErrors.push(e);
@@ -317,7 +317,7 @@ function requireNative() {
317
317
  try {
318
318
  const binding = require("@oxfmt/binding-linux-loong64-gnu");
319
319
  const bindingPackageVersion = require("@oxfmt/binding-linux-loong64-gnu/package.json").version;
320
- if (bindingPackageVersion !== "0.50.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
320
+ if (bindingPackageVersion !== "0.51.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
321
321
  return binding;
322
322
  } catch (e) {
323
323
  loadErrors.push(e);
@@ -332,7 +332,7 @@ function requireNative() {
332
332
  try {
333
333
  const binding = require("@oxfmt/binding-linux-riscv64-musl");
334
334
  const bindingPackageVersion = require("@oxfmt/binding-linux-riscv64-musl/package.json").version;
335
- if (bindingPackageVersion !== "0.50.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
335
+ if (bindingPackageVersion !== "0.51.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
336
336
  return binding;
337
337
  } catch (e) {
338
338
  loadErrors.push(e);
@@ -346,7 +346,7 @@ function requireNative() {
346
346
  try {
347
347
  const binding = require("@oxfmt/binding-linux-riscv64-gnu");
348
348
  const bindingPackageVersion = require("@oxfmt/binding-linux-riscv64-gnu/package.json").version;
349
- if (bindingPackageVersion !== "0.50.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
349
+ if (bindingPackageVersion !== "0.51.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
350
350
  return binding;
351
351
  } catch (e) {
352
352
  loadErrors.push(e);
@@ -361,7 +361,7 @@ function requireNative() {
361
361
  try {
362
362
  const binding = require("@oxfmt/binding-linux-ppc64-gnu");
363
363
  const bindingPackageVersion = require("@oxfmt/binding-linux-ppc64-gnu/package.json").version;
364
- if (bindingPackageVersion !== "0.50.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
364
+ if (bindingPackageVersion !== "0.51.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
365
365
  return binding;
366
366
  } catch (e) {
367
367
  loadErrors.push(e);
@@ -375,7 +375,7 @@ function requireNative() {
375
375
  try {
376
376
  const binding = require("@oxfmt/binding-linux-s390x-gnu");
377
377
  const bindingPackageVersion = require("@oxfmt/binding-linux-s390x-gnu/package.json").version;
378
- if (bindingPackageVersion !== "0.50.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
378
+ if (bindingPackageVersion !== "0.51.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
379
379
  return binding;
380
380
  } catch (e) {
381
381
  loadErrors.push(e);
@@ -390,7 +390,7 @@ function requireNative() {
390
390
  try {
391
391
  const binding = require("@oxfmt/binding-openharmony-arm64");
392
392
  const bindingPackageVersion = require("@oxfmt/binding-openharmony-arm64/package.json").version;
393
- if (bindingPackageVersion !== "0.50.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
393
+ if (bindingPackageVersion !== "0.51.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
394
394
  return binding;
395
395
  } catch (e) {
396
396
  loadErrors.push(e);
@@ -404,7 +404,7 @@ function requireNative() {
404
404
  try {
405
405
  const binding = require("@oxfmt/binding-openharmony-x64");
406
406
  const bindingPackageVersion = require("@oxfmt/binding-openharmony-x64/package.json").version;
407
- if (bindingPackageVersion !== "0.50.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
407
+ if (bindingPackageVersion !== "0.51.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
408
408
  return binding;
409
409
  } catch (e) {
410
410
  loadErrors.push(e);
@@ -418,7 +418,7 @@ function requireNative() {
418
418
  try {
419
419
  const binding = require("@oxfmt/binding-openharmony-arm");
420
420
  const bindingPackageVersion = require("@oxfmt/binding-openharmony-arm/package.json").version;
421
- if (bindingPackageVersion !== "0.50.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.50.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
421
+ if (bindingPackageVersion !== "0.51.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.51.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
422
422
  return binding;
423
423
  } catch (e) {
424
424
  loadErrors.push(e);
@@ -0,0 +1,37 @@
1
+ import { createRequire } from "node:module";
2
+ //#region \0rolldown/runtime.js
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
10
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
11
+ var __exportAll = (all, no_symbols) => {
12
+ let target = {};
13
+ for (var name in all) __defProp(target, name, {
14
+ get: all[name],
15
+ enumerable: true
16
+ });
17
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
18
+ return target;
19
+ };
20
+ var __copyProps = (to, from, except, desc) => {
21
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
22
+ key = keys[i];
23
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
24
+ get: ((k) => from[k]).bind(null, key),
25
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
26
+ });
27
+ }
28
+ return to;
29
+ };
30
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
31
+ value: mod,
32
+ enumerable: true
33
+ }) : target, mod));
34
+ var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
+ var __require = /* @__PURE__ */ createRequire(import.meta.url);
36
+ //#endregion
37
+ export { __toCommonJS as a, __require as i, __esmMin as n, __toESM as o, __exportAll as r, __commonJSMin as t };
@@ -1,2 +1,2 @@
1
- import { a as sortTailwindClasses, n as formatEmbeddedDoc, r as formatFile, t as formatEmbeddedCode } from "./apis-CKvPKBJI.js";
1
+ import { i as sortTailwindClasses, n as formatEmbeddedDoc, r as formatFile, t as formatEmbeddedCode } from "./apis-H4bwlBNm.js";
2
2
  export { formatEmbeddedCode, formatEmbeddedDoc, formatFile, sortTailwindClasses };
package/dist/cli.js CHANGED
@@ -1,5 +1,4 @@
1
- import { i as resolvePlugins } from "./apis-CKvPKBJI.js";
2
- import { r as runCli } from "./bindings-Dj_YoR0Z.js";
1
+ import { r as runCli } from "./bindings-qpSSlUMn.js";
3
2
  import Tinypool from "tinypool";
4
3
  import { fileURLToPath, pathToFileURL } from "node:url";
5
4
  import { extname } from "node:path";
@@ -13,7 +12,6 @@ async function initExternalFormatter(numThreads) {
13
12
  runtime: "child_process",
14
13
  env: process.env
15
14
  });
16
- return resolvePlugins();
17
15
  }
18
16
  async function disposeExternalFormatter() {
19
17
  await pool?.destroy();
@@ -53,21 +51,13 @@ async function sortTailwindClasses(options, classes) {
53
51
  }, { name: "sortTailwindClasses" }).catch(() => null);
54
52
  }
55
53
  //#endregion
56
- //#region src-js/cli/js_config/node_version.ts
57
- const NODE_TYPESCRIPT_SUPPORT_RANGE = "^20.19.0 || >=22.12.0";
54
+ //#region ../shared/src-js/node_version.ts
55
+ const NODE_TYPESCRIPT_SUPPORT_RANGE = "^20.19.0 || >=22.18.0";
58
56
  const TS_MODULE_EXTENSIONS = new Set([
59
57
  ".ts",
60
58
  ".mts",
61
59
  ".cts"
62
60
  ]);
63
- function getUnsupportedTypeScriptModuleLoadHint(err, specifier, nodeVersion = process.version) {
64
- if (!isTypeScriptModuleSpecifier(specifier) || !isUnknownFileExtensionError(err)) return null;
65
- return `TypeScript config files require Node.js ${NODE_TYPESCRIPT_SUPPORT_RANGE}.\nDetected Node.js ${nodeVersion}.\nPlease upgrade Node.js or use a JSON config file instead.`;
66
- }
67
- function isTypeScriptModuleSpecifier(specifier) {
68
- const ext = extname(normalizeModuleSpecifierPath(specifier)).toLowerCase();
69
- return TS_MODULE_EXTENSIONS.has(ext);
70
- }
71
61
  function normalizeModuleSpecifierPath(specifier) {
72
62
  if (!specifier.startsWith("file:")) return specifier;
73
63
  try {
@@ -76,31 +66,60 @@ function normalizeModuleSpecifierPath(specifier) {
76
66
  return specifier;
77
67
  }
78
68
  }
69
+ function isTypeScriptModuleSpecifier(specifier) {
70
+ const ext = extname(normalizeModuleSpecifierPath(specifier)).toLowerCase();
71
+ return TS_MODULE_EXTENSIONS.has(ext);
72
+ }
79
73
  function isUnknownFileExtensionError(err) {
80
74
  if (err?.code === "ERR_UNKNOWN_FILE_EXTENSION") return true;
81
75
  const message = err?.message;
82
76
  return typeof message === "string" && /unknown(?: or unsupported)? file extension/i.test(message);
83
77
  }
78
+ function getErrorMessage(err) {
79
+ if (err instanceof Error) return err.message;
80
+ return String(err);
81
+ }
82
+ /**
83
+ * Returns a complete replacement string suitable for `Error.message` assignment
84
+ * (includes the original error message + appended hint), or `null` when the
85
+ * error is unrelated to TS module loading. Callers should overwrite, not append.
86
+ */
87
+ function getUnsupportedTypeScriptModuleLoadHintForError(err, specifier, nodeVersion = process.version) {
88
+ if (!isTypeScriptModuleSpecifier(specifier) || !isUnknownFileExtensionError(err)) return null;
89
+ return `${getErrorMessage(err)}\n\nTypeScript config files require Node.js ${NODE_TYPESCRIPT_SUPPORT_RANGE}.\nDetected Node.js ${nodeVersion}.\nPlease upgrade Node.js or use a JSON config file instead.`;
90
+ }
84
91
  //#endregion
85
- //#region src-js/cli/js_config/index.ts
86
- const isObject = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
92
+ //#region ../shared/src-js/js_config.ts
87
93
  /**
88
- * Load a JavaScript/TypeScript config file and import it.
94
+ * Import a JS/TS config file and return its `default` export.
95
+ *
96
+ * - Bypasses Node.js module cache (uses `?cache=<key>`) so changed files reload (used for LSP).
97
+ * - On `ERR_UNKNOWN_FILE_EXTENSION` for TS specifiers, overwrites `err.message` with a
98
+ * Node.js upgrade hint that already includes the original message.
89
99
  *
90
- * Uses native Node.js `import()` to evaluate the config file.
91
- * The config file should have a default export containing the oxfmt configuration object.
100
+ * @param path - Absolute path to the JS/TS config file
101
+ * @param cacheKey - Cache-busting key.
102
+ * Callers decide whether to use a fresh value per call or share one across a batch.
103
+ * @throws When the file has no `default` export,
104
+ * or import fails (with rewritten message for unsupported TS module load).
92
105
  */
93
- async function importJsConfig(path) {
106
+ async function importJsConfig(path, cacheKey) {
94
107
  const fileUrl = pathToFileURL(path);
95
- fileUrl.searchParams.set("cache", Date.now().toString());
96
- const { default: config } = await import(fileUrl.href).catch((err) => {
97
- const hint = getUnsupportedTypeScriptModuleLoadHint(err, path);
98
- if (hint && err instanceof Error) err.message += `\n\n${hint}`;
108
+ fileUrl.searchParams.set("cache", cacheKey.toString());
109
+ let module;
110
+ try {
111
+ module = await import(fileUrl.href);
112
+ } catch (err) {
113
+ const hint = getUnsupportedTypeScriptModuleLoadHintForError(err, path);
114
+ if (hint && err instanceof Error) err.message = hint;
99
115
  throw err;
100
- });
101
- if (config === void 0) throw new Error("Configuration file has no default export.");
102
- return config;
116
+ }
117
+ if (module.default === void 0) throw new Error("Configuration file has no default export.");
118
+ return module.default;
103
119
  }
120
+ //#endregion
121
+ //#region src-js/cli/js_config.ts
122
+ const isObject = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
104
123
  /**
105
124
  * Load and validate a standard oxfmt JS/TS config file.
106
125
  * The default export must be a plain object containing oxfmt options.
@@ -109,7 +128,7 @@ async function importJsConfig(path) {
109
128
  * @returns Config object
110
129
  */
111
130
  async function loadJsConfig(path) {
112
- const config = await importJsConfig(path);
131
+ const config = await importJsConfig(path, Date.now());
113
132
  if (!isObject(config)) throw new Error("Configuration file must have a default export that is an object.");
114
133
  return config;
115
134
  }
@@ -121,7 +140,7 @@ const VITE_OXFMT_CONFIG_FIELD = "fmt";
121
140
  * @returns Config object from `.fmt` field, or `null` to signal "skip"
122
141
  */
123
142
  async function loadVitePlusConfig(path) {
124
- const config = await importJsConfig(path);
143
+ const config = await importJsConfig(path, Date.now());
125
144
  if (!isObject(config)) return null;
126
145
  const fmtConfig = config[VITE_OXFMT_CONFIG_FIELD];
127
146
  if (fmtConfig === void 0) return null;
@@ -137,15 +156,15 @@ async function loadVitePlusConfig(path) {
137
156
  if (args.includes("--lsp")) process.stdout.write = process.stderr.write.bind(process.stderr);
138
157
  const [mode, exitCode] = await runCli(args, process.env.VP_VERSION ? loadVitePlusConfig : loadJsConfig, initExternalFormatter, formatFile, formatEmbeddedCode, formatEmbeddedDoc, sortTailwindClasses);
139
158
  if (mode === "init") {
140
- await import("./init-C3nxU_Wc.js").then((m) => m.runInit());
159
+ await import("./init-BbKOMZ57.js").then((m) => m.runInit());
141
160
  return;
142
161
  }
143
162
  if (mode === "migrate:prettier") {
144
- await import("./migrate-prettier-DLfviW85.js").then((m) => m.runMigratePrettier());
163
+ await import("./migrate-prettier-CBzqnxHw.js").then((m) => m.runMigratePrettier());
145
164
  return;
146
165
  }
147
166
  if (mode === "migrate:biome") {
148
- await import("./migrate-biome-DclTzwKW.js").then((m) => m.runMigrateBiome());
167
+ await import("./migrate-biome-BMqs7-eg.js").then((m) => m.runMigrateBiome());
149
168
  return;
150
169
  }
151
170
  await disposeExternalFormatter();
@@ -1,12 +1,12 @@
1
- import { d as __toESM } from "./apis-CKvPKBJI.js";
2
- import { n as init_babel, parsers as ra, t as babel_exports } from "./babel-DaNjvh9L.js";
3
- import index_exports, { t as init_prettier } from "./prettier-Cw36juP9.js";
4
- import { a as sortClasses, b as __toESM$1, c as cacheForDirs, d as expiringMap, f as loadIfExists, g as __commonJSMin, i as sortClassList, l as spliceChangesIntoString, n as error, o as warn, p as maybeResolve, r as getTailwindConfig$1, u as visit } from "./sorter-BZkvDMjt-DpGe0QK9.js";
5
- import { parsers as fn, t as init_angular } from "./angular-DtI-eDW8.js";
6
- import { n as postcss_exports, parsers as en, t as init_postcss } from "./postcss-D-ql-dm8.js";
1
+ import { o as __toESM } from "./chunk-HkwdBwDg.js";
2
+ import { n as init_babel, parsers as ra, t as babel_exports } from "./babel-Cs312VeV.js";
3
+ import index_exports, { t as init_prettier } from "./prettier-D7Ly-aG0.js";
4
+ import { a as sortClasses, b as __toESM$1, c as cacheForDirs, d as expiringMap, f as loadIfExists, g as __commonJSMin, i as sortClassList, l as spliceChangesIntoString, n as error, o as warn, p as maybeResolve, r as getTailwindConfig$1, u as visit } from "./sorter-BZkvDMjt-r7M4pM9t.js";
5
+ import { parsers as fn, t as init_angular } from "./angular-BzDc3wVg.js";
6
+ import { n as postcss_exports, parsers as en, t as init_postcss } from "./postcss-CS83Slco.js";
7
7
  import * as path from "node:path";
8
8
  import { isAbsolute } from "path";
9
- //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier-plugin-svelte@3.5.2_prettie_981079e52d31d99dd529b9a262e0d726/node_modules/prettier-plugin-tailwindcss/dist/index.mjs
9
+ //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier-plugin-svelte@3.5.2_prettie_a08864e9b63fbbe60e61e20100abcb82/node_modules/prettier-plugin-tailwindcss/dist/index.mjs
10
10
  init_angular();
11
11
  init_babel();
12
12
  init_postcss();
@@ -1049,7 +1049,7 @@ const { parsers, printers } = createPlugin([
1049
1049
  staticAttrs: ["class"],
1050
1050
  load: [{
1051
1051
  name: "prettier/plugins/html",
1052
- importer: () => import("./html-DkcPxRXg.js")
1052
+ importer: () => import("./html-ENhiK7MR.js")
1053
1053
  }],
1054
1054
  compatible: ["prettier-plugin-organize-attributes"],
1055
1055
  parsers: {
@@ -1064,7 +1064,7 @@ const { parsers, printers } = createPlugin([
1064
1064
  staticAttrs: ["class"],
1065
1065
  load: [{
1066
1066
  name: "prettier/plugins/glimmer",
1067
- importer: () => import("./glimmer-D_zkI0w_.js")
1067
+ importer: () => import("./glimmer-C2ccnwyy.js")
1068
1068
  }],
1069
1069
  parsers: { glimmer: {} },
1070
1070
  transform: transformGlimmer
@@ -1096,19 +1096,19 @@ const { parsers, printers } = createPlugin([
1096
1096
  __js_expression: { load: [babel_exports] },
1097
1097
  typescript: { load: [{
1098
1098
  name: "prettier/plugins/typescript",
1099
- importer: () => import("./typescript-C_eN_ThF.js")
1099
+ importer: () => import("./typescript-DkgFgfZO.js")
1100
1100
  }] },
1101
1101
  meriyah: { load: [{
1102
1102
  name: "prettier/plugins/meriyah",
1103
- importer: () => import("./meriyah-BGPf00Rn.js")
1103
+ importer: () => import("./meriyah-C-N-xeFc.js")
1104
1104
  }] },
1105
1105
  acorn: { load: [{
1106
1106
  name: "prettier/plugins/acorn",
1107
- importer: () => import("./acorn-sBRpswSh.js")
1107
+ importer: () => import("./acorn-Cz3eAoi8.js")
1108
1108
  }] },
1109
1109
  flow: { load: [{
1110
1110
  name: "prettier/plugins/flow",
1111
- importer: () => import("./flow-c9AjoQam.js")
1111
+ importer: () => import("./flow-Bj4lBR-Y.js")
1112
1112
  }] },
1113
1113
  oxc: { load: [{
1114
1114
  name: "@prettier/plugin-oxc",
@@ -1139,7 +1139,7 @@ const { parsers, printers } = createPlugin([
1139
1139
  staticAttrs: ["class"],
1140
1140
  load: [{
1141
1141
  name: "prettier-plugin-svelte",
1142
- importer: () => import("./plugin-DOdiccQR.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1))
1142
+ importer: () => import("./plugin-DiRKvkOT.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1))
1143
1143
  }],
1144
1144
  parsers: { svelte: {} },
1145
1145
  printers: { "svelte-ast": {} },
@@ -1,4 +1,4 @@
1
- import { s as __esmMin } from "./apis-CKvPKBJI.js";
1
+ import { n as __esmMin } from "./chunk-HkwdBwDg.js";
2
2
  //#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/plugins/estree.mjs
3
3
  function ka(e) {
4
4
  return this[e < 0 ? this.length + e : e];
@@ -1,4 +1,4 @@
1
- import { s as __esmMin } from "./apis-CKvPKBJI.js";
1
+ import { n as __esmMin } from "./chunk-HkwdBwDg.js";
2
2
  //#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/plugins/flow.mjs
3
3
  function iI0(a0, ox) {
4
4
  let Yx = /* @__PURE__ */ new SyntaxError(a0 + " (" + ox.loc.start.line + ":" + ox.loc.start.column + ")");
@@ -1,4 +1,4 @@
1
- import { s as __esmMin } from "./apis-CKvPKBJI.js";
1
+ import { n as __esmMin } from "./chunk-HkwdBwDg.js";
2
2
  //#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/plugins/glimmer.mjs
3
3
  function Yn(e) {
4
4
  return this[e < 0 ? this.length + e : e];
@@ -1,4 +1,4 @@
1
- import { s as __esmMin } from "./apis-CKvPKBJI.js";
1
+ import { n as __esmMin } from "./chunk-HkwdBwDg.js";
2
2
  //#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/plugins/graphql.mjs
3
3
  function x(e) {
4
4
  return S(e), {
@@ -1,4 +1,4 @@
1
- import { s as __esmMin } from "./apis-CKvPKBJI.js";
1
+ import { n as __esmMin } from "./chunk-HkwdBwDg.js";
2
2
  //#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/plugins/html.mjs
3
3
  function ns(e) {
4
4
  return this[e < 0 ? this.length + e : e];
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { a as sortTailwindClasses, i as resolvePlugins, n as formatEmbeddedDoc, r as formatFile, t as formatEmbeddedCode } from "./apis-CKvPKBJI.js";
2
- import { n as jsTextToDoc$1, t as format$1 } from "./bindings-Dj_YoR0Z.js";
1
+ import { n as jsTextToDoc$1, t as format$1 } from "./bindings-qpSSlUMn.js";
2
+ import { i as sortTailwindClasses, n as formatEmbeddedDoc, r as formatFile, t as formatEmbeddedCode } from "./apis-H4bwlBNm.js";
3
3
  //#region src-js/index.ts
4
4
  /**
5
5
  * Define an oxfmt configuration with type inference.
@@ -13,7 +13,7 @@ function defineConfig(config) {
13
13
  async function format(fileName, sourceText, options) {
14
14
  if (typeof fileName !== "string") throw new TypeError("`fileName` must be a string");
15
15
  if (typeof sourceText !== "string") throw new TypeError("`sourceText` must be a string");
16
- return format$1(fileName, sourceText, options ?? {}, resolvePlugins, (options, code) => formatFile({
16
+ return format$1(fileName, sourceText, options ?? {}, (options, code) => formatFile({
17
17
  options,
18
18
  code
19
19
  }), (options, code) => formatEmbeddedCode({
@@ -31,7 +31,7 @@ async function format(fileName, sourceText, options) {
31
31
  * Format a JS/TS snippet for Prettier `textToDoc()` plugin flow.
32
32
  */
33
33
  async function jsTextToDoc(sourceExt, sourceText, oxfmtPluginOptionsJson, parentContext) {
34
- return jsTextToDoc$1(sourceExt, sourceText, oxfmtPluginOptionsJson, parentContext, resolvePlugins, (_options, _code) => Promise.reject(), (options, code) => formatEmbeddedCode({
34
+ return jsTextToDoc$1(sourceExt, sourceText, oxfmtPluginOptionsJson, parentContext, (_options, _code) => Promise.reject(), (options, code) => formatEmbeddedCode({
35
35
  options,
36
36
  code
37
37
  }), (options, texts) => formatEmbeddedDoc({
@@ -1,4 +1,4 @@
1
- import { i as saveOxfmtrcFile, n as exitWithError, r as hasOxfmtrcFile, t as createBlankOxfmtrcFile } from "./shared-BtJbjkue.js";
1
+ import { i as saveOxfmtrcFile, n as exitWithError, r as hasOxfmtrcFile, t as createBlankOxfmtrcFile } from "./shared-BTEY2VsW.js";
2
2
  //#region src-js/cli/migration/init.ts
3
3
  /**
4
4
  * Run the `--init` command to scaffold a default `.oxfmtrc.json` file.
@@ -1,6 +1,6 @@
1
- import { b as __toESM, g as __commonJSMin, y as __require } from "./sorter-BZkvDMjt-DpGe0QK9.js";
1
+ import { b as __toESM, g as __commonJSMin, y as __require } from "./sorter-BZkvDMjt-r7M4pM9t.js";
2
2
  import { createRequire } from "node:module";
3
- //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier-plugin-svelte@3.5.2_prettie_981079e52d31d99dd529b9a262e0d726/node_modules/prettier-plugin-tailwindcss/dist/jiti-Bb1dT6Cw.mjs
3
+ //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier-plugin-svelte@3.5.2_prettie_a08864e9b63fbbe60e61e20100abcb82/node_modules/prettier-plugin-tailwindcss/dist/jiti-Bb1dT6Cw.mjs
4
4
  var require_jiti = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5
5
  (() => {
6
6
  var e = { "./node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist lazy recursive": function(e) {
@@ -1,4 +1,4 @@
1
- import { s as __esmMin } from "./apis-CKvPKBJI.js";
1
+ import { n as __esmMin } from "./chunk-HkwdBwDg.js";
2
2
  //#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/plugins/markdown.mjs
3
3
  function yl(e) {
4
4
  return this[e < 0 ? this.length + e : e];
@@ -1,4 +1,4 @@
1
- import { s as __esmMin } from "./apis-CKvPKBJI.js";
1
+ import { n as __esmMin } from "./chunk-HkwdBwDg.js";
2
2
  //#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/plugins/meriyah.mjs
3
3
  function Se(e) {
4
4
  return e <= 127 ? _2[e] > 0 : Ct(e);
@@ -1,4 +1,4 @@
1
- import { i as saveOxfmtrcFile, n as exitWithError, r as hasOxfmtrcFile, t as createBlankOxfmtrcFile } from "./shared-BtJbjkue.js";
1
+ import { i as saveOxfmtrcFile, n as exitWithError, r as hasOxfmtrcFile, t as createBlankOxfmtrcFile } from "./shared-BTEY2VsW.js";
2
2
  import { join } from "node:path";
3
3
  import { readFile } from "node:fs/promises";
4
4
  //#region src-js/cli/migration/migrate-biome.ts
@@ -1,4 +1,4 @@
1
- import { i as saveOxfmtrcFile, n as exitWithError, r as hasOxfmtrcFile, t as createBlankOxfmtrcFile } from "./shared-BtJbjkue.js";
1
+ import { i as saveOxfmtrcFile, n as exitWithError, r as hasOxfmtrcFile, t as createBlankOxfmtrcFile } from "./shared-BTEY2VsW.js";
2
2
  import { join } from "node:path";
3
3
  import { readFile } from "node:fs/promises";
4
4
  //#region src-js/cli/migration/migrate-prettier.ts
@@ -9,7 +9,7 @@ import { readFile } from "node:fs/promises";
9
9
  async function runMigratePrettier() {
10
10
  const cwd = process.cwd();
11
11
  if (await hasOxfmtrcFile(cwd)) return exitWithError("Oxfmt configuration file already exists.");
12
- const { resolveConfigFile, resolveConfig } = await import("./prettier-Cw36juP9.js");
12
+ const { resolveConfigFile, resolveConfig } = await import("./prettier-D7Ly-aG0.js");
13
13
  const prettierConfigPath = await resolveConfigFile(join(cwd, "dummy.js"));
14
14
  if (!prettierConfigPath) {
15
15
  console.log("No Prettier configuration file found.");
@@ -1,7 +1,7 @@
1
- import { l as __require, o as __commonJSMin, u as __toCommonJS } from "./apis-CKvPKBJI.js";
2
- import { n as init_babel, t as babel_exports } from "./babel-DaNjvh9L.js";
3
- import { n as prettier_exports, t as init_prettier } from "./prettier-Cw36juP9.js";
4
- //#region ../../node_modules/.pnpm/prettier-plugin-svelte@3.5.2_prettier@3.8.3_svelte@5.55.5_@typescript-eslint+types@8.59.2_/node_modules/prettier-plugin-svelte/plugin.js
1
+ import { a as __toCommonJS, i as __require, t as __commonJSMin } from "./chunk-HkwdBwDg.js";
2
+ import { n as init_babel, t as babel_exports } from "./babel-Cs312VeV.js";
3
+ import { n as prettier_exports, t as init_prettier } from "./prettier-D7Ly-aG0.js";
4
+ //#region ../../node_modules/.pnpm/prettier-plugin-svelte@3.5.2_prettier@3.8.3_svelte@5.55.7_@typescript-eslint+types@8.59.3_/node_modules/prettier-plugin-svelte/plugin.js
5
5
  var require_plugin = /* @__PURE__ */ __commonJSMin(((exports) => {
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  var prettierPluginBabel = (init_babel(), __toCommonJS(babel_exports));
@@ -1,4 +1,4 @@
1
- import { c as __exportAll, s as __esmMin } from "./apis-CKvPKBJI.js";
1
+ import { n as __esmMin, r as __exportAll } from "./chunk-HkwdBwDg.js";
2
2
  //#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/plugins/postcss.mjs
3
3
  var postcss_exports = /* @__PURE__ */ __exportAll({
4
4
  default: () => _l,
@@ -1,4 +1,4 @@
1
- import { c as __exportAll, s as __esmMin } from "./apis-CKvPKBJI.js";
1
+ import { n as __esmMin, r as __exportAll } from "./chunk-HkwdBwDg.js";
2
2
  import { builtinModules, createRequire } from "module";
3
3
  import * as url from "url";
4
4
  import url2, { fileURLToPath, pathToFileURL } from "url";
@@ -2402,7 +2402,7 @@ async function loadConfigFromPackageYaml(file) {
2402
2402
  }
2403
2403
  async function loadYaml(file) {
2404
2404
  const content = await read_file_default(file);
2405
- if (!parseYaml) ({__parsePrettierYamlConfig: parseYaml} = await import("./yaml-Bqxyk-13.js"));
2405
+ if (!parseYaml) ({__parsePrettierYamlConfig: parseYaml} = await import("./yaml-Ddi9JTUZ.js"));
2406
2406
  try {
2407
2407
  return parseYaml(content);
2408
2408
  } catch (error) {
@@ -15380,7 +15380,7 @@ ${codeblock}`, options8);
15380
15380
  proseWrap: common_options_evaluate_default.proseWrap
15381
15381
  };
15382
15382
  estreePlugin = createParsersAndPrinters([{
15383
- importPlugin: () => import("./estree-CzfNsl8m.js"),
15383
+ importPlugin: () => import("./estree-BL2Xy2uB.js"),
15384
15384
  printers: ["estree", "estree-json"]
15385
15385
  }]);
15386
15386
  options7 = {
@@ -15403,11 +15403,11 @@ ${codeblock}`, options8);
15403
15403
  ];
15404
15404
  ({parsers, printers} = createParsersAndPrinters([
15405
15405
  {
15406
- importPlugin: () => import("./acorn-sBRpswSh.js"),
15406
+ importPlugin: () => import("./acorn-Cz3eAoi8.js"),
15407
15407
  parsers: ["acorn", "espree"]
15408
15408
  },
15409
15409
  {
15410
- importPlugin: () => import("./angular-DtI-eDW8.js"),
15410
+ importPlugin: () => import("./angular-BzDc3wVg.js"),
15411
15411
  parsers: [
15412
15412
  "__ng_action",
15413
15413
  "__ng_binding",
@@ -15416,7 +15416,7 @@ ${codeblock}`, options8);
15416
15416
  ]
15417
15417
  },
15418
15418
  {
15419
- importPlugin: () => import("./babel-DaNjvh9L.js"),
15419
+ importPlugin: () => import("./babel-Cs312VeV.js"),
15420
15420
  parsers: [
15421
15421
  "babel",
15422
15422
  "babel-flow",
@@ -15435,21 +15435,21 @@ ${codeblock}`, options8);
15435
15435
  ]
15436
15436
  },
15437
15437
  {
15438
- importPlugin: () => import("./flow-c9AjoQam.js"),
15438
+ importPlugin: () => import("./flow-Bj4lBR-Y.js"),
15439
15439
  parsers: ["flow"]
15440
15440
  },
15441
15441
  {
15442
- importPlugin: () => import("./glimmer-D_zkI0w_.js"),
15442
+ importPlugin: () => import("./glimmer-C2ccnwyy.js"),
15443
15443
  parsers: ["glimmer"],
15444
15444
  printers: ["glimmer"]
15445
15445
  },
15446
15446
  {
15447
- importPlugin: () => import("./graphql-BFXkB4Nq.js"),
15447
+ importPlugin: () => import("./graphql-D73FSqwO.js"),
15448
15448
  parsers: ["graphql"],
15449
15449
  printers: ["graphql"]
15450
15450
  },
15451
15451
  {
15452
- importPlugin: () => import("./html-DkcPxRXg.js"),
15452
+ importPlugin: () => import("./html-ENhiK7MR.js"),
15453
15453
  parsers: [
15454
15454
  "html",
15455
15455
  "angular",
@@ -15460,7 +15460,7 @@ ${codeblock}`, options8);
15460
15460
  printers: ["html"]
15461
15461
  },
15462
15462
  {
15463
- importPlugin: () => import("./markdown-DVLNmbQg.js"),
15463
+ importPlugin: () => import("./markdown-CDTH7TpJ.js"),
15464
15464
  parsers: [
15465
15465
  "markdown",
15466
15466
  "mdx",
@@ -15469,11 +15469,11 @@ ${codeblock}`, options8);
15469
15469
  printers: ["mdast"]
15470
15470
  },
15471
15471
  {
15472
- importPlugin: () => import("./meriyah-BGPf00Rn.js"),
15472
+ importPlugin: () => import("./meriyah-C-N-xeFc.js"),
15473
15473
  parsers: ["meriyah"]
15474
15474
  },
15475
15475
  {
15476
- importPlugin: () => import("./postcss-D-ql-dm8.js"),
15476
+ importPlugin: () => import("./postcss-CS83Slco.js"),
15477
15477
  parsers: [
15478
15478
  "css",
15479
15479
  "less",
@@ -15482,11 +15482,11 @@ ${codeblock}`, options8);
15482
15482
  printers: ["postcss"]
15483
15483
  },
15484
15484
  {
15485
- importPlugin: () => import("./typescript-C_eN_ThF.js"),
15485
+ importPlugin: () => import("./typescript-DkgFgfZO.js"),
15486
15486
  parsers: ["typescript"]
15487
15487
  },
15488
15488
  {
15489
- importPlugin: () => import("./yaml-Bqxyk-13.js"),
15489
+ importPlugin: () => import("./yaml-Ddi9JTUZ.js"),
15490
15490
  parsers: ["yaml"],
15491
15491
  printers: ["yaml"]
15492
15492
  }
@@ -4,7 +4,7 @@ import * as path from "node:path";
4
4
  import { dirname, resolve } from "path";
5
5
  import { readdirSync, statSync } from "fs";
6
6
  import fs from "node:fs";
7
- //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier-plugin-svelte@3.5.2_prettie_981079e52d31d99dd529b9a262e0d726/node_modules/prettier-plugin-tailwindcss/dist/chunk-DSjvVL_1.mjs
7
+ //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier-plugin-svelte@3.5.2_prettie_a08864e9b63fbbe60e61e20100abcb82/node_modules/prettier-plugin-tailwindcss/dist/chunk-DSjvVL_1.mjs
8
8
  var __create = Object.create;
9
9
  var __defProp = Object.defineProperty;
10
10
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -38,7 +38,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
38
38
  }) : target, mod));
39
39
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
40
40
  //#endregion
41
- //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier-plugin-svelte@3.5.2_prettie_981079e52d31d99dd529b9a262e0d726/node_modules/prettier-plugin-tailwindcss/dist/resolve-pWjAK-4f.mjs
41
+ //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier-plugin-svelte@3.5.2_prettie_a08864e9b63fbbe60e61e20100abcb82/node_modules/prettier-plugin-tailwindcss/dist/resolve-pWjAK-4f.mjs
42
42
  function expiringMap(duration) {
43
43
  let map = /* @__PURE__ */ new Map();
44
44
  return {
@@ -4232,7 +4232,7 @@ function resolveCssFrom(base, id) {
4232
4232
  return cssResolver.resolveSync({}, base, id) || id;
4233
4233
  }
4234
4234
  //#endregion
4235
- //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier-plugin-svelte@3.5.2_prettie_981079e52d31d99dd529b9a262e0d726/node_modules/prettier-plugin-tailwindcss/dist/utils-D8dQkKEd.mjs
4235
+ //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier-plugin-svelte@3.5.2_prettie_a08864e9b63fbbe60e61e20100abcb82/node_modules/prettier-plugin-tailwindcss/dist/utils-D8dQkKEd.mjs
4236
4236
  function isNodeLike(value) {
4237
4237
  return typeof (value === null || value === void 0 ? void 0 : value.type) === "string";
4238
4238
  }
@@ -4311,7 +4311,7 @@ function cacheForDirs(cache, inputDir, value, targetDir, makeKey = (dir) => dir)
4311
4311
  }
4312
4312
  }
4313
4313
  //#endregion
4314
- //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier-plugin-svelte@3.5.2_prettie_981079e52d31d99dd529b9a262e0d726/node_modules/prettier-plugin-tailwindcss/dist/sorter-BZkvDMjt.mjs
4314
+ //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier-plugin-svelte@3.5.2_prettie_a08864e9b63fbbe60e61e20100abcb82/node_modules/prettier-plugin-tailwindcss/dist/sorter-BZkvDMjt.mjs
4315
4315
  let seen = /* @__PURE__ */ new Set();
4316
4316
  function warn(key, arg, ...args) {
4317
4317
  if (seen.has(key)) return;
@@ -4410,14 +4410,14 @@ async function getTailwindConfig(options) {
4410
4410
  if (!stylesheet && !(mod === null || mod === void 0 ? void 0 : mod.__unstable__loadDesignSystem)) jsConfig = jsConfig ?? findClosestJsConfig(inputDir);
4411
4411
  if (jsConfig) {
4412
4412
  if (!stylesheet) return pathToApiMap.remember(`${pkgDir}:${jsConfig}`, async () => {
4413
- const { loadV3 } = await import("./v3-D-mr2VVh-CU7hQIit.js");
4413
+ const { loadV3 } = await import("./v3-D-mr2VVh-DBBWnwM8.js");
4414
4414
  return loadV3(pkgDir, jsConfig);
4415
4415
  });
4416
4416
  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.`);
4417
4417
  }
4418
4418
  if (mod && !mod.__unstable__loadDesignSystem) {
4419
4419
  if (!stylesheet) return pathToApiMap.remember(`${pkgDir}:${jsConfig}`, async () => {
4420
- const { loadV3 } = await import("./v3-D-mr2VVh-CU7hQIit.js");
4420
+ const { loadV3 } = await import("./v3-D-mr2VVh-DBBWnwM8.js");
4421
4421
  return loadV3(pkgDir, jsConfig);
4422
4422
  });
4423
4423
  mod = null;
@@ -4425,7 +4425,7 @@ async function getTailwindConfig(options) {
4425
4425
  }
4426
4426
  if (mod && mod.__unstable__loadDesignSystem && pkgDir) stylesheet ?? (stylesheet = `${pkgDir}/theme.css`);
4427
4427
  return pathToApiMap.remember(`${pkgDir}:${stylesheet}`, async () => {
4428
- const { loadV4 } = await import("./v4-C-HWEQJm-C8EWwksG.js");
4428
+ const { loadV4 } = await import("./v4-C-HWEQJm-OZwT-Lc8.js");
4429
4429
  return loadV4(mod, stylesheet);
4430
4430
  });
4431
4431
  }
@@ -1,2 +1,2 @@
1
- import { r as getTailwindConfig, t as createSorter } from "./sorter-BZkvDMjt-DpGe0QK9.js";
1
+ import { r as getTailwindConfig, t as createSorter } from "./sorter-BZkvDMjt-r7M4pM9t.js";
2
2
  export { createSorter, getTailwindConfig };
@@ -1,4 +1,4 @@
1
- import { s as __esmMin } from "./apis-CKvPKBJI.js";
1
+ import { n as __esmMin } from "./chunk-HkwdBwDg.js";
2
2
  //#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/plugins/typescript.mjs
3
3
  function e_(e) {
4
4
  return e !== void 0 ? e.length : 0;
@@ -1,8 +1,8 @@
1
- import { _ as __esmMin, b as __toESM, g as __commonJSMin, s as bigSign, y as __require } from "./sorter-BZkvDMjt-DpGe0QK9.js";
2
- import { t as createJiti } from "./jiti-Bb1dT6Cw-C0N20Za1.js";
1
+ import { _ as __esmMin, b as __toESM, g as __commonJSMin, s as bigSign, y as __require } from "./sorter-BZkvDMjt-r7M4pM9t.js";
2
+ import { t as createJiti } from "./jiti-Bb1dT6Cw-BtDs_aWX.js";
3
3
  import { fileURLToPath, pathToFileURL } from "node:url";
4
4
  import * as path from "node:path";
5
- //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier-plugin-svelte@3.5.2_prettie_981079e52d31d99dd529b9a262e0d726/node_modules/prettier-plugin-tailwindcss/dist/v3-D-mr2VVh.mjs
5
+ //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier-plugin-svelte@3.5.2_prettie_a08864e9b63fbbe60e61e20100abcb82/node_modules/prettier-plugin-tailwindcss/dist/v3-D-mr2VVh.mjs
6
6
  var getFilename, __filename;
7
7
  var init_esm_shims = __esmMin((() => {
8
8
  getFilename = () => fileURLToPath(import.meta.url);
@@ -1,9 +1,9 @@
1
- import { h as resolveJsFrom, m as resolveCssFrom, v as __exportAll } from "./sorter-BZkvDMjt-DpGe0QK9.js";
2
- import { t as createJiti } from "./jiti-Bb1dT6Cw-C0N20Za1.js";
1
+ import { h as resolveJsFrom, m as resolveCssFrom, v as __exportAll } from "./sorter-BZkvDMjt-r7M4pM9t.js";
2
+ import { t as createJiti } from "./jiti-Bb1dT6Cw-BtDs_aWX.js";
3
3
  import { pathToFileURL } from "node:url";
4
4
  import * as path from "node:path";
5
5
  import * as fs from "node:fs/promises";
6
- //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier-plugin-svelte@3.5.2_prettie_981079e52d31d99dd529b9a262e0d726/node_modules/prettier-plugin-tailwindcss/dist/v4-C-HWEQJm.mjs
6
+ //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier-plugin-svelte@3.5.2_prettie_a08864e9b63fbbe60e61e20100abcb82/node_modules/prettier-plugin-tailwindcss/dist/v4-C-HWEQJm.mjs
7
7
  var l$1 = {
8
8
  inherit: "inherit",
9
9
  current: "currentcolor",
@@ -1,4 +1,4 @@
1
- import { s as __esmMin } from "./apis-CKvPKBJI.js";
1
+ import { n as __esmMin } from "./chunk-HkwdBwDg.js";
2
2
  //#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/plugins/yaml.mjs
3
3
  function Ri(t) {
4
4
  return this[t < 0 ? this.length + t : t];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxfmt",
3
- "version": "0.50.0",
3
+ "version": "0.51.0",
4
4
  "description": "Formatter for the JavaScript Oxidation Compiler",
5
5
  "keywords": [
6
6
  "formatter",
@@ -82,24 +82,24 @@
82
82
  },
83
83
  "preferUnplugged": true,
84
84
  "optionalDependencies": {
85
- "@oxfmt/binding-darwin-arm64": "0.50.0",
86
- "@oxfmt/binding-android-arm64": "0.50.0",
87
- "@oxfmt/binding-win32-arm64-msvc": "0.50.0",
88
- "@oxfmt/binding-linux-arm64-gnu": "0.50.0",
89
- "@oxfmt/binding-linux-arm64-musl": "0.50.0",
90
- "@oxfmt/binding-openharmony-arm64": "0.50.0",
91
- "@oxfmt/binding-android-arm-eabi": "0.50.0",
92
- "@oxfmt/binding-linux-arm-gnueabihf": "0.50.0",
93
- "@oxfmt/binding-linux-arm-musleabihf": "0.50.0",
94
- "@oxfmt/binding-win32-ia32-msvc": "0.50.0",
95
- "@oxfmt/binding-linux-ppc64-gnu": "0.50.0",
96
- "@oxfmt/binding-linux-riscv64-gnu": "0.50.0",
97
- "@oxfmt/binding-linux-riscv64-musl": "0.50.0",
98
- "@oxfmt/binding-linux-s390x-gnu": "0.50.0",
99
- "@oxfmt/binding-darwin-x64": "0.50.0",
100
- "@oxfmt/binding-win32-x64-msvc": "0.50.0",
101
- "@oxfmt/binding-freebsd-x64": "0.50.0",
102
- "@oxfmt/binding-linux-x64-gnu": "0.50.0",
103
- "@oxfmt/binding-linux-x64-musl": "0.50.0"
85
+ "@oxfmt/binding-darwin-arm64": "0.51.0",
86
+ "@oxfmt/binding-android-arm64": "0.51.0",
87
+ "@oxfmt/binding-win32-arm64-msvc": "0.51.0",
88
+ "@oxfmt/binding-linux-arm64-gnu": "0.51.0",
89
+ "@oxfmt/binding-linux-arm64-musl": "0.51.0",
90
+ "@oxfmt/binding-openharmony-arm64": "0.51.0",
91
+ "@oxfmt/binding-android-arm-eabi": "0.51.0",
92
+ "@oxfmt/binding-linux-arm-gnueabihf": "0.51.0",
93
+ "@oxfmt/binding-linux-arm-musleabihf": "0.51.0",
94
+ "@oxfmt/binding-win32-ia32-msvc": "0.51.0",
95
+ "@oxfmt/binding-linux-ppc64-gnu": "0.51.0",
96
+ "@oxfmt/binding-linux-riscv64-gnu": "0.51.0",
97
+ "@oxfmt/binding-linux-riscv64-musl": "0.51.0",
98
+ "@oxfmt/binding-linux-s390x-gnu": "0.51.0",
99
+ "@oxfmt/binding-darwin-x64": "0.51.0",
100
+ "@oxfmt/binding-win32-x64-msvc": "0.51.0",
101
+ "@oxfmt/binding-freebsd-x64": "0.51.0",
102
+ "@oxfmt/binding-linux-x64-gnu": "0.51.0",
103
+ "@oxfmt/binding-linux-x64-musl": "0.51.0"
104
104
  }
105
105
  }
File without changes