oxfmt 0.37.0 → 0.38.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.
- package/dist/{angular-BjdVY6ry.js → angular-B-fZUH1m.js} +1 -1
- package/dist/{apis-BoXLniqX.js → apis-Df5472ag.js} +4 -4
- package/dist/babel-j4jyJZw_.js +2 -0
- package/dist/{bindings-Cpav0PNl.js → bindings-D1mDMI2C.js} +26 -26
- package/dist/cli-worker.js +1 -1
- package/dist/cli.js +24 -4
- package/dist/{dist-BxX-OKHo.js → dist-DabO5BDH.js} +3 -3
- package/dist/index.d.ts +210 -1
- package/dist/index.js +9 -3
- package/dist/{migrate-prettier-BfVrZTrL.js → migrate-prettier-CFnUDGyF.js} +1 -1
- package/dist/{postcss-Cy4xGDrs.js → postcss-A2fgbfpd.js} +1 -1
- package/dist/{prettier-DYJRSbN0.js → prettier-CHVck2cH.js} +3 -3
- package/dist/{prettier-plugin-oxfmt-DGn95w-c.js → prettier-plugin-oxfmt-BSVXgsBX.js} +2 -2
- package/dist/{sorter-BZkvDMjt-n6dGttqp.js → sorter-BZkvDMjt-DulScHkJ.js} +4 -4
- package/dist/{sorter-D7zO39b5.js → sorter-CAIXgwZx.js} +1 -1
- package/package.json +20 -20
- package/dist/babel-cHKEVC-N.js +0 -2
- package/dist/{v3-D-mr2VVh-FqDpKDIq.js → v3-D-mr2VVh-CsF5zfe3.js} +1 -1
- package/dist/{v4-C-HWEQJm-DL_vfdDs.js → v4-C-HWEQJm-DL2nGaoR.js} +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-DrSxFLj_.js";
|
|
2
|
-
import { i as sn, r as Ei } from "./dist-
|
|
2
|
+
import { i as sn, r as Ei } from "./dist-DabO5BDH.js";
|
|
3
3
|
//#region ../../node_modules/.pnpm/prettier@3.8.1/node_modules/prettier/plugins/postcss.mjs
|
|
4
4
|
var postcss_exports = /* @__PURE__ */ __exportAll({
|
|
5
5
|
default: () => _l,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
let prettierCache;
|
|
3
3
|
async function loadPrettier() {
|
|
4
4
|
if (prettierCache) return prettierCache;
|
|
5
|
-
prettierCache = await import("./prettier-
|
|
5
|
+
prettierCache = await import("./prettier-CHVck2cH.js").then((n) => n.n);
|
|
6
6
|
return prettierCache;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
@@ -71,7 +71,7 @@ async function formatEmbeddedDoc({ texts, options }) {
|
|
|
71
71
|
let tailwindPluginCache;
|
|
72
72
|
async function loadTailwindPlugin() {
|
|
73
73
|
if (tailwindPluginCache) return tailwindPluginCache;
|
|
74
|
-
tailwindPluginCache = await import("./dist-
|
|
74
|
+
tailwindPluginCache = await import("./dist-DabO5BDH.js");
|
|
75
75
|
return tailwindPluginCache;
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
@@ -92,7 +92,7 @@ async function setupTailwindPlugin(options) {
|
|
|
92
92
|
* @returns Array of sorted class strings (same order/length as input)
|
|
93
93
|
*/
|
|
94
94
|
async function sortTailwindClasses({ classes, options }) {
|
|
95
|
-
const { createSorter } = await import("./sorter-
|
|
95
|
+
const { createSorter } = await import("./sorter-CAIXgwZx.js");
|
|
96
96
|
return (await createSorter({
|
|
97
97
|
filepath: options.filepath,
|
|
98
98
|
stylesheetPath: options.tailwindStylesheet,
|
|
@@ -104,7 +104,7 @@ async function sortTailwindClasses({ classes, options }) {
|
|
|
104
104
|
let oxfmtPluginCache;
|
|
105
105
|
async function loadOxfmtPlugin() {
|
|
106
106
|
if (oxfmtPluginCache) return oxfmtPluginCache;
|
|
107
|
-
oxfmtPluginCache = await import("./prettier-plugin-oxfmt-
|
|
107
|
+
oxfmtPluginCache = await import("./prettier-plugin-oxfmt-BSVXgsBX.js");
|
|
108
108
|
return oxfmtPluginCache;
|
|
109
109
|
}
|
|
110
110
|
/**
|
|
@@ -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.
|
|
60
|
+
if (bindingPackageVersion !== "0.38.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.38.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.
|
|
74
|
+
if (bindingPackageVersion !== "0.38.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.38.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.
|
|
89
|
+
if (bindingPackageVersion !== "0.38.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.38.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.
|
|
103
|
+
if (bindingPackageVersion !== "0.38.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.38.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.
|
|
118
|
+
if (bindingPackageVersion !== "0.38.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.38.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.
|
|
132
|
+
if (bindingPackageVersion !== "0.38.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.38.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.
|
|
147
|
+
if (bindingPackageVersion !== "0.38.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.38.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.
|
|
161
|
+
if (bindingPackageVersion !== "0.38.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.38.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.
|
|
175
|
+
if (bindingPackageVersion !== "0.38.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.38.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.
|
|
190
|
+
if (bindingPackageVersion !== "0.38.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.38.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.
|
|
204
|
+
if (bindingPackageVersion !== "0.38.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.38.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.
|
|
219
|
+
if (bindingPackageVersion !== "0.38.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.38.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.
|
|
233
|
+
if (bindingPackageVersion !== "0.38.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.38.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.
|
|
248
|
+
if (bindingPackageVersion !== "0.38.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.38.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.
|
|
262
|
+
if (bindingPackageVersion !== "0.38.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.38.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.
|
|
277
|
+
if (bindingPackageVersion !== "0.38.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.38.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.
|
|
291
|
+
if (bindingPackageVersion !== "0.38.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.38.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.
|
|
306
|
+
if (bindingPackageVersion !== "0.38.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.38.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.
|
|
320
|
+
if (bindingPackageVersion !== "0.38.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.38.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.
|
|
335
|
+
if (bindingPackageVersion !== "0.38.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.38.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.
|
|
349
|
+
if (bindingPackageVersion !== "0.38.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.38.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.
|
|
364
|
+
if (bindingPackageVersion !== "0.38.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.38.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.
|
|
378
|
+
if (bindingPackageVersion !== "0.38.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.38.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.
|
|
393
|
+
if (bindingPackageVersion !== "0.38.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.38.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.
|
|
407
|
+
if (bindingPackageVersion !== "0.38.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.38.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.
|
|
421
|
+
if (bindingPackageVersion !== "0.38.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.38.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);
|
package/dist/cli-worker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as sortTailwindClasses, n as formatEmbeddedDoc, r as formatFile, t as formatEmbeddedCode } from "./apis-
|
|
1
|
+
import { a as sortTailwindClasses, n as formatEmbeddedDoc, r as formatFile, t as formatEmbeddedCode } from "./apis-Df5472ag.js";
|
|
2
2
|
export { formatEmbeddedCode, formatEmbeddedDoc, formatFile, sortTailwindClasses };
|
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { r as runCli } from "./bindings-
|
|
2
|
-
import { i as resolvePlugins } from "./apis-
|
|
1
|
+
import { r as runCli } from "./bindings-D1mDMI2C.js";
|
|
2
|
+
import { i as resolvePlugins } from "./apis-Df5472ag.js";
|
|
3
3
|
import Tinypool from "tinypool";
|
|
4
|
+
import { pathToFileURL } from "node:url";
|
|
4
5
|
//#region src-js/cli/worker-proxy.ts
|
|
5
6
|
let pool = null;
|
|
6
7
|
async function initExternalFormatter(numThreads) {
|
|
@@ -51,17 +52,36 @@ async function sortTailwindClasses(options, classes) {
|
|
|
51
52
|
}, { name: "sortTailwindClasses" }).catch(() => null);
|
|
52
53
|
}
|
|
53
54
|
//#endregion
|
|
55
|
+
//#region src-js/cli/js_config.ts
|
|
56
|
+
/**
|
|
57
|
+
* Load a JavaScript/TypeScript config file.
|
|
58
|
+
*
|
|
59
|
+
* Uses native Node.js `import()` to evaluate the config file.
|
|
60
|
+
* The config file should have a default export containing the oxfmt configuration object.
|
|
61
|
+
*
|
|
62
|
+
* @param path - Absolute path to the JavaScript/TypeScript config file
|
|
63
|
+
* @returns Config object
|
|
64
|
+
*/
|
|
65
|
+
async function loadJsConfig(path) {
|
|
66
|
+
const fileUrl = pathToFileURL(path);
|
|
67
|
+
fileUrl.searchParams.set("cache", Date.now().toString());
|
|
68
|
+
const { default: config } = await import(fileUrl.href);
|
|
69
|
+
if (config === void 0) throw new Error(`Configuration file has no default export: ${path}`);
|
|
70
|
+
if (typeof config !== "object" || config === null || Array.isArray(config)) throw new Error(`Configuration file must have a default export that is an object: ${path}`);
|
|
71
|
+
return config;
|
|
72
|
+
}
|
|
73
|
+
//#endregion
|
|
54
74
|
//#region src-js/cli.ts
|
|
55
75
|
(async () => {
|
|
56
76
|
const args = process.argv.slice(2);
|
|
57
77
|
if (!process.stdout.isTTY) process.stdout._handle?.setBlocking?.(true);
|
|
58
|
-
const [mode, exitCode] = await runCli(args, initExternalFormatter, formatFile, formatEmbeddedCode, formatEmbeddedDoc, sortTailwindClasses);
|
|
78
|
+
const [mode, exitCode] = await runCli(args, loadJsConfig, initExternalFormatter, formatFile, formatEmbeddedCode, formatEmbeddedDoc, sortTailwindClasses);
|
|
59
79
|
if (mode === "init") {
|
|
60
80
|
await import("./init-BbKOMZ57.js").then((m) => m.runInit());
|
|
61
81
|
return;
|
|
62
82
|
}
|
|
63
83
|
if (mode === "migrate:prettier") {
|
|
64
|
-
await import("./migrate-prettier-
|
|
84
|
+
await import("./migrate-prettier-CFnUDGyF.js").then((m) => m.runMigratePrettier());
|
|
65
85
|
return;
|
|
66
86
|
}
|
|
67
87
|
if (mode === "migrate:biome") {
|
|
@@ -2,9 +2,9 @@ import { t as __exportAll } from "./chunk-DrSxFLj_.js";
|
|
|
2
2
|
import { a as __toESM, t as __commonJSMin } from "./chunk-DSjvVL_1-BYdvZw3N.js";
|
|
3
3
|
import { n as loadIfExists, r as maybeResolve, t as expiringMap } from "./resolve-pWjAK-4f-C1Z6M6r2.js";
|
|
4
4
|
import { i as visit, n as cacheForDirs, r as spliceChangesIntoString } from "./utils-D8dQkKEd-BtAa7w-M.js";
|
|
5
|
-
import { a as sortClasses, i as sortClassList, n as error, o as warn, r as getTailwindConfig$1 } from "./sorter-BZkvDMjt-
|
|
6
|
-
import { a as en$1, o as postcss_exports } from "./angular-
|
|
7
|
-
import { t as index_exports } from "./prettier-
|
|
5
|
+
import { a as sortClasses, i as sortClassList, n as error, o as warn, r as getTailwindConfig$1 } from "./sorter-BZkvDMjt-DulScHkJ.js";
|
|
6
|
+
import { a as en$1, o as postcss_exports } from "./angular-B-fZUH1m.js";
|
|
7
|
+
import { t as index_exports } from "./prettier-CHVck2cH.js";
|
|
8
8
|
import * as path from "node:path";
|
|
9
9
|
import { isAbsolute } from "path";
|
|
10
10
|
//#region ../../node_modules/.pnpm/prettier@3.8.1/node_modules/prettier/plugins/angular.mjs
|
package/dist/index.d.ts
CHANGED
|
@@ -35,6 +35,211 @@ type SortGroupItemConfig = NewlinesBetweenMarker | string | string[];
|
|
|
35
35
|
type SortOrderConfig = "asc" | "desc";
|
|
36
36
|
type SortPackageJsonUserConfig = boolean | SortPackageJsonConfig;
|
|
37
37
|
type TrailingCommaConfig = "all" | "es5" | "none";
|
|
38
|
+
/**
|
|
39
|
+
* Configuration options for the Oxfmt.
|
|
40
|
+
*
|
|
41
|
+
* Most options are the same as Prettier's options, but not all of them.
|
|
42
|
+
* In addition, some options are our own extensions.
|
|
43
|
+
*/
|
|
44
|
+
interface Oxfmtrc {
|
|
45
|
+
/**
|
|
46
|
+
* Include parentheses around a sole arrow function parameter.
|
|
47
|
+
*
|
|
48
|
+
* - Default: `"always"`
|
|
49
|
+
*/
|
|
50
|
+
arrowParens?: ArrowParensConfig | null;
|
|
51
|
+
/**
|
|
52
|
+
* Put the `>` of a multi-line HTML (HTML, JSX, Vue, Angular) element at the end of the last line,
|
|
53
|
+
* instead of being alone on the next line (does not apply to self closing elements).
|
|
54
|
+
*
|
|
55
|
+
* - Default: `false`
|
|
56
|
+
*/
|
|
57
|
+
bracketSameLine?: boolean | null;
|
|
58
|
+
/**
|
|
59
|
+
* Print spaces between brackets in object literals.
|
|
60
|
+
*
|
|
61
|
+
* - Default: `true`
|
|
62
|
+
*/
|
|
63
|
+
bracketSpacing?: boolean | null;
|
|
64
|
+
/**
|
|
65
|
+
* Control whether to format embedded parts (For example, CSS-in-JS, or JS-in-Vue, etc.) in the file.
|
|
66
|
+
*
|
|
67
|
+
* NOTE: XXX-in-JS support is incomplete.
|
|
68
|
+
*
|
|
69
|
+
* - Default: `"auto"`
|
|
70
|
+
*/
|
|
71
|
+
embeddedLanguageFormatting?: EmbeddedLanguageFormattingConfig | null;
|
|
72
|
+
/**
|
|
73
|
+
* Which end of line characters to apply.
|
|
74
|
+
*
|
|
75
|
+
* NOTE: `"auto"` is not supported.
|
|
76
|
+
*
|
|
77
|
+
* - Default: `"lf"`
|
|
78
|
+
* - Overrides `.editorconfig.end_of_line`
|
|
79
|
+
*/
|
|
80
|
+
endOfLine?: EndOfLineConfig | null;
|
|
81
|
+
/**
|
|
82
|
+
* Specify the global whitespace sensitivity for HTML, Vue, Angular, and Handlebars.
|
|
83
|
+
*
|
|
84
|
+
* - Default: `"css"`
|
|
85
|
+
*/
|
|
86
|
+
htmlWhitespaceSensitivity?: HtmlWhitespaceSensitivityConfig | null;
|
|
87
|
+
/**
|
|
88
|
+
* Ignore files matching these glob patterns.
|
|
89
|
+
* Patterns are based on the location of the Oxfmt configuration file.
|
|
90
|
+
*
|
|
91
|
+
* - Default: `[]`
|
|
92
|
+
*/
|
|
93
|
+
ignorePatterns?: string[] | null;
|
|
94
|
+
/**
|
|
95
|
+
* Whether to insert a final newline at the end of the file.
|
|
96
|
+
*
|
|
97
|
+
* - Default: `true`
|
|
98
|
+
* - Overrides `.editorconfig.insert_final_newline`
|
|
99
|
+
*/
|
|
100
|
+
insertFinalNewline?: boolean | null;
|
|
101
|
+
/**
|
|
102
|
+
* Use single quotes instead of double quotes in JSX.
|
|
103
|
+
*
|
|
104
|
+
* - Default: `false`
|
|
105
|
+
*/
|
|
106
|
+
jsxSingleQuote?: boolean | null;
|
|
107
|
+
/**
|
|
108
|
+
* How to wrap object literals when they could fit on one line or span multiple lines.
|
|
109
|
+
*
|
|
110
|
+
* By default, formats objects as multi-line if there is a newline prior to the first property.
|
|
111
|
+
* Authors can use this heuristic to contextually improve readability, though it has some downsides.
|
|
112
|
+
*
|
|
113
|
+
* - Default: `"preserve"`
|
|
114
|
+
*/
|
|
115
|
+
objectWrap?: ObjectWrapConfig | null;
|
|
116
|
+
/**
|
|
117
|
+
* File-specific overrides.
|
|
118
|
+
* When a file matches multiple overrides, the later override takes precedence (array order matters).
|
|
119
|
+
*
|
|
120
|
+
* - Default: `[]`
|
|
121
|
+
*/
|
|
122
|
+
overrides?: OxfmtOverrideConfig[] | null;
|
|
123
|
+
/**
|
|
124
|
+
* Specify the line length that the printer will wrap on.
|
|
125
|
+
*
|
|
126
|
+
* If you don't want line wrapping when formatting Markdown, you can set the `proseWrap` option to disable it.
|
|
127
|
+
*
|
|
128
|
+
* - Default: `100`
|
|
129
|
+
* - Overrides `.editorconfig.max_line_length`
|
|
130
|
+
*/
|
|
131
|
+
printWidth?: number | null;
|
|
132
|
+
/**
|
|
133
|
+
* How to wrap prose.
|
|
134
|
+
*
|
|
135
|
+
* By default, formatter will not change wrapping in markdown text since some services use a linebreak-sensitive renderer, e.g. GitHub comments and BitBucket.
|
|
136
|
+
* To wrap prose to the print width, change this option to "always".
|
|
137
|
+
* If you want to force all prose blocks to be on a single line and rely on editor/viewer soft wrapping instead, you can use "never".
|
|
138
|
+
*
|
|
139
|
+
* - Default: `"preserve"`
|
|
140
|
+
*/
|
|
141
|
+
proseWrap?: ProseWrapConfig | null;
|
|
142
|
+
/**
|
|
143
|
+
* Change when properties in objects are quoted.
|
|
144
|
+
*
|
|
145
|
+
* - Default: `"as-needed"`
|
|
146
|
+
*/
|
|
147
|
+
quoteProps?: QuotePropsConfig | null;
|
|
148
|
+
/**
|
|
149
|
+
* Print semicolons at the ends of statements.
|
|
150
|
+
*
|
|
151
|
+
* - Default: `true`
|
|
152
|
+
*/
|
|
153
|
+
semi?: boolean | null;
|
|
154
|
+
/**
|
|
155
|
+
* Enforce single attribute per line in HTML, Vue, and JSX.
|
|
156
|
+
*
|
|
157
|
+
* - Default: `false`
|
|
158
|
+
*/
|
|
159
|
+
singleAttributePerLine?: boolean | null;
|
|
160
|
+
/**
|
|
161
|
+
* Use single quotes instead of double quotes.
|
|
162
|
+
*
|
|
163
|
+
* For JSX, you can set the `jsxSingleQuote` option.
|
|
164
|
+
*
|
|
165
|
+
* - Default: `false`
|
|
166
|
+
*/
|
|
167
|
+
singleQuote?: boolean | null;
|
|
168
|
+
/**
|
|
169
|
+
* Sort import statements.
|
|
170
|
+
*
|
|
171
|
+
* Using the similar algorithm as [eslint-plugin-perfectionist/sort-imports](https://perfectionist.dev/rules/sort-imports).
|
|
172
|
+
* For details, see each field's documentation.
|
|
173
|
+
*
|
|
174
|
+
* - Default: Disabled
|
|
175
|
+
*/
|
|
176
|
+
sortImports?: SortImportsConfig | null;
|
|
177
|
+
/**
|
|
178
|
+
* Sort `package.json` keys.
|
|
179
|
+
*
|
|
180
|
+
* The algorithm is NOT compatible with [prettier-plugin-sort-packagejson](https://github.com/matzkoh/prettier-plugin-packagejson).
|
|
181
|
+
* But we believe it is clearer and easier to navigate.
|
|
182
|
+
* For details, see each field's documentation.
|
|
183
|
+
*
|
|
184
|
+
* - Default: `true`
|
|
185
|
+
*/
|
|
186
|
+
sortPackageJson?: SortPackageJsonUserConfig | null;
|
|
187
|
+
/**
|
|
188
|
+
* Sort Tailwind CSS classes.
|
|
189
|
+
*
|
|
190
|
+
* Using the same algorithm as [prettier-plugin-tailwindcss](https://github.com/tailwindlabs/prettier-plugin-tailwindcss).
|
|
191
|
+
* Option names omit the `tailwind` prefix used in the original plugin (e.g., `config` instead of `tailwindConfig`).
|
|
192
|
+
* For details, see each field's documentation.
|
|
193
|
+
*
|
|
194
|
+
* - Default: Disabled
|
|
195
|
+
*/
|
|
196
|
+
sortTailwindcss?: SortTailwindcssConfig | null;
|
|
197
|
+
/**
|
|
198
|
+
* Specify the number of spaces per indentation-level.
|
|
199
|
+
*
|
|
200
|
+
* - Default: `2`
|
|
201
|
+
* - Overrides `.editorconfig.indent_size`
|
|
202
|
+
*/
|
|
203
|
+
tabWidth?: number | null;
|
|
204
|
+
/**
|
|
205
|
+
* Print trailing commas wherever possible in multi-line comma-separated syntactic structures.
|
|
206
|
+
*
|
|
207
|
+
* A single-line array, for example, never gets trailing commas.
|
|
208
|
+
*
|
|
209
|
+
* - Default: `"all"`
|
|
210
|
+
*/
|
|
211
|
+
trailingComma?: TrailingCommaConfig | null;
|
|
212
|
+
/**
|
|
213
|
+
* Indent lines with tabs instead of spaces.
|
|
214
|
+
*
|
|
215
|
+
* - Default: `false`
|
|
216
|
+
* - Overrides `.editorconfig.indent_style`
|
|
217
|
+
*/
|
|
218
|
+
useTabs?: boolean | null;
|
|
219
|
+
/**
|
|
220
|
+
* Whether or not to indent the code inside `<script>` and `<style>` tags in Vue files.
|
|
221
|
+
*
|
|
222
|
+
* - Default: `false`
|
|
223
|
+
*/
|
|
224
|
+
vueIndentScriptAndStyle?: boolean | null;
|
|
225
|
+
[k: string]: unknown;
|
|
226
|
+
}
|
|
227
|
+
interface OxfmtOverrideConfig {
|
|
228
|
+
/**
|
|
229
|
+
* Glob patterns to exclude from this override.
|
|
230
|
+
*/
|
|
231
|
+
excludeFiles?: string[] | null;
|
|
232
|
+
/**
|
|
233
|
+
* Glob patterns to match files for this override.
|
|
234
|
+
* All patterns are relative to the Oxfmt configuration file.
|
|
235
|
+
*/
|
|
236
|
+
files: string[];
|
|
237
|
+
/**
|
|
238
|
+
* Format options to apply for matched files.
|
|
239
|
+
*/
|
|
240
|
+
options?: FormatConfig;
|
|
241
|
+
[k: string]: unknown;
|
|
242
|
+
}
|
|
38
243
|
interface FormatConfig {
|
|
39
244
|
/**
|
|
40
245
|
* Include parentheses around a sole arrow function parameter.
|
|
@@ -434,6 +639,10 @@ interface SortTailwindcssConfig {
|
|
|
434
639
|
}
|
|
435
640
|
//#endregion
|
|
436
641
|
//#region src-js/index.d.ts
|
|
642
|
+
/**
|
|
643
|
+
* Define an oxfmt configuration with type inference.
|
|
644
|
+
*/
|
|
645
|
+
declare function defineConfig<T extends Oxfmtrc>(config: T): T;
|
|
437
646
|
/**
|
|
438
647
|
* Configuration options for the `format()` API.
|
|
439
648
|
*
|
|
@@ -459,4 +668,4 @@ declare function format(fileName: string, sourceText: string, options?: FormatOp
|
|
|
459
668
|
*/
|
|
460
669
|
declare function jsTextToDoc(sourceExt: string, sourceText: string, oxfmtPluginOptionsJson: string, parentContext: string): Promise<string | null>;
|
|
461
670
|
//#endregion
|
|
462
|
-
export { FormatOptions, SortImportsOptions, SortPackageJsonOptions, SortTailwindcssOptions, TailwindcssOptions, format, jsTextToDoc };
|
|
671
|
+
export { FormatOptions, SortImportsOptions, SortPackageJsonOptions, SortTailwindcssOptions, TailwindcssOptions, defineConfig, format, jsTextToDoc };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import { n as jsTextToDoc$1, t as format$1 } from "./bindings-
|
|
2
|
-
import { a as sortTailwindClasses, i as resolvePlugins, n as formatEmbeddedDoc, r as formatFile, t as formatEmbeddedCode } from "./apis-
|
|
1
|
+
import { n as jsTextToDoc$1, t as format$1 } from "./bindings-D1mDMI2C.js";
|
|
2
|
+
import { a as sortTailwindClasses, i as resolvePlugins, n as formatEmbeddedDoc, r as formatFile, t as formatEmbeddedCode } from "./apis-Df5472ag.js";
|
|
3
3
|
//#region src-js/index.ts
|
|
4
4
|
/**
|
|
5
|
+
* Define an oxfmt configuration with type inference.
|
|
6
|
+
*/
|
|
7
|
+
function defineConfig(config) {
|
|
8
|
+
return config;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
5
11
|
* Format the given source text according to the specified options.
|
|
6
12
|
*/
|
|
7
13
|
async function format(fileName, sourceText, options) {
|
|
@@ -37,4 +43,4 @@ async function jsTextToDoc(sourceExt, sourceText, oxfmtPluginOptionsJson, parent
|
|
|
37
43
|
}));
|
|
38
44
|
}
|
|
39
45
|
//#endregion
|
|
40
|
-
export { format, jsTextToDoc };
|
|
46
|
+
export { defineConfig, format, jsTextToDoc };
|
|
@@ -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-
|
|
12
|
+
const { resolveConfigFile, resolveConfig } = await import("./prettier-CHVck2cH.js").then((n) => n.n);
|
|
13
13
|
const prettierConfigPath = await resolveConfigFile(join(cwd, "dummy.js"));
|
|
14
14
|
if (!prettierConfigPath) {
|
|
15
15
|
console.log("No Prettier configuration file found.");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as en, i as _l, n as Si, r as Ti, t as Hy } from "./angular-
|
|
1
|
+
import { a as en, i as _l, n as Si, r as Ti, t as Hy } from "./angular-B-fZUH1m.js";
|
|
2
2
|
export { _l as default, Si as languages, Ti as options, en as parsers, Hy as printers };
|
|
@@ -15199,7 +15199,7 @@ var { parsers, printers } = createParsersAndPrinters([
|
|
|
15199
15199
|
parsers: ["acorn", "espree"]
|
|
15200
15200
|
},
|
|
15201
15201
|
{
|
|
15202
|
-
importPlugin: () => import("./angular-
|
|
15202
|
+
importPlugin: () => import("./angular-B-fZUH1m.js"),
|
|
15203
15203
|
parsers: [
|
|
15204
15204
|
"__ng_action",
|
|
15205
15205
|
"__ng_binding",
|
|
@@ -15208,7 +15208,7 @@ var { parsers, printers } = createParsersAndPrinters([
|
|
|
15208
15208
|
]
|
|
15209
15209
|
},
|
|
15210
15210
|
{
|
|
15211
|
-
importPlugin: () => import("./babel-
|
|
15211
|
+
importPlugin: () => import("./babel-j4jyJZw_.js"),
|
|
15212
15212
|
parsers: [
|
|
15213
15213
|
"babel",
|
|
15214
15214
|
"babel-flow",
|
|
@@ -15265,7 +15265,7 @@ var { parsers, printers } = createParsersAndPrinters([
|
|
|
15265
15265
|
parsers: ["meriyah"]
|
|
15266
15266
|
},
|
|
15267
15267
|
{
|
|
15268
|
-
importPlugin: () => import("./postcss-
|
|
15268
|
+
importPlugin: () => import("./postcss-A2fgbfpd.js"),
|
|
15269
15269
|
parsers: [
|
|
15270
15270
|
"css",
|
|
15271
15271
|
"less",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./bindings-
|
|
2
|
-
import "./apis-
|
|
1
|
+
import "./bindings-D1mDMI2C.js";
|
|
2
|
+
import "./apis-Df5472ag.js";
|
|
3
3
|
import { jsTextToDoc } from "./index.js";
|
|
4
4
|
//#region src-js/libs/prettier-plugin-oxfmt/text-to-doc.ts
|
|
5
5
|
const textToDoc = async (embeddedSourceText, textToDocOptions) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as resolveJsFrom, t as expiringMap } from "./resolve-pWjAK-4f-C1Z6M6r2.js";
|
|
2
2
|
import { n as cacheForDirs, t as bigSign } from "./utils-D8dQkKEd-BtAa7w-M.js";
|
|
3
|
-
import * as path from "node:path";
|
|
4
3
|
import { pathToFileURL } from "node:url";
|
|
4
|
+
import * as path from "node:path";
|
|
5
5
|
import { dirname, resolve } from "path";
|
|
6
6
|
import { readdirSync, statSync } from "fs";
|
|
7
7
|
//#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
|
|
@@ -103,14 +103,14 @@ async function getTailwindConfig(options) {
|
|
|
103
103
|
if (!stylesheet && !(mod === null || mod === void 0 ? void 0 : mod.__unstable__loadDesignSystem)) jsConfig = jsConfig ?? findClosestJsConfig(inputDir);
|
|
104
104
|
if (jsConfig) {
|
|
105
105
|
if (!stylesheet) return pathToApiMap.remember(`${pkgDir}:${jsConfig}`, async () => {
|
|
106
|
-
const { loadV3 } = await import("./v3-D-mr2VVh-
|
|
106
|
+
const { loadV3 } = await import("./v3-D-mr2VVh-CsF5zfe3.js");
|
|
107
107
|
return loadV3(pkgDir, jsConfig);
|
|
108
108
|
});
|
|
109
109
|
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.`);
|
|
110
110
|
}
|
|
111
111
|
if (mod && !mod.__unstable__loadDesignSystem) {
|
|
112
112
|
if (!stylesheet) return pathToApiMap.remember(`${pkgDir}:${jsConfig}`, async () => {
|
|
113
|
-
const { loadV3 } = await import("./v3-D-mr2VVh-
|
|
113
|
+
const { loadV3 } = await import("./v3-D-mr2VVh-CsF5zfe3.js");
|
|
114
114
|
return loadV3(pkgDir, jsConfig);
|
|
115
115
|
});
|
|
116
116
|
mod = null;
|
|
@@ -118,7 +118,7 @@ async function getTailwindConfig(options) {
|
|
|
118
118
|
}
|
|
119
119
|
if (mod && mod.__unstable__loadDesignSystem && pkgDir) stylesheet ?? (stylesheet = `${pkgDir}/theme.css`);
|
|
120
120
|
return pathToApiMap.remember(`${pkgDir}:${stylesheet}`, async () => {
|
|
121
|
-
const { loadV4 } = await import("./v4-C-HWEQJm-
|
|
121
|
+
const { loadV4 } = await import("./v4-C-HWEQJm-DL2nGaoR.js");
|
|
122
122
|
return loadV4(mod, stylesheet);
|
|
123
123
|
});
|
|
124
124
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxfmt",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.38.0",
|
|
4
4
|
"description": "Formatter for the JavaScript Oxidation Compiler",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"formatter",
|
|
@@ -67,24 +67,24 @@
|
|
|
67
67
|
},
|
|
68
68
|
"preferUnplugged": true,
|
|
69
69
|
"optionalDependencies": {
|
|
70
|
-
"@oxfmt/binding-darwin-arm64": "0.
|
|
71
|
-
"@oxfmt/binding-android-arm64": "0.
|
|
72
|
-
"@oxfmt/binding-win32-arm64-msvc": "0.
|
|
73
|
-
"@oxfmt/binding-linux-arm64-gnu": "0.
|
|
74
|
-
"@oxfmt/binding-linux-arm64-musl": "0.
|
|
75
|
-
"@oxfmt/binding-openharmony-arm64": "0.
|
|
76
|
-
"@oxfmt/binding-android-arm-eabi": "0.
|
|
77
|
-
"@oxfmt/binding-linux-arm-gnueabihf": "0.
|
|
78
|
-
"@oxfmt/binding-linux-arm-musleabihf": "0.
|
|
79
|
-
"@oxfmt/binding-win32-ia32-msvc": "0.
|
|
80
|
-
"@oxfmt/binding-linux-ppc64-gnu": "0.
|
|
81
|
-
"@oxfmt/binding-linux-riscv64-gnu": "0.
|
|
82
|
-
"@oxfmt/binding-linux-riscv64-musl": "0.
|
|
83
|
-
"@oxfmt/binding-linux-s390x-gnu": "0.
|
|
84
|
-
"@oxfmt/binding-darwin-x64": "0.
|
|
85
|
-
"@oxfmt/binding-win32-x64-msvc": "0.
|
|
86
|
-
"@oxfmt/binding-freebsd-x64": "0.
|
|
87
|
-
"@oxfmt/binding-linux-x64-gnu": "0.
|
|
88
|
-
"@oxfmt/binding-linux-x64-musl": "0.
|
|
70
|
+
"@oxfmt/binding-darwin-arm64": "0.38.0",
|
|
71
|
+
"@oxfmt/binding-android-arm64": "0.38.0",
|
|
72
|
+
"@oxfmt/binding-win32-arm64-msvc": "0.38.0",
|
|
73
|
+
"@oxfmt/binding-linux-arm64-gnu": "0.38.0",
|
|
74
|
+
"@oxfmt/binding-linux-arm64-musl": "0.38.0",
|
|
75
|
+
"@oxfmt/binding-openharmony-arm64": "0.38.0",
|
|
76
|
+
"@oxfmt/binding-android-arm-eabi": "0.38.0",
|
|
77
|
+
"@oxfmt/binding-linux-arm-gnueabihf": "0.38.0",
|
|
78
|
+
"@oxfmt/binding-linux-arm-musleabihf": "0.38.0",
|
|
79
|
+
"@oxfmt/binding-win32-ia32-msvc": "0.38.0",
|
|
80
|
+
"@oxfmt/binding-linux-ppc64-gnu": "0.38.0",
|
|
81
|
+
"@oxfmt/binding-linux-riscv64-gnu": "0.38.0",
|
|
82
|
+
"@oxfmt/binding-linux-riscv64-musl": "0.38.0",
|
|
83
|
+
"@oxfmt/binding-linux-s390x-gnu": "0.38.0",
|
|
84
|
+
"@oxfmt/binding-darwin-x64": "0.38.0",
|
|
85
|
+
"@oxfmt/binding-win32-x64-msvc": "0.38.0",
|
|
86
|
+
"@oxfmt/binding-freebsd-x64": "0.38.0",
|
|
87
|
+
"@oxfmt/binding-linux-x64-gnu": "0.38.0",
|
|
88
|
+
"@oxfmt/binding-linux-x64-musl": "0.38.0"
|
|
89
89
|
}
|
|
90
90
|
}
|
package/dist/babel-cHKEVC-N.js
DELETED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as __toESM, i as __require, n as __esmMin, t as __commonJSMin } from "./chunk-DSjvVL_1-BYdvZw3N.js";
|
|
2
2
|
import { t as bigSign } from "./utils-D8dQkKEd-BtAa7w-M.js";
|
|
3
3
|
import { t as createJiti } from "./jiti-Bb1dT6Cw-BzC3jhZX.js";
|
|
4
|
-
import * as path from "node:path";
|
|
5
4
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
5
|
+
import * as path from "node:path";
|
|
6
6
|
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier@3.8.1/node_modules/prettier-plugin-tailwindcss/dist/v3-D-mr2VVh.mjs
|
|
7
7
|
var getFilename, __filename;
|
|
8
8
|
var init_esm_shims = __esmMin((() => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as __exportAll } from "./chunk-DSjvVL_1-BYdvZw3N.js";
|
|
2
2
|
import { a as resolveJsFrom, i as resolveCssFrom } from "./resolve-pWjAK-4f-C1Z6M6r2.js";
|
|
3
3
|
import { t as createJiti } from "./jiti-Bb1dT6Cw-BzC3jhZX.js";
|
|
4
|
+
import { pathToFileURL } from "node:url";
|
|
4
5
|
import * as path from "node:path";
|
|
5
6
|
import * as fs from "node:fs/promises";
|
|
6
|
-
import { pathToFileURL } from "node:url";
|
|
7
7
|
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier@3.8.1/node_modules/prettier-plugin-tailwindcss/dist/v4-C-HWEQJm.mjs
|
|
8
8
|
var l$1 = {
|
|
9
9
|
inherit: "inherit",
|