oxfmt 0.36.0 → 0.37.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/{acorn-DSYDYt2u.js → acorn-BnWlLI9w.js} +1 -2
- package/dist/{angular-BYaMjeNY.js → angular-BjdVY6ry.js} +3 -5
- package/dist/{apis-C04w0rkO.js → apis-BoXLniqX.js} +5 -6
- package/dist/babel-cHKEVC-N.js +2 -0
- package/dist/{bindings-BY08Skk2.js → bindings-Cpav0PNl.js} +27 -29
- package/dist/{chunk-DSjvVL_1-B9nK_dIv.js → chunk-DSjvVL_1-BYdvZw3N.js} +1 -3
- package/dist/chunk-DrSxFLj_.js +14 -0
- package/dist/cli-worker.d.ts +579 -5
- package/dist/cli-worker.js +2 -3
- package/dist/cli.js +6 -9
- package/dist/{dist-BIcAktiQ.js → dist-BxX-OKHo.js} +14 -18
- package/dist/{estree-DBPlpXot.js → estree-BdH1ynKb.js} +1 -2
- package/dist/{flow-DZRswbuH.js → flow-JTvJzd2b.js} +1 -2
- package/dist/{glimmer-B28TNYIB.js → glimmer-Dj-rhc3H.js} +1 -2
- package/dist/{graphql-3p9xuuKy.js → graphql-C66DjsEv.js} +1 -2
- package/dist/{html-D2VbMQAT.js → html-cr_GTtzg.js} +1 -2
- package/dist/index.d.ts +425 -70
- package/dist/index.js +3 -5
- package/dist/{init-BlnymtNS.js → init-BbKOMZ57.js} +2 -4
- package/dist/{jiti-Bb1dT6Cw-D7Kk0pkW.js → jiti-Bb1dT6Cw-BzC3jhZX.js} +2 -4
- package/dist/{markdown-DdJpriJP.js → markdown-4I9EsAQD.js} +1 -2
- package/dist/{meriyah-CQnZTN4N.js → meriyah-Dyll-d_f.js} +1 -2
- package/dist/{migrate-biome-B4fq26fI.js → migrate-biome-BMqs7-eg.js} +2 -4
- package/dist/{migrate-prettier-BrvLf3WK.js → migrate-prettier-BfVrZTrL.js} +3 -5
- package/dist/{postcss-o-3qwTQO.js → postcss-Cy4xGDrs.js} +2 -3
- package/dist/{prettier-CK6Vmyxp.js → prettier-DYJRSbN0.js} +16 -19
- package/dist/{prettier-plugin-oxfmt-DQXypUIM.js → prettier-plugin-oxfmt-DGn95w-c.js} +3 -6
- package/dist/{resolve-pWjAK-4f-DMrPXOR5.js → resolve-pWjAK-4f-C1Z6M6r2.js} +2 -4
- package/dist/{shared-BhroZgjV.js → shared-BTEY2VsW.js} +1 -3
- package/dist/{sorter-BZkvDMjt-CZzzihz1.js → sorter-BZkvDMjt-n6dGttqp.js} +6 -8
- package/dist/sorter-D7zO39b5.js +3 -0
- package/dist/{typescript-D5lCjM2U.js → typescript-8enly1_u.js} +1 -2
- package/dist/{utils-D8dQkKEd-w107AldM.js → utils-D8dQkKEd-BtAa7w-M.js} +1 -3
- package/dist/{v3-D-mr2VVh-Bj3_v5Qp.js → v3-D-mr2VVh-FqDpKDIq.js} +4 -6
- package/dist/{v4-C-HWEQJm-D29N-mp3.js → v4-C-HWEQJm-DL_vfdDs.js} +4 -6
- package/dist/{yaml-jtj0ZWQC.js → yaml-B6CM-Uf_.js} +1 -2
- package/package.json +20 -20
- package/dist/babel-CsJ8KocL.js +0 -3
- package/dist/chunk-DpReBE2K.js +0 -20
- package/dist/index-BNhsnuYk.d.ts +0 -577
- package/dist/sorter-DmFkUshw.js +0 -5
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { a as __toESM, i as __require, t as __commonJSMin } from "./chunk-DSjvVL_1-
|
|
1
|
+
import { a as __toESM, i as __require, t as __commonJSMin } from "./chunk-DSjvVL_1-BYdvZw3N.js";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
|
-
|
|
4
3
|
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier@3.8.1/node_modules/prettier-plugin-tailwindcss/dist/jiti-Bb1dT6Cw.mjs
|
|
5
4
|
var require_jiti = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6
5
|
(() => {
|
|
@@ -45616,6 +45615,5 @@ function createJiti(id, opts = {}) {
|
|
|
45616
45615
|
createRequire
|
|
45617
45616
|
});
|
|
45618
45617
|
}
|
|
45619
|
-
|
|
45620
45618
|
//#endregion
|
|
45621
|
-
export { createJiti as t };
|
|
45619
|
+
export { createJiti as t };
|
|
@@ -6872,6 +6872,5 @@ var Fl = {
|
|
|
6872
6872
|
parse: ml({ isMDX: !0 })
|
|
6873
6873
|
};
|
|
6874
6874
|
var fF = { mdast: Hi };
|
|
6875
|
-
|
|
6876
6875
|
//#endregion
|
|
6877
|
-
export { gl as default, Ki as languages, Xi as options, Wn as parsers, fF as printers };
|
|
6876
|
+
export { gl as default, Ki as languages, Xi as options, Wn as parsers, fF as printers };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { i as saveOxfmtrcFile, n as exitWithError, r as hasOxfmtrcFile, t as createBlankOxfmtrcFile } from "./shared-
|
|
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
|
-
|
|
5
4
|
//#region src-js/cli/migration/migrate-biome.ts
|
|
6
5
|
const BIOME_DEFAULTS = {
|
|
7
6
|
lineWidth: 80,
|
|
@@ -164,6 +163,5 @@ function extractIgnorePatterns(biomeConfig) {
|
|
|
164
163
|
}
|
|
165
164
|
return ignores;
|
|
166
165
|
}
|
|
167
|
-
|
|
168
166
|
//#endregion
|
|
169
|
-
export { runMigrateBiome };
|
|
167
|
+
export { runMigrateBiome };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { i as saveOxfmtrcFile, n as exitWithError, r as hasOxfmtrcFile, t as createBlankOxfmtrcFile } from "./shared-
|
|
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
|
-
|
|
5
4
|
//#region src-js/cli/migration/migrate-prettier.ts
|
|
6
5
|
/**
|
|
7
6
|
* Run the `--migrate prettier` command to migrate various Prettier's config to `.oxfmtrc.json` file.
|
|
@@ -10,7 +9,7 @@ import { readFile } from "node:fs/promises";
|
|
|
10
9
|
async function runMigratePrettier() {
|
|
11
10
|
const cwd = process.cwd();
|
|
12
11
|
if (await hasOxfmtrcFile(cwd)) return exitWithError("Oxfmt configuration file already exists.");
|
|
13
|
-
const { resolveConfigFile, resolveConfig } = await import("./prettier-
|
|
12
|
+
const { resolveConfigFile, resolveConfig } = await import("./prettier-DYJRSbN0.js").then((n) => n.n);
|
|
14
13
|
const prettierConfigPath = await resolveConfigFile(join(cwd, "dummy.js"));
|
|
15
14
|
if (!prettierConfigPath) {
|
|
16
15
|
console.log("No Prettier configuration file found.");
|
|
@@ -133,6 +132,5 @@ function migrateTailwindOptions(prettierConfig, oxfmtrc) {
|
|
|
133
132
|
oxfmtrc.sortTailwindcss = tailwindOptions;
|
|
134
133
|
console.log("Migrated prettier-plugin-tailwindcss options to sortTailwindcss");
|
|
135
134
|
}
|
|
136
|
-
|
|
137
135
|
//#endregion
|
|
138
|
-
export { runMigratePrettier };
|
|
136
|
+
export { runMigratePrettier };
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { a as en, i as _l, n as Si, r as Ti, t as Hy } from "./angular-
|
|
2
|
-
|
|
3
|
-
export { _l as default, Si as languages, Ti as options, en as parsers, Hy as printers };
|
|
1
|
+
import { a as en, i as _l, n as Si, r as Ti, t as Hy } from "./angular-BjdVY6ry.js";
|
|
2
|
+
export { _l as default, Si as languages, Ti as options, en as parsers, Hy as printers };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as __exportAll } from "./chunk-
|
|
1
|
+
import { t as __exportAll } from "./chunk-DrSxFLj_.js";
|
|
2
2
|
import * as path from "path";
|
|
3
3
|
import path10, { dirname } from "path";
|
|
4
4
|
import fs3, { realpathSync, statSync } from "fs";
|
|
@@ -11,7 +11,6 @@ import process2 from "process";
|
|
|
11
11
|
import assert3, { ok, strictEqual } from "assert";
|
|
12
12
|
import v8 from "v8";
|
|
13
13
|
import { format, inspect } from "util";
|
|
14
|
-
|
|
15
14
|
//#region ../../node_modules/.pnpm/prettier@3.8.1/node_modules/prettier/doc.mjs
|
|
16
15
|
var doc_exports = /* @__PURE__ */ __exportAll({
|
|
17
16
|
builders: () => builders,
|
|
@@ -1048,7 +1047,6 @@ var utils = {
|
|
|
1048
1047
|
replaceEndOfLine,
|
|
1049
1048
|
canBreak
|
|
1050
1049
|
};
|
|
1051
|
-
|
|
1052
1050
|
//#endregion
|
|
1053
1051
|
//#region ../../node_modules/.pnpm/prettier@3.8.1/node_modules/prettier/index.mjs
|
|
1054
1052
|
var prettier_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -11358,7 +11356,7 @@ async function loadConfigFromPackageYaml(file) {
|
|
|
11358
11356
|
var parseYaml;
|
|
11359
11357
|
async function loadYaml(file) {
|
|
11360
11358
|
const content = await read_file_default(file);
|
|
11361
|
-
if (!parseYaml) ({__parsePrettierYamlConfig: parseYaml} = await import("./yaml-
|
|
11359
|
+
if (!parseYaml) ({__parsePrettierYamlConfig: parseYaml} = await import("./yaml-B6CM-Uf_.js"));
|
|
11362
11360
|
try {
|
|
11363
11361
|
return parseYaml(content);
|
|
11364
11362
|
} catch (error) {
|
|
@@ -15174,7 +15172,7 @@ function createParsersAndPrinters(modules) {
|
|
|
15174
15172
|
};
|
|
15175
15173
|
}
|
|
15176
15174
|
var estreePlugin = createParsersAndPrinters([{
|
|
15177
|
-
importPlugin: () => import("./estree-
|
|
15175
|
+
importPlugin: () => import("./estree-BdH1ynKb.js"),
|
|
15178
15176
|
printers: ["estree", "estree-json"]
|
|
15179
15177
|
}]);
|
|
15180
15178
|
var options7 = {
|
|
@@ -15197,11 +15195,11 @@ var languages = [
|
|
|
15197
15195
|
];
|
|
15198
15196
|
var { parsers, printers } = createParsersAndPrinters([
|
|
15199
15197
|
{
|
|
15200
|
-
importPlugin: () => import("./acorn-
|
|
15198
|
+
importPlugin: () => import("./acorn-BnWlLI9w.js"),
|
|
15201
15199
|
parsers: ["acorn", "espree"]
|
|
15202
15200
|
},
|
|
15203
15201
|
{
|
|
15204
|
-
importPlugin: () => import("./angular-
|
|
15202
|
+
importPlugin: () => import("./angular-BjdVY6ry.js"),
|
|
15205
15203
|
parsers: [
|
|
15206
15204
|
"__ng_action",
|
|
15207
15205
|
"__ng_binding",
|
|
@@ -15210,7 +15208,7 @@ var { parsers, printers } = createParsersAndPrinters([
|
|
|
15210
15208
|
]
|
|
15211
15209
|
},
|
|
15212
15210
|
{
|
|
15213
|
-
importPlugin: () => import("./babel-
|
|
15211
|
+
importPlugin: () => import("./babel-cHKEVC-N.js"),
|
|
15214
15212
|
parsers: [
|
|
15215
15213
|
"babel",
|
|
15216
15214
|
"babel-flow",
|
|
@@ -15229,21 +15227,21 @@ var { parsers, printers } = createParsersAndPrinters([
|
|
|
15229
15227
|
]
|
|
15230
15228
|
},
|
|
15231
15229
|
{
|
|
15232
|
-
importPlugin: () => import("./flow-
|
|
15230
|
+
importPlugin: () => import("./flow-JTvJzd2b.js"),
|
|
15233
15231
|
parsers: ["flow"]
|
|
15234
15232
|
},
|
|
15235
15233
|
{
|
|
15236
|
-
importPlugin: () => import("./glimmer-
|
|
15234
|
+
importPlugin: () => import("./glimmer-Dj-rhc3H.js"),
|
|
15237
15235
|
parsers: ["glimmer"],
|
|
15238
15236
|
printers: ["glimmer"]
|
|
15239
15237
|
},
|
|
15240
15238
|
{
|
|
15241
|
-
importPlugin: () => import("./graphql-
|
|
15239
|
+
importPlugin: () => import("./graphql-C66DjsEv.js"),
|
|
15242
15240
|
parsers: ["graphql"],
|
|
15243
15241
|
printers: ["graphql"]
|
|
15244
15242
|
},
|
|
15245
15243
|
{
|
|
15246
|
-
importPlugin: () => import("./html-
|
|
15244
|
+
importPlugin: () => import("./html-cr_GTtzg.js"),
|
|
15247
15245
|
parsers: [
|
|
15248
15246
|
"html",
|
|
15249
15247
|
"angular",
|
|
@@ -15254,7 +15252,7 @@ var { parsers, printers } = createParsersAndPrinters([
|
|
|
15254
15252
|
printers: ["html"]
|
|
15255
15253
|
},
|
|
15256
15254
|
{
|
|
15257
|
-
importPlugin: () => import("./markdown-
|
|
15255
|
+
importPlugin: () => import("./markdown-4I9EsAQD.js"),
|
|
15258
15256
|
parsers: [
|
|
15259
15257
|
"markdown",
|
|
15260
15258
|
"mdx",
|
|
@@ -15263,11 +15261,11 @@ var { parsers, printers } = createParsersAndPrinters([
|
|
|
15263
15261
|
printers: ["mdast"]
|
|
15264
15262
|
},
|
|
15265
15263
|
{
|
|
15266
|
-
importPlugin: () => import("./meriyah-
|
|
15264
|
+
importPlugin: () => import("./meriyah-Dyll-d_f.js"),
|
|
15267
15265
|
parsers: ["meriyah"]
|
|
15268
15266
|
},
|
|
15269
15267
|
{
|
|
15270
|
-
importPlugin: () => import("./postcss-
|
|
15268
|
+
importPlugin: () => import("./postcss-Cy4xGDrs.js"),
|
|
15271
15269
|
parsers: [
|
|
15272
15270
|
"css",
|
|
15273
15271
|
"less",
|
|
@@ -15276,11 +15274,11 @@ var { parsers, printers } = createParsersAndPrinters([
|
|
|
15276
15274
|
printers: ["postcss"]
|
|
15277
15275
|
},
|
|
15278
15276
|
{
|
|
15279
|
-
importPlugin: () => import("./typescript-
|
|
15277
|
+
importPlugin: () => import("./typescript-8enly1_u.js"),
|
|
15280
15278
|
parsers: ["typescript"]
|
|
15281
15279
|
},
|
|
15282
15280
|
{
|
|
15283
|
-
importPlugin: () => import("./yaml-
|
|
15281
|
+
importPlugin: () => import("./yaml-B6CM-Uf_.js"),
|
|
15284
15282
|
parsers: ["yaml"],
|
|
15285
15283
|
printers: ["yaml"]
|
|
15286
15284
|
}
|
|
@@ -15603,6 +15601,5 @@ var debugApis = {
|
|
|
15603
15601
|
printDocToString: withPlugins(printDocToString),
|
|
15604
15602
|
mockable
|
|
15605
15603
|
};
|
|
15606
|
-
|
|
15607
15604
|
//#endregion
|
|
15608
|
-
export { prettier_exports as n, index_exports as t };
|
|
15605
|
+
export { prettier_exports as n, index_exports as t };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import "./bindings-
|
|
2
|
-
import "./apis-
|
|
1
|
+
import "./bindings-Cpav0PNl.js";
|
|
2
|
+
import "./apis-BoXLniqX.js";
|
|
3
3
|
import { jsTextToDoc } from "./index.js";
|
|
4
|
-
|
|
5
4
|
//#region src-js/libs/prettier-plugin-oxfmt/text-to-doc.ts
|
|
6
5
|
const textToDoc = async (embeddedSourceText, textToDocOptions) => {
|
|
7
6
|
const { parser, parentParser, filepath, _oxfmtPluginOptionsJson } = textToDocOptions;
|
|
@@ -26,7 +25,6 @@ function detectParentContext(parentParser, options) {
|
|
|
26
25
|
}
|
|
27
26
|
return parentParser;
|
|
28
27
|
}
|
|
29
|
-
|
|
30
28
|
//#endregion
|
|
31
29
|
//#region src-js/libs/prettier-plugin-oxfmt/index.ts
|
|
32
30
|
/**
|
|
@@ -57,6 +55,5 @@ const parsers = {
|
|
|
57
55
|
typescript: oxfmtParser
|
|
58
56
|
};
|
|
59
57
|
const printers = { OXFMT: { print: ({ node }) => node } };
|
|
60
|
-
|
|
61
58
|
//#endregion
|
|
62
|
-
export { options, parsers, printers };
|
|
59
|
+
export { options, parsers, printers };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { i as __require, t as __commonJSMin } from "./chunk-DSjvVL_1-
|
|
1
|
+
import { i as __require, t as __commonJSMin } from "./chunk-DSjvVL_1-BYdvZw3N.js";
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
3
|
import fs from "node:fs";
|
|
4
|
-
|
|
5
4
|
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier@3.8.1/node_modules/prettier-plugin-tailwindcss/dist/resolve-pWjAK-4f.mjs
|
|
6
5
|
function expiringMap(duration) {
|
|
7
6
|
let map = /* @__PURE__ */ new Map();
|
|
@@ -4196,6 +4195,5 @@ function resolveJsFrom(base, id) {
|
|
|
4196
4195
|
function resolveCssFrom(base, id) {
|
|
4197
4196
|
return cssResolver.resolveSync({}, base, id) || id;
|
|
4198
4197
|
}
|
|
4199
|
-
|
|
4200
4198
|
//#endregion
|
|
4201
|
-
export { resolveJsFrom as a, resolveCssFrom as i, loadIfExists as n, maybeResolve as r, expiringMap as t };
|
|
4199
|
+
export { resolveJsFrom as a, resolveCssFrom as i, loadIfExists as n, maybeResolve as r, expiringMap as t };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { join } from "node:path";
|
|
2
2
|
import { stat, writeFile } from "node:fs/promises";
|
|
3
|
-
|
|
4
3
|
//#region src-js/cli/migration/shared.ts
|
|
5
4
|
async function hasOxfmtrcFile(cwd) {
|
|
6
5
|
return await isFile(join(cwd, ".oxfmtrc.json")) || await isFile(join(cwd, ".oxfmtrc.jsonc"));
|
|
@@ -31,6 +30,5 @@ async function isFile(path) {
|
|
|
31
30
|
return false;
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
|
-
|
|
35
33
|
//#endregion
|
|
36
|
-
export { saveOxfmtrcFile as i, exitWithError as n, hasOxfmtrcFile as r, createBlankOxfmtrcFile as t };
|
|
34
|
+
export { saveOxfmtrcFile as i, exitWithError as n, hasOxfmtrcFile as r, createBlankOxfmtrcFile as t };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { a as resolveJsFrom, t as expiringMap } from "./resolve-pWjAK-4f-
|
|
2
|
-
import { n as cacheForDirs, t as bigSign } from "./utils-D8dQkKEd-
|
|
1
|
+
import { a as resolveJsFrom, t as expiringMap } from "./resolve-pWjAK-4f-C1Z6M6r2.js";
|
|
2
|
+
import { n as cacheForDirs, t as bigSign } from "./utils-D8dQkKEd-BtAa7w-M.js";
|
|
3
3
|
import * as path from "node:path";
|
|
4
4
|
import { pathToFileURL } from "node:url";
|
|
5
5
|
import { dirname, resolve } from "path";
|
|
6
6
|
import { readdirSync, statSync } from "fs";
|
|
7
|
-
|
|
8
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
|
|
9
8
|
let seen = /* @__PURE__ */ new Set();
|
|
10
9
|
function warn(key, arg, ...args) {
|
|
@@ -104,14 +103,14 @@ async function getTailwindConfig(options) {
|
|
|
104
103
|
if (!stylesheet && !(mod === null || mod === void 0 ? void 0 : mod.__unstable__loadDesignSystem)) jsConfig = jsConfig ?? findClosestJsConfig(inputDir);
|
|
105
104
|
if (jsConfig) {
|
|
106
105
|
if (!stylesheet) return pathToApiMap.remember(`${pkgDir}:${jsConfig}`, async () => {
|
|
107
|
-
const { loadV3 } = await import("./v3-D-mr2VVh-
|
|
106
|
+
const { loadV3 } = await import("./v3-D-mr2VVh-FqDpKDIq.js");
|
|
108
107
|
return loadV3(pkgDir, jsConfig);
|
|
109
108
|
});
|
|
110
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.`);
|
|
111
110
|
}
|
|
112
111
|
if (mod && !mod.__unstable__loadDesignSystem) {
|
|
113
112
|
if (!stylesheet) return pathToApiMap.remember(`${pkgDir}:${jsConfig}`, async () => {
|
|
114
|
-
const { loadV3 } = await import("./v3-D-mr2VVh-
|
|
113
|
+
const { loadV3 } = await import("./v3-D-mr2VVh-FqDpKDIq.js");
|
|
115
114
|
return loadV3(pkgDir, jsConfig);
|
|
116
115
|
});
|
|
117
116
|
mod = null;
|
|
@@ -119,7 +118,7 @@ async function getTailwindConfig(options) {
|
|
|
119
118
|
}
|
|
120
119
|
if (mod && mod.__unstable__loadDesignSystem && pkgDir) stylesheet ?? (stylesheet = `${pkgDir}/theme.css`);
|
|
121
120
|
return pathToApiMap.remember(`${pkgDir}:${stylesheet}`, async () => {
|
|
122
|
-
const { loadV4 } = await import("./v4-C-HWEQJm-
|
|
121
|
+
const { loadV4 } = await import("./v4-C-HWEQJm-DL_vfdDs.js");
|
|
123
122
|
return loadV4(mod, stylesheet);
|
|
124
123
|
});
|
|
125
124
|
}
|
|
@@ -209,6 +208,5 @@ async function createSorter(opts) {
|
|
|
209
208
|
}
|
|
210
209
|
};
|
|
211
210
|
}
|
|
212
|
-
|
|
213
211
|
//#endregion
|
|
214
|
-
export { sortClasses as a, sortClassList as i, error as n, warn as o, getTailwindConfig as r, createSorter as t };
|
|
212
|
+
export { sortClasses as a, sortClassList as i, error as n, warn as o, getTailwindConfig as r, createSorter as t };
|
|
@@ -22930,6 +22930,5 @@ function G4(e, t) {
|
|
|
22930
22930
|
});
|
|
22931
22931
|
}
|
|
22932
22932
|
var Y4 = k0(G4);
|
|
22933
|
-
|
|
22934
22933
|
//#endregion
|
|
22935
|
-
export { I0 as default, ld as parsers };
|
|
22934
|
+
export { I0 as default, ld as parsers };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as path from "node:path";
|
|
2
|
-
|
|
3
2
|
//#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier@3.8.1/node_modules/prettier-plugin-tailwindcss/dist/utils-D8dQkKEd.mjs
|
|
4
3
|
function isNodeLike(value) {
|
|
5
4
|
return typeof (value === null || value === void 0 ? void 0 : value.type) === "string";
|
|
@@ -78,6 +77,5 @@ function cacheForDirs(cache, inputDir, value, targetDir, makeKey = (dir) => dir)
|
|
|
78
77
|
dir = path.dirname(dir);
|
|
79
78
|
}
|
|
80
79
|
}
|
|
81
|
-
|
|
82
80
|
//#endregion
|
|
83
|
-
export { visit as i, cacheForDirs as n, spliceChangesIntoString as r, bigSign as t };
|
|
81
|
+
export { visit as i, cacheForDirs as n, spliceChangesIntoString as r, bigSign as t };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { a as __toESM, i as __require, n as __esmMin, t as __commonJSMin } from "./chunk-DSjvVL_1-
|
|
2
|
-
import { t as bigSign } from "./utils-D8dQkKEd-
|
|
3
|
-
import { t as createJiti } from "./jiti-Bb1dT6Cw-
|
|
1
|
+
import { a as __toESM, i as __require, n as __esmMin, t as __commonJSMin } from "./chunk-DSjvVL_1-BYdvZw3N.js";
|
|
2
|
+
import { t as bigSign } from "./utils-D8dQkKEd-BtAa7w-M.js";
|
|
3
|
+
import { t as createJiti } from "./jiti-Bb1dT6Cw-BzC3jhZX.js";
|
|
4
4
|
import * as path from "node:path";
|
|
5
5
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
6
|
-
|
|
7
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
|
|
8
7
|
var getFilename, __filename;
|
|
9
8
|
var init_esm_shims = __esmMin((() => {
|
|
@@ -16704,6 +16703,5 @@ async function loadV3(pkgDir, jsConfig) {
|
|
|
16704
16703
|
return context.getClassOrder ? context.getClassOrder(classList) : getClassOrderPolyfill(classList);
|
|
16705
16704
|
} };
|
|
16706
16705
|
}
|
|
16707
|
-
|
|
16708
16706
|
//#endregion
|
|
16709
|
-
export { loadV3 };
|
|
16707
|
+
export { loadV3 };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { r as __exportAll } from "./chunk-DSjvVL_1-
|
|
2
|
-
import { a as resolveJsFrom, i as resolveCssFrom } from "./resolve-pWjAK-4f-
|
|
3
|
-
import { t as createJiti } from "./jiti-Bb1dT6Cw-
|
|
1
|
+
import { r as __exportAll } from "./chunk-DSjvVL_1-BYdvZw3N.js";
|
|
2
|
+
import { a as resolveJsFrom, i as resolveCssFrom } from "./resolve-pWjAK-4f-C1Z6M6r2.js";
|
|
3
|
+
import { t as createJiti } from "./jiti-Bb1dT6Cw-BzC3jhZX.js";
|
|
4
4
|
import * as path from "node:path";
|
|
5
5
|
import * as fs from "node:fs/promises";
|
|
6
6
|
import { pathToFileURL } from "node:url";
|
|
7
|
-
|
|
8
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
|
|
9
8
|
var l$1 = {
|
|
10
9
|
inherit: "inherit",
|
|
@@ -10754,6 +10753,5 @@ function createLoader({ legacy, jiti, filepath, onError }) {
|
|
|
10754
10753
|
};
|
|
10755
10754
|
};
|
|
10756
10755
|
}
|
|
10757
|
-
|
|
10758
10756
|
//#endregion
|
|
10759
|
-
export { loadV4 };
|
|
10757
|
+
export { loadV4 };
|
|
@@ -5262,6 +5262,5 @@ var Ha = {
|
|
|
5262
5262
|
};
|
|
5263
5263
|
var Ja = { yaml: qr };
|
|
5264
5264
|
var Xa = on(Gn(), 1).default.parse;
|
|
5265
|
-
|
|
5266
5265
|
//#endregion
|
|
5267
|
-
export { Xa as __parsePrettierYamlConfig, Ci as default, Ur as languages, Vr as options, ir as parsers, Ja as printers };
|
|
5266
|
+
export { Xa as __parsePrettierYamlConfig, Ci as default, Ur as languages, Vr as options, ir as parsers, Ja as printers };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxfmt",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.37.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.37.0",
|
|
71
|
+
"@oxfmt/binding-android-arm64": "0.37.0",
|
|
72
|
+
"@oxfmt/binding-win32-arm64-msvc": "0.37.0",
|
|
73
|
+
"@oxfmt/binding-linux-arm64-gnu": "0.37.0",
|
|
74
|
+
"@oxfmt/binding-linux-arm64-musl": "0.37.0",
|
|
75
|
+
"@oxfmt/binding-openharmony-arm64": "0.37.0",
|
|
76
|
+
"@oxfmt/binding-android-arm-eabi": "0.37.0",
|
|
77
|
+
"@oxfmt/binding-linux-arm-gnueabihf": "0.37.0",
|
|
78
|
+
"@oxfmt/binding-linux-arm-musleabihf": "0.37.0",
|
|
79
|
+
"@oxfmt/binding-win32-ia32-msvc": "0.37.0",
|
|
80
|
+
"@oxfmt/binding-linux-ppc64-gnu": "0.37.0",
|
|
81
|
+
"@oxfmt/binding-linux-riscv64-gnu": "0.37.0",
|
|
82
|
+
"@oxfmt/binding-linux-riscv64-musl": "0.37.0",
|
|
83
|
+
"@oxfmt/binding-linux-s390x-gnu": "0.37.0",
|
|
84
|
+
"@oxfmt/binding-darwin-x64": "0.37.0",
|
|
85
|
+
"@oxfmt/binding-win32-x64-msvc": "0.37.0",
|
|
86
|
+
"@oxfmt/binding-freebsd-x64": "0.37.0",
|
|
87
|
+
"@oxfmt/binding-linux-x64-gnu": "0.37.0",
|
|
88
|
+
"@oxfmt/binding-linux-x64-musl": "0.37.0"
|
|
89
89
|
}
|
|
90
90
|
}
|
package/dist/babel-CsJ8KocL.js
DELETED
package/dist/chunk-DpReBE2K.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module";
|
|
2
|
-
|
|
3
|
-
//#region \0rolldown/runtime.js
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __exportAll = (all, no_symbols) => {
|
|
6
|
-
let target = {};
|
|
7
|
-
for (var name in all) {
|
|
8
|
-
__defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: true
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
if (!no_symbols) {
|
|
14
|
-
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
15
|
-
}
|
|
16
|
-
return target;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
|
-
export { __exportAll as t };
|