@apst/oxfmt 0.0.0-dev.20260324.019d1d21
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/LICENSE +21 -0
- package/dist/constants/default.d.ts +62 -0
- package/dist/constants/default.js +43 -0
- package/dist/constants/default.js.map +1 -0
- package/dist/constants/default.mjs +42 -0
- package/dist/constants/default.mjs.map +1 -0
- package/dist/constants/ignore-patterns.d.ts +3 -0
- package/dist/constants/ignore-patterns.js +26 -0
- package/dist/constants/ignore-patterns.js.map +1 -0
- package/dist/constants/ignore-patterns.mjs +24 -0
- package/dist/constants/ignore-patterns.mjs.map +1 -0
- package/dist/constants/sort-imports.d.ts +28 -0
- package/dist/constants/sort-imports.js +46 -0
- package/dist/constants/sort-imports.js.map +1 -0
- package/dist/constants/sort-imports.mjs +43 -0
- package/dist/constants/sort-imports.mjs.map +1 -0
- package/dist/functions/define.d.ts +23 -0
- package/dist/functions/define.js +13 -0
- package/dist/functions/define.js.map +1 -0
- package/dist/functions/define.mjs +13 -0
- package/dist/functions/define.mjs.map +1 -0
- package/dist/functions/merge.js +11 -0
- package/dist/functions/merge.js.map +1 -0
- package/dist/functions/merge.mjs +11 -0
- package/dist/functions/merge.mjs.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -0
- package/dist/index.mjs +3 -0
- package/package.json +70 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026-present, Alpheus
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default config for Oxfmt.
|
|
3
|
+
*/
|
|
4
|
+
declare const CONFIG_DEFAULT: {
|
|
5
|
+
readonly arrowParens: "always";
|
|
6
|
+
readonly bracketSameLine: false;
|
|
7
|
+
readonly bracketSpacing: true;
|
|
8
|
+
readonly embeddedLanguageFormatting: "auto";
|
|
9
|
+
readonly endOfLine: "lf";
|
|
10
|
+
readonly htmlWhitespaceSensitivity: "ignore";
|
|
11
|
+
readonly ignorePatterns: ["**/.git/**", "**/__MACOSX/**", "**/.DS_Store", "**/node_modules/**", "**/.panda/**", "**/.next/**", "**/.expo/**", "**/.vercel/**", "**/dist/**", "build/**", "app/build/**", "web/build/**", "out/**", "app/out/**", "web/out/**", "**/package-lock.json", "**/yarn.lock", "**/pnpm-lock.yaml", "**/bun.lock"];
|
|
12
|
+
readonly insertFinalNewline: true;
|
|
13
|
+
readonly jsxSingleQuote: false;
|
|
14
|
+
readonly objectWrap: "preserve";
|
|
15
|
+
readonly overrides: [];
|
|
16
|
+
readonly printWidth: 80;
|
|
17
|
+
readonly proseWrap: "preserve";
|
|
18
|
+
readonly quoteProps: "as-needed";
|
|
19
|
+
readonly semi: true;
|
|
20
|
+
readonly singleAttributePerLine: true;
|
|
21
|
+
readonly singleQuote: false;
|
|
22
|
+
readonly sortImports: {
|
|
23
|
+
readonly groups: ["side_effect", {
|
|
24
|
+
readonly newlinesBetween: true;
|
|
25
|
+
}, "side_effect_style", {
|
|
26
|
+
readonly newlinesBetween: true;
|
|
27
|
+
}, "type-builtin", {
|
|
28
|
+
readonly newlinesBetween: true;
|
|
29
|
+
}, ["type-external", "type-subpath"], {
|
|
30
|
+
readonly newlinesBetween: true;
|
|
31
|
+
}, "type-internal", ["type-parent", "type-sibling", "type-index"], {
|
|
32
|
+
readonly newlinesBetween: true;
|
|
33
|
+
}, "type-import", {
|
|
34
|
+
readonly newlinesBetween: true;
|
|
35
|
+
}, "builtin", {
|
|
36
|
+
readonly newlinesBetween: true;
|
|
37
|
+
}, ["external", "subpath"], {
|
|
38
|
+
readonly newlinesBetween: true;
|
|
39
|
+
}, "internal", ["parent", "sibling", "index"], {
|
|
40
|
+
readonly newlinesBetween: true;
|
|
41
|
+
}, "style", {
|
|
42
|
+
readonly newlinesBetween: true;
|
|
43
|
+
}, "import", {
|
|
44
|
+
readonly newlinesBetween: true;
|
|
45
|
+
}, "unknown"];
|
|
46
|
+
readonly ignoreCase: true;
|
|
47
|
+
readonly internalPattern: ["~/", "@/", "#/"];
|
|
48
|
+
readonly newlinesBetween: false;
|
|
49
|
+
readonly order: "asc";
|
|
50
|
+
readonly partitionByComment: false;
|
|
51
|
+
readonly partitionByNewline: false;
|
|
52
|
+
readonly sortSideEffects: false;
|
|
53
|
+
};
|
|
54
|
+
readonly sortPackageJson: {
|
|
55
|
+
readonly sortScripts: false;
|
|
56
|
+
};
|
|
57
|
+
readonly tabWidth: 4;
|
|
58
|
+
readonly trailingComma: "all";
|
|
59
|
+
readonly useTabs: false;
|
|
60
|
+
};
|
|
61
|
+
export { CONFIG_DEFAULT };
|
|
62
|
+
//# sourceMappingURL=default.d.ts.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_constants_ignore_patterns = require('./ignore-patterns.js');
|
|
3
|
+
const require_constants_sort_imports = require('./sort-imports.js');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Default config for Oxfmt.
|
|
7
|
+
*/
|
|
8
|
+
const CONFIG_DEFAULT = {
|
|
9
|
+
arrowParens: "always",
|
|
10
|
+
bracketSameLine: false,
|
|
11
|
+
bracketSpacing: true,
|
|
12
|
+
embeddedLanguageFormatting: "auto",
|
|
13
|
+
endOfLine: "lf",
|
|
14
|
+
htmlWhitespaceSensitivity: "ignore",
|
|
15
|
+
ignorePatterns: require_constants_ignore_patterns.IGNORE_PATTERNS_DEFAULT,
|
|
16
|
+
insertFinalNewline: true,
|
|
17
|
+
jsxSingleQuote: false,
|
|
18
|
+
objectWrap: "preserve",
|
|
19
|
+
overrides: [],
|
|
20
|
+
printWidth: 80,
|
|
21
|
+
proseWrap: "preserve",
|
|
22
|
+
quoteProps: "as-needed",
|
|
23
|
+
semi: true,
|
|
24
|
+
singleAttributePerLine: true,
|
|
25
|
+
singleQuote: false,
|
|
26
|
+
sortImports: {
|
|
27
|
+
groups: require_constants_sort_imports.SORT_IMPORTS_GROUPS_DEFAULT,
|
|
28
|
+
ignoreCase: true,
|
|
29
|
+
internalPattern: require_constants_sort_imports.SORT_IMPORTS_INTERNAL_PATTERN_DEFAULT,
|
|
30
|
+
newlinesBetween: false,
|
|
31
|
+
order: "asc",
|
|
32
|
+
partitionByComment: false,
|
|
33
|
+
partitionByNewline: false,
|
|
34
|
+
sortSideEffects: false
|
|
35
|
+
},
|
|
36
|
+
sortPackageJson: { sortScripts: false },
|
|
37
|
+
tabWidth: 4,
|
|
38
|
+
trailingComma: "all",
|
|
39
|
+
useTabs: false
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
exports.CONFIG_DEFAULT = CONFIG_DEFAULT;
|
|
43
|
+
//# sourceMappingURL=default.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default.js","names":["IGNORE_PATTERNS_DEFAULT","SORT_IMPORTS_GROUPS_DEFAULT","SORT_IMPORTS_INTERNAL_PATTERN_DEFAULT"],"sources":["../../src/constants/default.ts"],"sourcesContent":["import type { OxfmtConfig } from \"oxfmt\";\n\nimport { IGNORE_PATTERNS_DEFAULT } from \"#/constants/ignore-patterns\";\nimport {\n SORT_IMPORTS_GROUPS_DEFAULT,\n SORT_IMPORTS_INTERNAL_PATTERN_DEFAULT,\n} from \"#/constants/sort-imports\";\n\n/**\n * Default config for Oxfmt.\n */\nconst CONFIG_DEFAULT = {\n arrowParens: \"always\",\n bracketSameLine: false,\n bracketSpacing: true,\n embeddedLanguageFormatting: \"auto\",\n endOfLine: \"lf\",\n htmlWhitespaceSensitivity: \"ignore\",\n ignorePatterns: IGNORE_PATTERNS_DEFAULT,\n insertFinalNewline: true,\n jsxSingleQuote: false,\n objectWrap: \"preserve\",\n overrides: [],\n printWidth: 80,\n proseWrap: \"preserve\",\n quoteProps: \"as-needed\",\n semi: true,\n singleAttributePerLine: true,\n singleQuote: false,\n sortImports: {\n groups: SORT_IMPORTS_GROUPS_DEFAULT,\n ignoreCase: true,\n internalPattern: SORT_IMPORTS_INTERNAL_PATTERN_DEFAULT,\n newlinesBetween: false,\n order: \"asc\",\n partitionByComment: false,\n partitionByNewline: false,\n sortSideEffects: false,\n },\n sortPackageJson: {\n sortScripts: false,\n },\n tabWidth: 4,\n trailingComma: \"all\",\n useTabs: false,\n} as const satisfies OxfmtConfig;\n\nexport { CONFIG_DEFAULT };\n"],"mappings":";;;;;;;AAWA,MAAM,iBAAiB;CACnB,aAAa;CACb,iBAAiB;CACjB,gBAAgB;CAChB,4BAA4B;CAC5B,WAAW;CACX,2BAA2B;CAC3B,gBAAgBA;CAChB,oBAAoB;CACpB,gBAAgB;CAChB,YAAY;CACZ,WAAW,EAAE;CACb,YAAY;CACZ,WAAW;CACX,YAAY;CACZ,MAAM;CACN,wBAAwB;CACxB,aAAa;CACb,aAAa;EACT,QAAQC;EACR,YAAY;EACZ,iBAAiBC;EACjB,iBAAiB;EACjB,OAAO;EACP,oBAAoB;EACpB,oBAAoB;EACpB,iBAAiB;EACpB;CACD,iBAAiB,EACb,aAAa,OAChB;CACD,UAAU;CACV,eAAe;CACf,SAAS;CACZ"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { IGNORE_PATTERNS_DEFAULT } from "./ignore-patterns.mjs";
|
|
2
|
+
import { SORT_IMPORTS_GROUPS_DEFAULT, SORT_IMPORTS_INTERNAL_PATTERN_DEFAULT } from "./sort-imports.mjs";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Default config for Oxfmt.
|
|
6
|
+
*/
|
|
7
|
+
const CONFIG_DEFAULT = {
|
|
8
|
+
arrowParens: "always",
|
|
9
|
+
bracketSameLine: false,
|
|
10
|
+
bracketSpacing: true,
|
|
11
|
+
embeddedLanguageFormatting: "auto",
|
|
12
|
+
endOfLine: "lf",
|
|
13
|
+
htmlWhitespaceSensitivity: "ignore",
|
|
14
|
+
ignorePatterns: IGNORE_PATTERNS_DEFAULT,
|
|
15
|
+
insertFinalNewline: true,
|
|
16
|
+
jsxSingleQuote: false,
|
|
17
|
+
objectWrap: "preserve",
|
|
18
|
+
overrides: [],
|
|
19
|
+
printWidth: 80,
|
|
20
|
+
proseWrap: "preserve",
|
|
21
|
+
quoteProps: "as-needed",
|
|
22
|
+
semi: true,
|
|
23
|
+
singleAttributePerLine: true,
|
|
24
|
+
singleQuote: false,
|
|
25
|
+
sortImports: {
|
|
26
|
+
groups: SORT_IMPORTS_GROUPS_DEFAULT,
|
|
27
|
+
ignoreCase: true,
|
|
28
|
+
internalPattern: SORT_IMPORTS_INTERNAL_PATTERN_DEFAULT,
|
|
29
|
+
newlinesBetween: false,
|
|
30
|
+
order: "asc",
|
|
31
|
+
partitionByComment: false,
|
|
32
|
+
partitionByNewline: false,
|
|
33
|
+
sortSideEffects: false
|
|
34
|
+
},
|
|
35
|
+
sortPackageJson: { sortScripts: false },
|
|
36
|
+
tabWidth: 4,
|
|
37
|
+
trailingComma: "all",
|
|
38
|
+
useTabs: false
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export { CONFIG_DEFAULT };
|
|
42
|
+
//# sourceMappingURL=default.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default.mjs","names":[],"sources":["../../src/constants/default.ts"],"sourcesContent":["import type { OxfmtConfig } from \"oxfmt\";\n\nimport { IGNORE_PATTERNS_DEFAULT } from \"#/constants/ignore-patterns\";\nimport {\n SORT_IMPORTS_GROUPS_DEFAULT,\n SORT_IMPORTS_INTERNAL_PATTERN_DEFAULT,\n} from \"#/constants/sort-imports\";\n\n/**\n * Default config for Oxfmt.\n */\nconst CONFIG_DEFAULT = {\n arrowParens: \"always\",\n bracketSameLine: false,\n bracketSpacing: true,\n embeddedLanguageFormatting: \"auto\",\n endOfLine: \"lf\",\n htmlWhitespaceSensitivity: \"ignore\",\n ignorePatterns: IGNORE_PATTERNS_DEFAULT,\n insertFinalNewline: true,\n jsxSingleQuote: false,\n objectWrap: \"preserve\",\n overrides: [],\n printWidth: 80,\n proseWrap: \"preserve\",\n quoteProps: \"as-needed\",\n semi: true,\n singleAttributePerLine: true,\n singleQuote: false,\n sortImports: {\n groups: SORT_IMPORTS_GROUPS_DEFAULT,\n ignoreCase: true,\n internalPattern: SORT_IMPORTS_INTERNAL_PATTERN_DEFAULT,\n newlinesBetween: false,\n order: \"asc\",\n partitionByComment: false,\n partitionByNewline: false,\n sortSideEffects: false,\n },\n sortPackageJson: {\n sortScripts: false,\n },\n tabWidth: 4,\n trailingComma: \"all\",\n useTabs: false,\n} as const satisfies OxfmtConfig;\n\nexport { CONFIG_DEFAULT };\n"],"mappings":";;;;;;AAWA,MAAM,iBAAiB;CACnB,aAAa;CACb,iBAAiB;CACjB,gBAAgB;CAChB,4BAA4B;CAC5B,WAAW;CACX,2BAA2B;CAC3B,gBAAgB;CAChB,oBAAoB;CACpB,gBAAgB;CAChB,YAAY;CACZ,WAAW,EAAE;CACb,YAAY;CACZ,WAAW;CACX,YAAY;CACZ,MAAM;CACN,wBAAwB;CACxB,aAAa;CACb,aAAa;EACT,QAAQ;EACR,YAAY;EACZ,iBAAiB;EACjB,iBAAiB;EACjB,OAAO;EACP,oBAAoB;EACpB,oBAAoB;EACpB,iBAAiB;EACpB;CACD,iBAAiB,EACb,aAAa,OAChB;CACD,UAAU;CACV,eAAe;CACf,SAAS;CACZ"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const IGNORE_PATTERNS_DEFAULT: ["**/.git/**", "**/__MACOSX/**", "**/.DS_Store", "**/node_modules/**", "**/.panda/**", "**/.next/**", "**/.expo/**", "**/.vercel/**", "**/dist/**", "build/**", "app/build/**", "web/build/**", "out/**", "app/out/**", "web/out/**", "**/package-lock.json", "**/yarn.lock", "**/pnpm-lock.yaml", "**/bun.lock"];
|
|
2
|
+
export { IGNORE_PATTERNS_DEFAULT };
|
|
3
|
+
//# sourceMappingURL=ignore-patterns.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
|
|
3
|
+
const IGNORE_PATTERNS_DEFAULT = [
|
|
4
|
+
"**/.git/**",
|
|
5
|
+
"**/__MACOSX/**",
|
|
6
|
+
"**/.DS_Store",
|
|
7
|
+
"**/node_modules/**",
|
|
8
|
+
"**/.panda/**",
|
|
9
|
+
"**/.next/**",
|
|
10
|
+
"**/.expo/**",
|
|
11
|
+
"**/.vercel/**",
|
|
12
|
+
"**/dist/**",
|
|
13
|
+
"build/**",
|
|
14
|
+
"app/build/**",
|
|
15
|
+
"web/build/**",
|
|
16
|
+
"out/**",
|
|
17
|
+
"app/out/**",
|
|
18
|
+
"web/out/**",
|
|
19
|
+
"**/package-lock.json",
|
|
20
|
+
"**/yarn.lock",
|
|
21
|
+
"**/pnpm-lock.yaml",
|
|
22
|
+
"**/bun.lock"
|
|
23
|
+
];
|
|
24
|
+
|
|
25
|
+
exports.IGNORE_PATTERNS_DEFAULT = IGNORE_PATTERNS_DEFAULT;
|
|
26
|
+
//# sourceMappingURL=ignore-patterns.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ignore-patterns.js","names":[],"sources":["../../src/constants/ignore-patterns.ts"],"sourcesContent":["const IGNORE_PATTERNS_DEFAULT = [\n // git\n \"**/.git/**\",\n // macOS\n \"**/__MACOSX/**\",\n \"**/.DS_Store\",\n // node modules\n \"**/node_modules/**\",\n // build\n \"**/.panda/**\",\n \"**/.next/**\",\n \"**/.expo/**\",\n \"**/.vercel/**\",\n \"**/dist/**\",\n \"build/**\",\n \"app/build/**\",\n \"web/build/**\",\n \"out/**\",\n \"app/out/**\",\n \"web/out/**\",\n // lock\n \"**/package-lock.json\",\n \"**/yarn.lock\",\n \"**/pnpm-lock.yaml\",\n \"**/bun.lock\",\n] as const satisfies string[];\n\nexport { IGNORE_PATTERNS_DEFAULT };\n"],"mappings":";;AAAA,MAAM,0BAA0B;CAE5B;CAEA;CACA;CAEA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACH"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const IGNORE_PATTERNS_DEFAULT = [
|
|
2
|
+
"**/.git/**",
|
|
3
|
+
"**/__MACOSX/**",
|
|
4
|
+
"**/.DS_Store",
|
|
5
|
+
"**/node_modules/**",
|
|
6
|
+
"**/.panda/**",
|
|
7
|
+
"**/.next/**",
|
|
8
|
+
"**/.expo/**",
|
|
9
|
+
"**/.vercel/**",
|
|
10
|
+
"**/dist/**",
|
|
11
|
+
"build/**",
|
|
12
|
+
"app/build/**",
|
|
13
|
+
"web/build/**",
|
|
14
|
+
"out/**",
|
|
15
|
+
"app/out/**",
|
|
16
|
+
"web/out/**",
|
|
17
|
+
"**/package-lock.json",
|
|
18
|
+
"**/yarn.lock",
|
|
19
|
+
"**/pnpm-lock.yaml",
|
|
20
|
+
"**/bun.lock"
|
|
21
|
+
];
|
|
22
|
+
|
|
23
|
+
export { IGNORE_PATTERNS_DEFAULT };
|
|
24
|
+
//# sourceMappingURL=ignore-patterns.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ignore-patterns.mjs","names":[],"sources":["../../src/constants/ignore-patterns.ts"],"sourcesContent":["const IGNORE_PATTERNS_DEFAULT = [\n // git\n \"**/.git/**\",\n // macOS\n \"**/__MACOSX/**\",\n \"**/.DS_Store\",\n // node modules\n \"**/node_modules/**\",\n // build\n \"**/.panda/**\",\n \"**/.next/**\",\n \"**/.expo/**\",\n \"**/.vercel/**\",\n \"**/dist/**\",\n \"build/**\",\n \"app/build/**\",\n \"web/build/**\",\n \"out/**\",\n \"app/out/**\",\n \"web/out/**\",\n // lock\n \"**/package-lock.json\",\n \"**/yarn.lock\",\n \"**/pnpm-lock.yaml\",\n \"**/bun.lock\",\n] as const satisfies string[];\n\nexport { IGNORE_PATTERNS_DEFAULT };\n"],"mappings":"AAAA,MAAM,0BAA0B;CAE5B;CAEA;CACA;CAEA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACH"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { OxfmtConfig } from "oxfmt";
|
|
2
|
+
type SortGroupItemConfigArray = Required<Required<OxfmtConfig>["sortImports"]>["groups"];
|
|
3
|
+
declare const SORT_IMPORTS_GROUPS_DEFAULT: ["side_effect", {
|
|
4
|
+
readonly newlinesBetween: true;
|
|
5
|
+
}, "side_effect_style", {
|
|
6
|
+
readonly newlinesBetween: true;
|
|
7
|
+
}, "type-builtin", {
|
|
8
|
+
readonly newlinesBetween: true;
|
|
9
|
+
}, ["type-external", "type-subpath"], {
|
|
10
|
+
readonly newlinesBetween: true;
|
|
11
|
+
}, "type-internal", ["type-parent", "type-sibling", "type-index"], {
|
|
12
|
+
readonly newlinesBetween: true;
|
|
13
|
+
}, "type-import", {
|
|
14
|
+
readonly newlinesBetween: true;
|
|
15
|
+
}, "builtin", {
|
|
16
|
+
readonly newlinesBetween: true;
|
|
17
|
+
}, ["external", "subpath"], {
|
|
18
|
+
readonly newlinesBetween: true;
|
|
19
|
+
}, "internal", ["parent", "sibling", "index"], {
|
|
20
|
+
readonly newlinesBetween: true;
|
|
21
|
+
}, "style", {
|
|
22
|
+
readonly newlinesBetween: true;
|
|
23
|
+
}, "import", {
|
|
24
|
+
readonly newlinesBetween: true;
|
|
25
|
+
}, "unknown"];
|
|
26
|
+
declare const SORT_IMPORTS_INTERNAL_PATTERN_DEFAULT: ["~/", "@/", "#/"];
|
|
27
|
+
export { SORT_IMPORTS_GROUPS_DEFAULT, SORT_IMPORTS_INTERNAL_PATTERN_DEFAULT, type SortGroupItemConfigArray };
|
|
28
|
+
//# sourceMappingURL=sort-imports.d.ts.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
|
|
3
|
+
const SORT_IMPORTS_GROUPS_DEFAULT = [
|
|
4
|
+
"side_effect",
|
|
5
|
+
{ newlinesBetween: true },
|
|
6
|
+
"side_effect_style",
|
|
7
|
+
{ newlinesBetween: true },
|
|
8
|
+
"type-builtin",
|
|
9
|
+
{ newlinesBetween: true },
|
|
10
|
+
["type-external", "type-subpath"],
|
|
11
|
+
{ newlinesBetween: true },
|
|
12
|
+
"type-internal",
|
|
13
|
+
[
|
|
14
|
+
"type-parent",
|
|
15
|
+
"type-sibling",
|
|
16
|
+
"type-index"
|
|
17
|
+
],
|
|
18
|
+
{ newlinesBetween: true },
|
|
19
|
+
"type-import",
|
|
20
|
+
{ newlinesBetween: true },
|
|
21
|
+
"builtin",
|
|
22
|
+
{ newlinesBetween: true },
|
|
23
|
+
["external", "subpath"],
|
|
24
|
+
{ newlinesBetween: true },
|
|
25
|
+
"internal",
|
|
26
|
+
[
|
|
27
|
+
"parent",
|
|
28
|
+
"sibling",
|
|
29
|
+
"index"
|
|
30
|
+
],
|
|
31
|
+
{ newlinesBetween: true },
|
|
32
|
+
"style",
|
|
33
|
+
{ newlinesBetween: true },
|
|
34
|
+
"import",
|
|
35
|
+
{ newlinesBetween: true },
|
|
36
|
+
"unknown"
|
|
37
|
+
];
|
|
38
|
+
const SORT_IMPORTS_INTERNAL_PATTERN_DEFAULT = [
|
|
39
|
+
"~/",
|
|
40
|
+
"@/",
|
|
41
|
+
"#/"
|
|
42
|
+
];
|
|
43
|
+
|
|
44
|
+
exports.SORT_IMPORTS_GROUPS_DEFAULT = SORT_IMPORTS_GROUPS_DEFAULT;
|
|
45
|
+
exports.SORT_IMPORTS_INTERNAL_PATTERN_DEFAULT = SORT_IMPORTS_INTERNAL_PATTERN_DEFAULT;
|
|
46
|
+
//# sourceMappingURL=sort-imports.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sort-imports.js","names":[],"sources":["../../src/constants/sort-imports.ts"],"sourcesContent":["import type { OxfmtConfig } from \"oxfmt\";\n\ntype SortGroupItemConfigArray = Required<\n Required<OxfmtConfig>[\"sortImports\"]\n>[\"groups\"];\n\nconst SORT_IMPORTS_GROUPS_DEFAULT = [\n // import \"p\";\n \"side_effect\",\n {\n newlinesBetween: true,\n },\n // import \"./index.css\";\n \"side_effect_style\",\n {\n newlinesBetween: true,\n },\n // import type Path from \"node:path\";\n \"type-builtin\",\n {\n newlinesBetween: true,\n },\n // import type { x } from \"p\";\n [\n \"type-external\",\n \"type-subpath\",\n ],\n {\n newlinesBetween: true,\n },\n // import type { x } from \"#/p\";\n \"type-internal\",\n [\n \"type-parent\",\n \"type-sibling\",\n \"type-index\",\n ],\n {\n newlinesBetween: true,\n },\n // others\n \"type-import\",\n {\n newlinesBetween: true,\n },\n // import Path from \"node:path\";\n \"builtin\",\n {\n newlinesBetween: true,\n },\n // import { x } from \"p\";\n [\n \"external\",\n \"subpath\",\n ],\n {\n newlinesBetween: true,\n },\n // import { x } from \"#/p\";\n \"internal\",\n [\n \"parent\",\n \"sibling\",\n \"index\",\n ],\n {\n newlinesBetween: true,\n },\n // import x from \"./index.css\";\n \"style\",\n {\n newlinesBetween: true,\n },\n // others\n \"import\",\n {\n newlinesBetween: true,\n },\n \"unknown\",\n] as const satisfies SortGroupItemConfigArray;\n\nconst SORT_IMPORTS_INTERNAL_PATTERN_DEFAULT = [\n \"~/\",\n \"@/\",\n \"#/\",\n] as const satisfies string[];\n\nexport type { SortGroupItemConfigArray };\nexport { SORT_IMPORTS_GROUPS_DEFAULT, SORT_IMPORTS_INTERNAL_PATTERN_DEFAULT };\n"],"mappings":";;AAMA,MAAM,8BAA8B;CAEhC;CACA,EACI,iBAAiB,MACpB;CAED;CACA,EACI,iBAAiB,MACpB;CAED;CACA,EACI,iBAAiB,MACpB;CAED,CACI,iBACA,eACH;CACD,EACI,iBAAiB,MACpB;CAED;CACA;EACI;EACA;EACA;EACH;CACD,EACI,iBAAiB,MACpB;CAED;CACA,EACI,iBAAiB,MACpB;CAED;CACA,EACI,iBAAiB,MACpB;CAED,CACI,YACA,UACH;CACD,EACI,iBAAiB,MACpB;CAED;CACA;EACI;EACA;EACA;EACH;CACD,EACI,iBAAiB,MACpB;CAED;CACA,EACI,iBAAiB,MACpB;CAED;CACA,EACI,iBAAiB,MACpB;CACD;CACH;AAED,MAAM,wCAAwC;CAC1C;CACA;CACA;CACH"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const SORT_IMPORTS_GROUPS_DEFAULT = [
|
|
2
|
+
"side_effect",
|
|
3
|
+
{ newlinesBetween: true },
|
|
4
|
+
"side_effect_style",
|
|
5
|
+
{ newlinesBetween: true },
|
|
6
|
+
"type-builtin",
|
|
7
|
+
{ newlinesBetween: true },
|
|
8
|
+
["type-external", "type-subpath"],
|
|
9
|
+
{ newlinesBetween: true },
|
|
10
|
+
"type-internal",
|
|
11
|
+
[
|
|
12
|
+
"type-parent",
|
|
13
|
+
"type-sibling",
|
|
14
|
+
"type-index"
|
|
15
|
+
],
|
|
16
|
+
{ newlinesBetween: true },
|
|
17
|
+
"type-import",
|
|
18
|
+
{ newlinesBetween: true },
|
|
19
|
+
"builtin",
|
|
20
|
+
{ newlinesBetween: true },
|
|
21
|
+
["external", "subpath"],
|
|
22
|
+
{ newlinesBetween: true },
|
|
23
|
+
"internal",
|
|
24
|
+
[
|
|
25
|
+
"parent",
|
|
26
|
+
"sibling",
|
|
27
|
+
"index"
|
|
28
|
+
],
|
|
29
|
+
{ newlinesBetween: true },
|
|
30
|
+
"style",
|
|
31
|
+
{ newlinesBetween: true },
|
|
32
|
+
"import",
|
|
33
|
+
{ newlinesBetween: true },
|
|
34
|
+
"unknown"
|
|
35
|
+
];
|
|
36
|
+
const SORT_IMPORTS_INTERNAL_PATTERN_DEFAULT = [
|
|
37
|
+
"~/",
|
|
38
|
+
"@/",
|
|
39
|
+
"#/"
|
|
40
|
+
];
|
|
41
|
+
|
|
42
|
+
export { SORT_IMPORTS_GROUPS_DEFAULT, SORT_IMPORTS_INTERNAL_PATTERN_DEFAULT };
|
|
43
|
+
//# sourceMappingURL=sort-imports.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sort-imports.mjs","names":[],"sources":["../../src/constants/sort-imports.ts"],"sourcesContent":["import type { OxfmtConfig } from \"oxfmt\";\n\ntype SortGroupItemConfigArray = Required<\n Required<OxfmtConfig>[\"sortImports\"]\n>[\"groups\"];\n\nconst SORT_IMPORTS_GROUPS_DEFAULT = [\n // import \"p\";\n \"side_effect\",\n {\n newlinesBetween: true,\n },\n // import \"./index.css\";\n \"side_effect_style\",\n {\n newlinesBetween: true,\n },\n // import type Path from \"node:path\";\n \"type-builtin\",\n {\n newlinesBetween: true,\n },\n // import type { x } from \"p\";\n [\n \"type-external\",\n \"type-subpath\",\n ],\n {\n newlinesBetween: true,\n },\n // import type { x } from \"#/p\";\n \"type-internal\",\n [\n \"type-parent\",\n \"type-sibling\",\n \"type-index\",\n ],\n {\n newlinesBetween: true,\n },\n // others\n \"type-import\",\n {\n newlinesBetween: true,\n },\n // import Path from \"node:path\";\n \"builtin\",\n {\n newlinesBetween: true,\n },\n // import { x } from \"p\";\n [\n \"external\",\n \"subpath\",\n ],\n {\n newlinesBetween: true,\n },\n // import { x } from \"#/p\";\n \"internal\",\n [\n \"parent\",\n \"sibling\",\n \"index\",\n ],\n {\n newlinesBetween: true,\n },\n // import x from \"./index.css\";\n \"style\",\n {\n newlinesBetween: true,\n },\n // others\n \"import\",\n {\n newlinesBetween: true,\n },\n \"unknown\",\n] as const satisfies SortGroupItemConfigArray;\n\nconst SORT_IMPORTS_INTERNAL_PATTERN_DEFAULT = [\n \"~/\",\n \"@/\",\n \"#/\",\n] as const satisfies string[];\n\nexport type { SortGroupItemConfigArray };\nexport { SORT_IMPORTS_GROUPS_DEFAULT, SORT_IMPORTS_INTERNAL_PATTERN_DEFAULT };\n"],"mappings":"AAMA,MAAM,8BAA8B;CAEhC;CACA,EACI,iBAAiB,MACpB;CAED;CACA,EACI,iBAAiB,MACpB;CAED;CACA,EACI,iBAAiB,MACpB;CAED,CACI,iBACA,eACH;CACD,EACI,iBAAiB,MACpB;CAED;CACA;EACI;EACA;EACA;EACH;CACD,EACI,iBAAiB,MACpB;CAED;CACA,EACI,iBAAiB,MACpB;CAED;CACA,EACI,iBAAiB,MACpB;CAED,CACI,YACA,UACH;CACD,EACI,iBAAiB,MACpB;CAED;CACA;EACI;EACA;EACA;EACH;CACD,EACI,iBAAiB,MACpB;CAED;CACA,EACI,iBAAiB,MACpB;CAED;CACA,EACI,iBAAiB,MACpB;CACD;CACH;AAED,MAAM,wCAAwC;CAC1C;CACA;CACA;CACH"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OxfmtConfig } from "oxfmt";
|
|
2
|
+
/**
|
|
3
|
+
* Define Oxfmt configuration.
|
|
4
|
+
*
|
|
5
|
+
* All arrays will not be merged, adding new values will replace existing values.
|
|
6
|
+
*
|
|
7
|
+
* ### Example
|
|
8
|
+
*
|
|
9
|
+
* ```ts
|
|
10
|
+
* import { defineConfig } from "@apst/oxfmt";
|
|
11
|
+
* import { IGNORE_PATTERNS_DEFAULT } from "@apst/oxfmt/constants/ignore-patterns";
|
|
12
|
+
*
|
|
13
|
+
* export default defineConfig({
|
|
14
|
+
* ignorePatterns: [
|
|
15
|
+
* ...IGNORE_PATTERNS_DEFAULT,
|
|
16
|
+
* // ...
|
|
17
|
+
* ],
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
declare function defineConfig(config?: OxfmtConfig): OxfmtConfig;
|
|
22
|
+
export { defineConfig };
|
|
23
|
+
//# sourceMappingURL=define.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const require_constants_default = require('../constants/default.js');
|
|
2
|
+
const require_merge = require('./merge.js');
|
|
3
|
+
let es_toolkit = require("es-toolkit");
|
|
4
|
+
|
|
5
|
+
const defineConfigFn = (userConfig) => {
|
|
6
|
+
return require_merge.mergeConfig((0, es_toolkit.clone)(require_constants_default.CONFIG_DEFAULT), userConfig);
|
|
7
|
+
};
|
|
8
|
+
function defineConfig(config) {
|
|
9
|
+
return defineConfigFn(config);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
exports.defineConfig = defineConfig;
|
|
13
|
+
//# sourceMappingURL=define.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define.js","names":["mergeConfig","CONFIG_DEFAULT"],"sources":["../../src/functions/define.ts"],"sourcesContent":["import type { OxfmtConfig } from \"oxfmt\";\n\nimport { clone } from \"es-toolkit\";\n\nimport { CONFIG_DEFAULT } from \"#/constants/default\";\nimport { mergeConfig } from \"#/functions/merge\";\n\nconst defineConfigFn = (userConfig?: OxfmtConfig): OxfmtConfig => {\n return mergeConfig(clone(CONFIG_DEFAULT), userConfig);\n};\n\n/**\n * Define Oxfmt configuration.\n *\n * All arrays will not be merged, adding new values will replace existing values.\n *\n * ### Example\n *\n * ```ts\n * import { defineConfig } from \"@apst/oxfmt\";\n * import { IGNORE_PATTERNS_DEFAULT } from \"@apst/oxfmt/constants/ignore-patterns\";\n *\n * export default defineConfig({\n * ignorePatterns: [\n * ...IGNORE_PATTERNS_DEFAULT,\n * // ...\n * ],\n * });\n * ```\n */\nfunction defineConfig(config?: OxfmtConfig): OxfmtConfig;\n\nfunction defineConfig(config?: OxfmtConfig): OxfmtConfig {\n return defineConfigFn(config);\n}\n\nexport { defineConfig };\n"],"mappings":";;;;AAOA,MAAM,kBAAkB,eAA0C;AAC9D,QAAOA,gDAAkBC,yCAAe,EAAE,WAAW;;AAwBzD,SAAS,aAAa,QAAmC;AACrD,QAAO,eAAe,OAAO"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CONFIG_DEFAULT } from "../constants/default.mjs";
|
|
2
|
+
import { mergeConfig } from "./merge.mjs";
|
|
3
|
+
import { clone } from "es-toolkit";
|
|
4
|
+
|
|
5
|
+
const defineConfigFn = (userConfig) => {
|
|
6
|
+
return mergeConfig(clone(CONFIG_DEFAULT), userConfig);
|
|
7
|
+
};
|
|
8
|
+
function defineConfig(config) {
|
|
9
|
+
return defineConfigFn(config);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { defineConfig };
|
|
13
|
+
//# sourceMappingURL=define.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define.mjs","names":[],"sources":["../../src/functions/define.ts"],"sourcesContent":["import type { OxfmtConfig } from \"oxfmt\";\n\nimport { clone } from \"es-toolkit\";\n\nimport { CONFIG_DEFAULT } from \"#/constants/default\";\nimport { mergeConfig } from \"#/functions/merge\";\n\nconst defineConfigFn = (userConfig?: OxfmtConfig): OxfmtConfig => {\n return mergeConfig(clone(CONFIG_DEFAULT), userConfig);\n};\n\n/**\n * Define Oxfmt configuration.\n *\n * All arrays will not be merged, adding new values will replace existing values.\n *\n * ### Example\n *\n * ```ts\n * import { defineConfig } from \"@apst/oxfmt\";\n * import { IGNORE_PATTERNS_DEFAULT } from \"@apst/oxfmt/constants/ignore-patterns\";\n *\n * export default defineConfig({\n * ignorePatterns: [\n * ...IGNORE_PATTERNS_DEFAULT,\n * // ...\n * ],\n * });\n * ```\n */\nfunction defineConfig(config?: OxfmtConfig): OxfmtConfig;\n\nfunction defineConfig(config?: OxfmtConfig): OxfmtConfig {\n return defineConfigFn(config);\n}\n\nexport { defineConfig };\n"],"mappings":";;;;AAOA,MAAM,kBAAkB,eAA0C;AAC9D,QAAO,YAAY,MAAM,eAAe,EAAE,WAAW;;AAwBzD,SAAS,aAAa,QAAmC;AACrD,QAAO,eAAe,OAAO"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
let es_toolkit = require("es-toolkit");
|
|
2
|
+
|
|
3
|
+
const mergeConfig = (target, source) => {
|
|
4
|
+
if (!source) return target;
|
|
5
|
+
return (0, es_toolkit.mergeWith)(target, source, (_, target) => {
|
|
6
|
+
if (Array.isArray(target)) return target;
|
|
7
|
+
});
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
exports.mergeConfig = mergeConfig;
|
|
11
|
+
//# sourceMappingURL=merge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merge.js","names":[],"sources":["../../src/functions/merge.ts"],"sourcesContent":["import { mergeWith } from \"es-toolkit\";\n\nconst mergeConfig = <\n T extends Record<PropertyKey, any>,\n S extends Record<PropertyKey, any>,\n>(\n target: T,\n source?: S,\n): T & S => {\n if (!source) return target;\n\n return mergeWith(target, source, (_: unknown, target: unknown): unknown => {\n // array replacement\n if (Array.isArray(target)) return target;\n // default deep merge\n return void 0;\n });\n};\n\nexport { mergeConfig };\n"],"mappings":";;AAEA,MAAM,eAIF,QACA,WACQ;AACR,KAAI,CAAC,OAAQ,QAAO;AAEpB,kCAAiB,QAAQ,SAAS,GAAY,WAA6B;AAEvE,MAAI,MAAM,QAAQ,OAAO,CAAE,QAAO;GAGpC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { mergeWith } from "es-toolkit";
|
|
2
|
+
|
|
3
|
+
const mergeConfig = (target, source) => {
|
|
4
|
+
if (!source) return target;
|
|
5
|
+
return mergeWith(target, source, (_, target) => {
|
|
6
|
+
if (Array.isArray(target)) return target;
|
|
7
|
+
});
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { mergeConfig };
|
|
11
|
+
//# sourceMappingURL=merge.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merge.mjs","names":[],"sources":["../../src/functions/merge.ts"],"sourcesContent":["import { mergeWith } from \"es-toolkit\";\n\nconst mergeConfig = <\n T extends Record<PropertyKey, any>,\n S extends Record<PropertyKey, any>,\n>(\n target: T,\n source?: S,\n): T & S => {\n if (!source) return target;\n\n return mergeWith(target, source, (_: unknown, target: unknown): unknown => {\n // array replacement\n if (Array.isArray(target)) return target;\n // default deep merge\n return void 0;\n });\n};\n\nexport { mergeConfig };\n"],"mappings":";;AAEA,MAAM,eAIF,QACA,WACQ;AACR,KAAI,CAAC,OAAQ,QAAO;AAEpB,QAAO,UAAU,QAAQ,SAAS,GAAY,WAA6B;AAEvE,MAAI,MAAM,QAAQ,OAAO,CAAE,QAAO;GAGpC"}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
package/dist/index.mjs
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@apst/oxfmt",
|
|
3
|
+
"version": "0.0.0-dev.20260324.019d1d21",
|
|
4
|
+
"description": "A shareable Oxfmt configuration",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"oxfmt",
|
|
7
|
+
"configuration",
|
|
8
|
+
"config",
|
|
9
|
+
"oxc",
|
|
10
|
+
"ts",
|
|
11
|
+
"typescript",
|
|
12
|
+
"js",
|
|
13
|
+
"javascript"
|
|
14
|
+
],
|
|
15
|
+
"homepage": "https://github.com/alpheuscfg/oxfmt",
|
|
16
|
+
"bugs": "https://github.com/alpheuscfg/oxfmt/issues",
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/alpheuscfg/oxfmt.git",
|
|
20
|
+
"directory": "package"
|
|
21
|
+
},
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"author": {
|
|
24
|
+
"name": "Alpheus",
|
|
25
|
+
"email": "contact@alphe.us"
|
|
26
|
+
},
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"import": "./dist/index.mjs",
|
|
31
|
+
"require": "./dist/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./constants/default": {
|
|
34
|
+
"types": "./dist/constants/default.d.ts",
|
|
35
|
+
"import": "./dist/constants/default.mjs",
|
|
36
|
+
"require": "./dist/constants/default.js"
|
|
37
|
+
},
|
|
38
|
+
"./constants/ignore-patterns": {
|
|
39
|
+
"types": "./dist/constants/ignore-patterns.d.ts",
|
|
40
|
+
"import": "./dist/constants/ignore-patterns.mjs",
|
|
41
|
+
"require": "./dist/constants/ignore-patterns.js"
|
|
42
|
+
},
|
|
43
|
+
"./constants/sort-imports": {
|
|
44
|
+
"types": "./dist/constants/sort-imports.d.ts",
|
|
45
|
+
"import": "./dist/constants/sort-imports.mjs",
|
|
46
|
+
"require": "./dist/constants/sort-imports.js"
|
|
47
|
+
},
|
|
48
|
+
"./package.json": "./package.json"
|
|
49
|
+
},
|
|
50
|
+
"main": "./dist/index.js",
|
|
51
|
+
"module": "./dist/index.mjs",
|
|
52
|
+
"types": "./dist/index.d.ts",
|
|
53
|
+
"files": [
|
|
54
|
+
"dist"
|
|
55
|
+
],
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"es-toolkit": "^1.40.0"
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"oxfmt": "0.41.0"
|
|
61
|
+
},
|
|
62
|
+
"peerDependencies": {
|
|
63
|
+
"oxfmt": "^0.41.0"
|
|
64
|
+
},
|
|
65
|
+
"peerDependenciesMeta": {
|
|
66
|
+
"oxfmt": {
|
|
67
|
+
"optional": true
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|