@jadeja/ts 1.0.0-alpha.0 → 1.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +1 -1
  3. package/dist/{src/configs → configs}/oxfmt/base.d.ts +2 -2
  4. package/dist/{src/configs → configs}/oxfmt/base.d.ts.map +1 -1
  5. package/dist/{oxfmt.js → configs/oxfmt/base.js} +2 -9
  6. package/dist/configs/oxfmt/base.js.map +1 -0
  7. package/dist/{src/configs → configs}/oxfmt/lib.d.ts +2 -2
  8. package/dist/{src/configs → configs}/oxfmt/lib.d.ts.map +1 -1
  9. package/dist/configs/oxfmt/lib.js +7 -0
  10. package/dist/configs/oxfmt/lib.js.map +1 -0
  11. package/dist/{src/configs → configs}/oxfmt/next.d.ts +2 -2
  12. package/dist/{src/configs → configs}/oxfmt/next.d.ts.map +1 -1
  13. package/dist/configs/oxfmt/next.js +14 -0
  14. package/dist/configs/oxfmt/next.js.map +1 -0
  15. package/dist/{src/configs → configs}/oxlint/base.d.ts +8 -3
  16. package/dist/configs/oxlint/base.d.ts.map +1 -0
  17. package/dist/{oxlint.js → configs/oxlint/base.js} +10 -72
  18. package/dist/configs/oxlint/base.js.map +1 -0
  19. package/dist/{src/configs → configs}/oxlint/lib.d.ts +32 -27
  20. package/dist/configs/oxlint/lib.d.ts.map +1 -0
  21. package/dist/configs/oxlint/lib.js +7 -0
  22. package/dist/configs/oxlint/lib.js.map +1 -0
  23. package/dist/{src/configs → configs}/oxlint/next.d.ts +7 -3
  24. package/dist/configs/oxlint/next.d.ts.map +1 -0
  25. package/dist/configs/oxlint/next.js +70 -0
  26. package/dist/configs/oxlint/next.js.map +1 -0
  27. package/dist/configs/vite/base.d.ts +4 -0
  28. package/dist/configs/vite/base.d.ts.map +1 -0
  29. package/dist/configs/vite/base.js +18 -0
  30. package/dist/configs/vite/base.js.map +1 -0
  31. package/dist/configs/vite/lib.d.ts +18 -0
  32. package/dist/configs/vite/lib.d.ts.map +1 -0
  33. package/dist/configs/vite/lib.js +38 -0
  34. package/dist/configs/vite/lib.js.map +1 -0
  35. package/dist/lib/debounce.js +10 -0
  36. package/dist/lib/debounce.js.map +1 -0
  37. package/dist/lib/logger.js +15 -0
  38. package/dist/lib/logger.js.map +1 -0
  39. package/dist/{src/lib → lib}/operations.d.ts +3 -3
  40. package/dist/{src/lib → lib}/operations.d.ts.map +1 -1
  41. package/dist/lib/operations.js +21 -0
  42. package/dist/lib/operations.js.map +1 -0
  43. package/dist/lib/singleton.d.ts +12 -0
  44. package/dist/lib/singleton.d.ts.map +1 -0
  45. package/dist/lib/singleton.js +25 -0
  46. package/dist/lib/singleton.js.map +1 -0
  47. package/dist/lib/types.d.ts.map +1 -0
  48. package/dist/lib/types.js +6 -0
  49. package/dist/lib/types.js.map +1 -0
  50. package/dist/lib/utils.d.ts +13 -0
  51. package/dist/lib/utils.d.ts.map +1 -0
  52. package/dist/lib/utils.js +14 -0
  53. package/dist/lib/utils.js.map +1 -0
  54. package/dist/node_modules/.pnpm/glob@13.0.6/node_modules/glob/dist/esm/index.min.js +3105 -0
  55. package/dist/node_modules/.pnpm/glob@13.0.6/node_modules/glob/dist/esm/index.min.js.map +1 -0
  56. package/dist/{src/plugins → plugins}/vite/copy-folders.d.ts.map +1 -1
  57. package/dist/plugins/vite/copy-folders.js +22 -0
  58. package/dist/plugins/vite/copy-folders.js.map +1 -0
  59. package/dist/plugins/vite/remove-folders.d.ts +14 -0
  60. package/dist/plugins/vite/remove-folders.d.ts.map +1 -0
  61. package/dist/plugins/vite/remove-folders.js +18 -0
  62. package/dist/plugins/vite/remove-folders.js.map +1 -0
  63. package/dist/types/util.d.ts +33 -0
  64. package/dist/types/util.d.ts.map +1 -0
  65. package/package.json +31 -43
  66. package/dist/lib.js +0 -36
  67. package/dist/lib.js.map +0 -1
  68. package/dist/oxfmt.js.map +0 -1
  69. package/dist/oxlint.js.map +0 -1
  70. package/dist/src/configs/oxfmt/index.d.ts +0 -4
  71. package/dist/src/configs/oxfmt/index.d.ts.map +0 -1
  72. package/dist/src/configs/oxfmt/types.d.ts +0 -2
  73. package/dist/src/configs/oxfmt/types.d.ts.map +0 -1
  74. package/dist/src/configs/oxlint/base.d.ts.map +0 -1
  75. package/dist/src/configs/oxlint/index.d.ts +0 -4
  76. package/dist/src/configs/oxlint/index.d.ts.map +0 -1
  77. package/dist/src/configs/oxlint/lib.d.ts.map +0 -1
  78. package/dist/src/configs/oxlint/next.d.ts.map +0 -1
  79. package/dist/src/configs/oxlint/types.d.ts +0 -2
  80. package/dist/src/configs/oxlint/types.d.ts.map +0 -1
  81. package/dist/src/lib/index.d.ts +0 -5
  82. package/dist/src/lib/index.d.ts.map +0 -1
  83. package/dist/src/lib/types.d.ts.map +0 -1
  84. package/dist/src/lib/utils.d.ts +0 -8
  85. package/dist/src/lib/utils.d.ts.map +0 -1
  86. package/dist/src/plugins/vite/index.d.ts +0 -2
  87. package/dist/src/plugins/vite/index.d.ts.map +0 -1
  88. package/dist/src/types/index.d.ts +0 -2
  89. package/dist/src/types/index.d.ts.map +0 -1
  90. package/dist/src/types/shared.d.ts +0 -34
  91. package/dist/src/types/shared.d.ts.map +0 -1
  92. package/dist/vite-plugins.js +0 -22
  93. package/dist/vite-plugins.js.map +0 -1
  94. /package/dist/{src/configs → configs}/ts/base.json +0 -0
  95. /package/dist/{src/configs → configs}/ts/lib.json +0 -0
  96. /package/dist/{src/configs → configs}/ts/next.json +0 -0
  97. /package/dist/{src/lib → lib}/debounce.d.ts +0 -0
  98. /package/dist/{src/lib → lib}/debounce.d.ts.map +0 -0
  99. /package/dist/{src/lib → lib}/logger.d.ts +0 -0
  100. /package/dist/{src/lib → lib}/logger.d.ts.map +0 -0
  101. /package/dist/{src/lib → lib}/types.d.ts +0 -0
  102. /package/dist/{src/plugins → plugins}/vite/copy-folders.d.ts +0 -0
  103. /package/dist/{types.js → types/util.js} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.0-alpha.2
4
+
5
+ ## Patch Changes
6
+
7
+ - chore: bump version and add changelog entry
8
+
9
+ ## 1.0.0-alpha.1
10
+
11
+ ## Minor Changes
12
+
13
+ - refactor: package architecture
14
+ - remove all `index.ts` files
15
+ - remove `types.ts` files from `./src/configs`
16
+ - add **vite** configs
17
+ - add `singleton` class
18
+ - add remove folders vite plugin
19
+ - rename global types
20
+ - update `oxlint` to `1.65.0` to fix memory issue
21
+ - adapted manual input entry `viteConfig.build.rolldownOptions.input` instead of
22
+ `viteConfig.build.lib.entry`
23
+
3
24
  ## 1.0.0-alpha.0
4
25
 
5
26
  शुभारम्भः
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # TS
2
2
 
3
- _an opinionated collection of TypeScript tools_
3
+ _an opinionated TypeScript toolkit_
4
4
 
5
5
  ---
6
6
 
@@ -1,4 +1,4 @@
1
- declare const base: {
1
+ declare const oxfmtBase: {
2
2
  arrowParens: "always";
3
3
  bracketSpacing: true;
4
4
  endOfLine: "lf";
@@ -38,5 +38,5 @@ declare const base: {
38
38
  trailingComma: "all";
39
39
  useTabs: false;
40
40
  };
41
- export default base;
41
+ export default oxfmtBase;
42
42
  //# sourceMappingURL=base.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/configs/oxfmt/base.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDa,CAAC;AAIxB,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/configs/oxfmt/base.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDQ,CAAC;AAIxB,eAAe,SAAS,CAAC"}
@@ -51,15 +51,8 @@ var e = {
51
51
  tabWidth: 2,
52
52
  trailingComma: "all",
53
53
  useTabs: !1
54
- }, t = { ...e }, n = {
55
- ...e,
56
- bracketSameLine: !1,
57
- embeddedLanguageFormatting: "auto",
58
- htmlWhitespaceSensitivity: "css",
59
- jsxSingleQuote: !1,
60
- singleAttributePerLine: !1
61
54
  };
62
55
  //#endregion
63
- export { e as base, t as lib, n as next };
56
+ export { e as default };
64
57
 
65
- //# sourceMappingURL=oxfmt.js.map
58
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","names":[],"sources":["../../../src/configs/oxfmt/base.ts"],"sourcesContent":["import type { OxfmtConfig } from \"oxfmt\";\n\n/* ============================================================================================= */\n\nconst oxfmtBase = {\n arrowParens: \"always\",\n bracketSpacing: true,\n endOfLine: \"lf\",\n ignorePatterns: [],\n insertFinalNewline: true,\n jsdoc: {\n addDefaultToDescription: true,\n bracketSpacing: true,\n capitalizeDescriptions: false,\n commentLineStrategy: \"multiline\",\n descriptionTag: false,\n descriptionWithDot: false,\n keepUnparsableExampleIndent: true,\n lineWrappingStyle: \"greedy\",\n preferCodeFences: true,\n separateReturnsFromParam: true,\n separateTagGroups: true,\n },\n objectWrap: \"preserve\",\n printWidth: 100,\n proseWrap: \"always\",\n quoteProps: \"as-needed\",\n semi: true,\n singleQuote: false,\n sortImports: {\n groups: [\n [\"default-builtin\", \"named-builtin\"],\n \"wildcard-external\",\n [\"default-external\", \"named-external\"],\n [\"default-internal\", \"named-internal\"],\n [\"default-parent\", \"named-parent\"],\n [\"default-sibling\", \"named-sibling\"],\n [\"default-index\", \"named-index\"],\n \"unknown\",\n \"type-external\",\n \"type-internal\",\n \"type-parent\",\n \"type-sibling\",\n ],\n ignoreCase: true,\n internalPattern: [\"@/\"],\n newlinesBetween: true,\n order: \"asc\",\n partitionByComment: true,\n partitionByNewline: false,\n sortSideEffects: false,\n },\n sortPackageJson: false,\n tabWidth: 2,\n trailingComma: \"all\",\n useTabs: false,\n} satisfies OxfmtConfig;\n\n/* ============================================================================================= */\n\nexport default oxfmtBase;\n"],"mappings":";AAIA,IAAM,IAAY;CAChB,aAAa;CACb,gBAAgB;CAChB,WAAW;CACX,gBAAgB,CAAC;CACjB,oBAAoB;CACpB,OAAO;EACL,yBAAyB;EACzB,gBAAgB;EAChB,wBAAwB;EACxB,qBAAqB;EACrB,gBAAgB;EAChB,oBAAoB;EACpB,6BAA6B;EAC7B,mBAAmB;EACnB,kBAAkB;EAClB,0BAA0B;EAC1B,mBAAmB;CACrB;CACA,YAAY;CACZ,YAAY;CACZ,WAAW;CACX,YAAY;CACZ,MAAM;CACN,aAAa;CACb,aAAa;EACX,QAAQ;GACN,CAAC,mBAAmB,eAAe;GACnC;GACA,CAAC,oBAAoB,gBAAgB;GACrC,CAAC,oBAAoB,gBAAgB;GACrC,CAAC,kBAAkB,cAAc;GACjC,CAAC,mBAAmB,eAAe;GACnC,CAAC,iBAAiB,aAAa;GAC/B;GACA;GACA;GACA;GACA;EACF;EACA,YAAY;EACZ,iBAAiB,CAAC,IAAI;EACtB,iBAAiB;EACjB,OAAO;EACP,oBAAoB;EACpB,oBAAoB;EACpB,iBAAiB;CACnB;CACA,iBAAiB;CACjB,UAAU;CACV,eAAe;CACf,SAAS;AACX"}
@@ -1,4 +1,4 @@
1
- declare const lib: {
1
+ declare const oxfmtLib: {
2
2
  arrowParens: "always";
3
3
  bracketSpacing: true;
4
4
  endOfLine: "lf";
@@ -38,5 +38,5 @@ declare const lib: {
38
38
  trailingComma: "all";
39
39
  useTabs: false;
40
40
  };
41
- export default lib;
41
+ export default oxfmtLib;
42
42
  //# sourceMappingURL=lib.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../../../src/configs/oxfmt/lib.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoC,CAAC;AAI9C,eAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../../../src/configs/oxfmt/lib.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAyC,CAAC;AAIxD,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,7 @@
1
+ import e from "./base.js";
2
+ //#region src/configs/oxfmt/lib.ts
3
+ var t = { ...e };
4
+ //#endregion
5
+ export { t as default };
6
+
7
+ //# sourceMappingURL=lib.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lib.js","names":[],"sources":["../../../src/configs/oxfmt/lib.ts"],"sourcesContent":["import oxfmtBase from \"./base.ts\";\n\nimport type { OxfmtConfig } from \"oxfmt\";\n\n/* ============================================================================================= */\n\nconst oxfmtLib = { ...oxfmtBase } satisfies OxfmtConfig;\n\n/* ============================================================================================= */\n\nexport default oxfmtLib;\n"],"mappings":";;AAMA,IAAM,IAAW,EAAE,GAAG,EAAU"}
@@ -1,4 +1,4 @@
1
- declare const next: {
1
+ declare const oxfmtNext: {
2
2
  bracketSameLine: false;
3
3
  embeddedLanguageFormatting: "auto";
4
4
  htmlWhitespaceSensitivity: "css";
@@ -43,5 +43,5 @@ declare const next: {
43
43
  trailingComma: "all";
44
44
  useTabs: false;
45
45
  };
46
- export default next;
46
+ export default oxfmtNext;
47
47
  //# sourceMappingURL=next.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../../../../src/configs/oxfmt/next.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOa,CAAC;AAIxB,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../../../../src/configs/oxfmt/next.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWQ,CAAC;AAIxB,eAAe,SAAS,CAAC"}
@@ -0,0 +1,14 @@
1
+ import e from "./base.js";
2
+ //#region src/configs/oxfmt/next.ts
3
+ var t = {
4
+ ...e,
5
+ bracketSameLine: !1,
6
+ embeddedLanguageFormatting: "auto",
7
+ htmlWhitespaceSensitivity: "css",
8
+ jsxSingleQuote: !1,
9
+ singleAttributePerLine: !1
10
+ };
11
+ //#endregion
12
+ export { t as default };
13
+
14
+ //# sourceMappingURL=next.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"next.js","names":[],"sources":["../../../src/configs/oxfmt/next.ts"],"sourcesContent":["import oxfmtBase from \"./base.ts\";\n\nimport type { OxfmtConfig } from \"oxfmt\";\n\n/* ============================================================================================= */\n\nconst oxfmtNext = {\n //\n ...oxfmtBase,\n\n bracketSameLine: false,\n embeddedLanguageFormatting: \"auto\",\n htmlWhitespaceSensitivity: \"css\",\n jsxSingleQuote: false,\n singleAttributePerLine: false,\n\n //\n} satisfies OxfmtConfig;\n\n/* ============================================================================================= */\n\nexport default oxfmtNext;\n"],"mappings":";;AAMA,IAAM,IAAY;CAEhB,GAAG;CAEH,iBAAiB;CACjB,4BAA4B;CAC5B,2BAA2B;CAC3B,gBAAgB;CAChB,wBAAwB;AAG1B"}
@@ -1,4 +1,4 @@
1
- declare const base: {
1
+ declare const oxlintBase: {
2
2
  categories: {
3
3
  correctness: "error";
4
4
  nursery: "warn";
@@ -21,7 +21,10 @@ declare const base: {
21
21
  };
22
22
  plugins: ("jsdoc" | "node" | "eslint" | "unicorn" | "typescript" | "oxc" | "import" | "promise")[];
23
23
  rules: {
24
- "capitalized-comments": ["error", string, {
24
+ "eslint/arrow-body-style": ["error", string, {
25
+ requireReturnForObjectLiteral: boolean;
26
+ }];
27
+ "eslint/capitalized-comments": ["error", string, {
25
28
  block: {
26
29
  ignorePattern: string;
27
30
  };
@@ -55,6 +58,7 @@ declare const base: {
55
58
  "eslint/no-magic-numbers": "off";
56
59
  "eslint/no-plusplus": "off";
57
60
  "eslint/no-ternary": "off";
61
+ "eslint/no-undefined": "off";
58
62
  "eslint/no-underscore-dangle": ["error", {
59
63
  allow: never[];
60
64
  }];
@@ -72,6 +76,7 @@ declare const base: {
72
76
  "import/no-named-default": "off";
73
77
  "import/no-named-export": "off";
74
78
  "import/no-nodejs-modules": "off";
79
+ "import/prefer-default-export": "off";
75
80
  "jsdoc/require-param-type": "off";
76
81
  "jsdoc/require-returns": "off";
77
82
  "jsdoc/require-returns-type": "off";
@@ -101,5 +106,5 @@ declare const base: {
101
106
  "unicorn/switch-case-braces": "off";
102
107
  };
103
108
  };
104
- export default base;
109
+ export default oxlintBase;
105
110
  //# sourceMappingURL=base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/configs/oxlint/base.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsGQ,CAAC;AAIzB,eAAe,UAAU,CAAC"}
@@ -31,7 +31,12 @@ var e = {
31
31
  "unicorn"
32
32
  ],
33
33
  rules: {
34
- "capitalized-comments": [
34
+ "eslint/arrow-body-style": [
35
+ "error",
36
+ "always",
37
+ { requireReturnForObjectLiteral: !1 }
38
+ ],
39
+ "eslint/capitalized-comments": [
35
40
  "error",
36
41
  "never",
37
42
  {
@@ -68,6 +73,7 @@ var e = {
68
73
  "eslint/no-magic-numbers": "off",
69
74
  "eslint/no-plusplus": "off",
70
75
  "eslint/no-ternary": "off",
76
+ "eslint/no-undefined": "off",
71
77
  "eslint/no-underscore-dangle": ["error", { allow: [] }],
72
78
  "eslint/no-use-before-define": "off",
73
79
  "eslint/no-warning-comments": "off",
@@ -81,6 +87,7 @@ var e = {
81
87
  "import/no-named-default": "off",
82
88
  "import/no-named-export": "off",
83
89
  "import/no-nodejs-modules": "off",
90
+ "import/prefer-default-export": "off",
84
91
  "jsdoc/require-param-type": "off",
85
92
  "jsdoc/require-returns": "off",
86
93
  "jsdoc/require-returns-type": "off",
@@ -109,77 +116,8 @@ var e = {
109
116
  "unicorn/no-lonely-if": "off",
110
117
  "unicorn/switch-case-braces": "off"
111
118
  }
112
- }, t = e.rules["eslint/id-length"];
113
- t[1].exceptions = [
114
- ...t[1].exceptions,
115
- "h",
116
- "m",
117
- "p",
118
- "w",
119
- "y",
120
- "z"
121
- ];
122
- var n = {
123
- ...e,
124
- rules: {
125
- ...e.rules,
126
- "eslint/id-length": t
127
- }
128
- }, r = {
129
- ...e,
130
- env: {
131
- ...e.env,
132
- browser: !0
133
- },
134
- jsPlugins: [{
135
- name: "react-hooks-js",
136
- specifier: "eslint-plugin-react-hooks"
137
- }],
138
- plugins: [
139
- ...e.plugins,
140
- "jsx-a11y",
141
- "nextjs",
142
- "react",
143
- "react-perf"
144
- ],
145
- rules: {
146
- ...e.rules,
147
- "eslint/no-undefined": "off",
148
- "import/no-unassigned-import": ["error", { allow: ["**/*.css"] }],
149
- "react/forbid-component-props": ["error", { forbid: ["style"] }],
150
- "react/jsx-filename-extension": ["error", { extensions: ["jsx", "tsx"] }],
151
- "react/jsx-pascal-case": ["error", { allowAllCaps: !0 }],
152
- "react/jsx-props-no-spreading": "off",
153
- "react/jsx-max-depth": ["error", { max: 6 }],
154
- "react/no-multi-comp": ["error", { ignoreStateless: !0 }],
155
- "react/only-export-components": ["error", { allowExportNames: [
156
- "dynamicParams",
157
- "generateMetadata",
158
- "generateStaticParams",
159
- "metadata",
160
- "variants"
161
- ] }],
162
- "react/react-in-jsx-scope": "off",
163
- "react-hooks-js/error-boundaries": "error",
164
- "react-hooks-js/config": "error",
165
- "react-hooks-js/globals": "error",
166
- "react-hooks-js/immutability": "error",
167
- "react-hooks-js/incompatible-library": "error",
168
- "react-hooks-js/preserve-manual-memoization": "error",
169
- "react-hooks-js/purity": "error",
170
- "react-hooks-js/refs": "error",
171
- "react-hooks-js/set-state-in-effect": "error",
172
- "react-hooks-js/set-state-in-render": "error",
173
- "react-hooks-js/static-components": "error",
174
- "react-hooks-js/unsupported-syntax": "error",
175
- "react-hooks-js/use-memo": "error",
176
- "react-perf/jsx-no-jsx-as-prop": "off",
177
- "react-perf/jsx-no-new-array-as-prop": "off",
178
- "react-perf/jsx-no-new-function-as-prop": "off",
179
- "react-perf/jsx-no-new-object-as-prop": "off"
180
- }
181
119
  };
182
120
  //#endregion
183
- export { e as base, n as lib, r as next };
121
+ export { e as default };
184
122
 
185
- //# sourceMappingURL=oxlint.js.map
123
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","names":[],"sources":["../../../src/configs/oxlint/base.ts"],"sourcesContent":["import type { OxlintConfig } from \"oxlint\";\n\n/* ============================================================================================= */\n\nconst oxlintBase = {\n categories: {\n correctness: \"error\",\n nursery: \"warn\",\n pedantic: \"error\",\n perf: \"error\",\n restriction: \"error\",\n style: \"error\",\n suspicious: \"error\",\n },\n env: {\n builtin: true,\n node: true,\n },\n options: {\n denyWarnings: false,\n reportUnusedDisableDirectives: \"error\",\n respectEslintDisableDirectives: false,\n typeAware: true,\n typeCheck: false,\n },\n plugins: [\"eslint\", \"import\", \"jsdoc\", \"node\", \"oxc\", \"promise\", \"typescript\", \"unicorn\"],\n rules: {\n \"eslint/arrow-body-style\": [\"error\", \"always\", { requireReturnForObjectLiteral: false }],\n \"eslint/capitalized-comments\": [\n \"error\",\n \"never\",\n {\n block: {\n ignorePattern: \"/\\\\/\\\\*\\\\s*=+\\\\s*[\\\\r\\\\n]+(?:[\\\\s\\\\S]*?)[\\\\r\\\\n]+\\\\s*=+\\\\s*\\\\*\\\\//m\",\n },\n ignorePattern: \"^([A-Z]{2,}|[A-Z][A-Z0-9_-]*)(\\\\b|:)\",\n },\n ],\n \"eslint/class-methods-use-this\": \"off\",\n \"eslint/complexity\": [\"error\", { max: 30 }],\n \"eslint/id-length\": [\n \"error\",\n {\n checkGeneric: false,\n exceptions: [\"a\", \"b\", \"i\", \"j\", \"K\", \"T\", \"U\", \"x\"],\n },\n ],\n \"eslint/init-declarations\": \"off\",\n \"eslint/max-lines-per-function\": [\n \"error\",\n { max: 120, skipBlankLines: true, skipComments: true },\n ],\n \"eslint/max-params\": [\"error\", { max: 4 }],\n \"eslint/max-statements\": [\"error\", { max: 40 }],\n \"eslint/no-await-in-loop\": \"off\",\n \"eslint/no-continue\": \"off\",\n \"eslint/no-duplicate-imports\": [\"error\", { allowSeparateTypeImports: true }],\n \"eslint/no-magic-numbers\": \"off\",\n \"eslint/no-plusplus\": \"off\",\n \"eslint/no-ternary\": \"off\",\n \"eslint/no-undefined\": \"off\",\n \"eslint/no-underscore-dangle\": [\"error\", { allow: [] }],\n \"eslint/no-use-before-define\": \"off\",\n \"eslint/no-warning-comments\": \"off\",\n \"eslint/require-unicode-regexp\": \"off\",\n \"eslint/sort-imports\": \"off\",\n \"eslint/sort-keys\": \"off\",\n \"import/exports-last\": \"off\",\n \"import/group-exports\": \"off\",\n \"import/max-dependencies\": [\"error\", { max: 30 }],\n \"import/no-default-export\": \"off\",\n \"import/no-named-default\": \"off\",\n \"import/no-named-export\": \"off\",\n \"import/no-nodejs-modules\": \"off\",\n \"import/prefer-default-export\": \"off\",\n \"jsdoc/require-param-type\": \"off\",\n \"jsdoc/require-returns\": \"off\",\n \"jsdoc/require-returns-type\": \"off\",\n \"no-unused-vars\": [\n \"error\",\n {\n args: \"all\",\n argsIgnorePattern: \"^_\",\n caughtErrors: \"all\",\n caughtErrorsIgnorePattern: \"^_\",\n destructuredArrayIgnorePattern: \"^_\",\n },\n ],\n \"oxc/no-async-await\": \"off\",\n \"oxc/no-optional-chaining\": \"off\",\n \"oxc/no-rest-spread-properties\": \"off\",\n \"promise/avoid-new\": \"off\",\n \"typescript/explicit-function-return-type\": \"off\",\n \"typescript/explicit-module-boundary-types\": \"off\",\n \"typescript/no-inferrable-types\": \"off\",\n \"typescript/no-unnecessary-condition\": \"off\",\n \"typescript/no-unnecessary-type-parameters\": \"off\",\n \"typescript/no-unsafe-type-assertion\": \"off\",\n \"typescript/no-useless-default-assignment\": \"off\",\n \"typescript/prefer-readonly-parameter-types\": \"off\",\n \"typescript/restrict-template-expressions\": \"off\",\n \"typescript/strict-boolean-expressions\": \"off\",\n \"unicorn/no-null\": \"off\",\n \"unicorn/no-lonely-if\": \"off\",\n \"unicorn/switch-case-braces\": \"off\",\n },\n} satisfies OxlintConfig;\n\n/* ============================================================================================= */\n\nexport default oxlintBase;\n"],"mappings":";AAIA,IAAM,IAAa;CACjB,YAAY;EACV,aAAa;EACb,SAAS;EACT,UAAU;EACV,MAAM;EACN,aAAa;EACb,OAAO;EACP,YAAY;CACd;CACA,KAAK;EACH,SAAS;EACT,MAAM;CACR;CACA,SAAS;EACP,cAAc;EACd,+BAA+B;EAC/B,gCAAgC;EAChC,WAAW;EACX,WAAW;CACb;CACA,SAAS;EAAC;EAAU;EAAU;EAAS;EAAQ;EAAO;EAAW;EAAc;CAAS;CACxF,OAAO;EACL,2BAA2B;GAAC;GAAS;GAAU,EAAE,+BAA+B,GAAM;EAAC;EACvF,+BAA+B;GAC7B;GACA;GACA;IACE,OAAO,EACL,eAAe,sEACjB;IACA,eAAe;GACjB;EACF;EACA,iCAAiC;EACjC,qBAAqB,CAAC,SAAS,EAAE,KAAK,GAAG,CAAC;EAC1C,oBAAoB,CAClB,SACA;GACE,cAAc;GACd,YAAY;IAAC;IAAK;IAAK;IAAK;IAAK;IAAK;IAAK;IAAK;GAAG;EACrD,CACF;EACA,4BAA4B;EAC5B,iCAAiC,CAC/B,SACA;GAAE,KAAK;GAAK,gBAAgB;GAAM,cAAc;EAAK,CACvD;EACA,qBAAqB,CAAC,SAAS,EAAE,KAAK,EAAE,CAAC;EACzC,yBAAyB,CAAC,SAAS,EAAE,KAAK,GAAG,CAAC;EAC9C,2BAA2B;EAC3B,sBAAsB;EACtB,+BAA+B,CAAC,SAAS,EAAE,0BAA0B,GAAK,CAAC;EAC3E,2BAA2B;EAC3B,sBAAsB;EACtB,qBAAqB;EACrB,uBAAuB;EACvB,+BAA+B,CAAC,SAAS,EAAE,OAAO,CAAC,EAAE,CAAC;EACtD,+BAA+B;EAC/B,8BAA8B;EAC9B,iCAAiC;EACjC,uBAAuB;EACvB,oBAAoB;EACpB,uBAAuB;EACvB,wBAAwB;EACxB,2BAA2B,CAAC,SAAS,EAAE,KAAK,GAAG,CAAC;EAChD,4BAA4B;EAC5B,2BAA2B;EAC3B,0BAA0B;EAC1B,4BAA4B;EAC5B,gCAAgC;EAChC,4BAA4B;EAC5B,yBAAyB;EACzB,8BAA8B;EAC9B,kBAAkB,CAChB,SACA;GACE,MAAM;GACN,mBAAmB;GACnB,cAAc;GACd,2BAA2B;GAC3B,gCAAgC;EAClC,CACF;EACA,sBAAsB;EACtB,4BAA4B;EAC5B,iCAAiC;EACjC,qBAAqB;EACrB,4CAA4C;EAC5C,6CAA6C;EAC7C,kCAAkC;EAClC,uCAAuC;EACvC,6CAA6C;EAC7C,uCAAuC;EACvC,4CAA4C;EAC5C,8CAA8C;EAC9C,4CAA4C;EAC5C,yCAAyC;EACzC,mBAAmB;EACnB,wBAAwB;EACxB,8BAA8B;CAChC;AACF"}
@@ -1,10 +1,30 @@
1
- declare const lib: {
1
+ declare const oxlintLib: {
2
+ categories: {
3
+ correctness: "error";
4
+ nursery: "warn";
5
+ pedantic: "error";
6
+ perf: "error";
7
+ restriction: "error";
8
+ style: "error";
9
+ suspicious: "error";
10
+ };
11
+ env: {
12
+ builtin: true;
13
+ node: true;
14
+ };
15
+ options: {
16
+ denyWarnings: false;
17
+ reportUnusedDisableDirectives: "error";
18
+ respectEslintDisableDirectives: false;
19
+ typeAware: true;
20
+ typeCheck: false;
21
+ };
22
+ plugins: ("jsdoc" | "node" | "eslint" | "unicorn" | "typescript" | "oxc" | "import" | "promise")[];
2
23
  rules: {
3
- "eslint/id-length": ["error", {
4
- checkGeneric: boolean;
5
- exceptions: string[];
24
+ "eslint/arrow-body-style": ["error", string, {
25
+ requireReturnForObjectLiteral: boolean;
6
26
  }];
7
- "capitalized-comments": ["error", string, {
27
+ "eslint/capitalized-comments": ["error", string, {
8
28
  block: {
9
29
  ignorePattern: string;
10
30
  };
@@ -14,6 +34,10 @@ declare const lib: {
14
34
  "eslint/complexity": ["error", {
15
35
  max: number;
16
36
  }];
37
+ "eslint/id-length": ["error", {
38
+ checkGeneric: boolean;
39
+ exceptions: string[];
40
+ }];
17
41
  "eslint/init-declarations": "off";
18
42
  "eslint/max-lines-per-function": ["error", {
19
43
  max: number;
@@ -34,6 +58,7 @@ declare const lib: {
34
58
  "eslint/no-magic-numbers": "off";
35
59
  "eslint/no-plusplus": "off";
36
60
  "eslint/no-ternary": "off";
61
+ "eslint/no-undefined": "off";
37
62
  "eslint/no-underscore-dangle": ["error", {
38
63
  allow: never[];
39
64
  }];
@@ -51,6 +76,7 @@ declare const lib: {
51
76
  "import/no-named-default": "off";
52
77
  "import/no-named-export": "off";
53
78
  "import/no-nodejs-modules": "off";
79
+ "import/prefer-default-export": "off";
54
80
  "jsdoc/require-param-type": "off";
55
81
  "jsdoc/require-returns": "off";
56
82
  "jsdoc/require-returns-type": "off";
@@ -79,27 +105,6 @@ declare const lib: {
79
105
  "unicorn/no-lonely-if": "off";
80
106
  "unicorn/switch-case-braces": "off";
81
107
  };
82
- categories: {
83
- correctness: "error";
84
- nursery: "warn";
85
- pedantic: "error";
86
- perf: "error";
87
- restriction: "error";
88
- style: "error";
89
- suspicious: "error";
90
- };
91
- env: {
92
- builtin: true;
93
- node: true;
94
- };
95
- options: {
96
- denyWarnings: false;
97
- reportUnusedDisableDirectives: "error";
98
- respectEslintDisableDirectives: false;
99
- typeAware: true;
100
- typeCheck: false;
101
- };
102
- plugins: ("jsdoc" | "node" | "eslint" | "unicorn" | "typescript" | "oxc" | "import" | "promise")[];
103
108
  };
104
- export default lib;
109
+ export default oxlintLib;
105
110
  //# sourceMappingURL=lib.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../../../src/configs/oxlint/lib.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA2C,CAAC;AAI3D,eAAe,SAAS,CAAC"}
@@ -0,0 +1,7 @@
1
+ import e from "./base.js";
2
+ //#region src/configs/oxlint/lib.ts
3
+ var t = { ...e };
4
+ //#endregion
5
+ export { t as default };
6
+
7
+ //# sourceMappingURL=lib.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lib.js","names":[],"sources":["../../../src/configs/oxlint/lib.ts"],"sourcesContent":["import oxlintBase from \"./base.ts\";\n\nimport type { OxlintConfig } from \"oxlint\";\n\n/* ============================================================================================= */\n\nconst oxlintLib = { ...oxlintBase } satisfies OxlintConfig;\n\n/* ============================================================================================= */\n\nexport default oxlintLib;\n"],"mappings":";;AAMA,IAAM,IAAY,EAAE,GAAG,EAAW"}
@@ -1,4 +1,4 @@
1
- declare const next: {
1
+ declare const oxlintNext: {
2
2
  env: {
3
3
  browser: true;
4
4
  builtin: true;
@@ -51,7 +51,10 @@ declare const next: {
51
51
  "react-perf/jsx-no-new-array-as-prop": "off";
52
52
  "react-perf/jsx-no-new-function-as-prop": "off";
53
53
  "react-perf/jsx-no-new-object-as-prop": "off";
54
- "capitalized-comments": ["error", string, {
54
+ "eslint/arrow-body-style": ["error", string, {
55
+ requireReturnForObjectLiteral: boolean;
56
+ }];
57
+ "eslint/capitalized-comments": ["error", string, {
55
58
  block: {
56
59
  ignorePattern: string;
57
60
  };
@@ -102,6 +105,7 @@ declare const next: {
102
105
  "import/no-named-default": "off";
103
106
  "import/no-named-export": "off";
104
107
  "import/no-nodejs-modules": "off";
108
+ "import/prefer-default-export": "off";
105
109
  "jsdoc/require-param-type": "off";
106
110
  "jsdoc/require-returns": "off";
107
111
  "jsdoc/require-returns-type": "off";
@@ -147,5 +151,5 @@ declare const next: {
147
151
  typeCheck: false;
148
152
  };
149
153
  };
150
- export default next;
154
+ export default oxlintNext;
151
155
  //# sourceMappingURL=next.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../../../../src/configs/oxlint/next.ts"],"names":[],"mappings":"AAWA,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+DQ,CAAC;AAIzB,eAAe,UAAU,CAAC"}
@@ -0,0 +1,70 @@
1
+ import e from "./base.js";
2
+ //#region src/configs/oxlint/next.ts
3
+ var t = e.rules["eslint/id-length"];
4
+ t[1].exceptions = [
5
+ ...t[1].exceptions,
6
+ "h",
7
+ "m",
8
+ "p",
9
+ "w",
10
+ "y",
11
+ "z"
12
+ ];
13
+ var n = {
14
+ ...e,
15
+ env: {
16
+ ...e.env,
17
+ browser: !0
18
+ },
19
+ jsPlugins: [{
20
+ name: "react-hooks-js",
21
+ specifier: "eslint-plugin-react-hooks"
22
+ }],
23
+ plugins: [
24
+ ...e.plugins,
25
+ "jsx-a11y",
26
+ "nextjs",
27
+ "react",
28
+ "react-perf"
29
+ ],
30
+ rules: {
31
+ ...e.rules,
32
+ "eslint/no-undefined": "off",
33
+ "import/no-unassigned-import": ["error", { allow: ["**/*.css"] }],
34
+ "react/forbid-component-props": ["error", { forbid: ["style"] }],
35
+ "react/jsx-filename-extension": ["error", { extensions: ["jsx", "tsx"] }],
36
+ "react/jsx-pascal-case": ["error", { allowAllCaps: !0 }],
37
+ "react/jsx-props-no-spreading": "off",
38
+ "react/jsx-max-depth": ["error", { max: 6 }],
39
+ "react/no-multi-comp": ["error", { ignoreStateless: !0 }],
40
+ "react/only-export-components": ["error", { allowExportNames: [
41
+ "dynamicParams",
42
+ "generateMetadata",
43
+ "generateStaticParams",
44
+ "metadata",
45
+ "variants"
46
+ ] }],
47
+ "react/react-in-jsx-scope": "off",
48
+ "react-hooks-js/error-boundaries": "error",
49
+ "react-hooks-js/config": "error",
50
+ "react-hooks-js/globals": "error",
51
+ "react-hooks-js/immutability": "error",
52
+ "react-hooks-js/incompatible-library": "error",
53
+ "react-hooks-js/preserve-manual-memoization": "error",
54
+ "react-hooks-js/purity": "error",
55
+ "react-hooks-js/refs": "error",
56
+ "react-hooks-js/set-state-in-effect": "error",
57
+ "react-hooks-js/set-state-in-render": "error",
58
+ "react-hooks-js/static-components": "error",
59
+ "react-hooks-js/unsupported-syntax": "error",
60
+ "react-hooks-js/use-memo": "error",
61
+ "react-perf/jsx-no-jsx-as-prop": "off",
62
+ "react-perf/jsx-no-new-array-as-prop": "off",
63
+ "react-perf/jsx-no-new-function-as-prop": "off",
64
+ "react-perf/jsx-no-new-object-as-prop": "off"
65
+ }
66
+ };
67
+ //#endregion
68
+ export { n as default };
69
+
70
+ //# sourceMappingURL=next.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"next.js","names":[],"sources":["../../../src/configs/oxlint/next.ts"],"sourcesContent":["import oxlintBase from \"./base.ts\";\n\nimport type { OxlintConfig } from \"oxlint\";\n\n/* ============================================================================================= */\n\nconst eslintIdLength = oxlintBase.rules[\"eslint/id-length\"];\neslintIdLength[1].exceptions = [...eslintIdLength[1].exceptions, \"h\", \"m\", \"p\", \"w\", \"y\", \"z\"];\n\n/* ============================================================================================= */\n\nconst oxlintNext = {\n //\n ...oxlintBase,\n\n env: {\n //\n ...oxlintBase.env,\n\n browser: true,\n },\n\n jsPlugins: [\n {\n name: \"react-hooks-js\",\n specifier: \"eslint-plugin-react-hooks\",\n },\n ],\n\n plugins: [...oxlintBase.plugins, \"jsx-a11y\", \"nextjs\", \"react\", \"react-perf\"],\n\n rules: {\n //\n ...oxlintBase.rules,\n\n \"eslint/no-undefined\": \"off\",\n \"import/no-unassigned-import\": [\"error\", { allow: [\"**/*.css\"] }],\n \"react/forbid-component-props\": [\"error\", { forbid: [\"style\"] }],\n \"react/jsx-filename-extension\": [\"error\", { extensions: [\"jsx\", \"tsx\"] }],\n \"react/jsx-pascal-case\": [\"error\", { allowAllCaps: true }],\n \"react/jsx-props-no-spreading\": \"off\",\n \"react/jsx-max-depth\": [\"error\", { max: 6 }],\n \"react/no-multi-comp\": [\"error\", { ignoreStateless: true }],\n \"react/only-export-components\": [\n \"error\",\n {\n allowExportNames: [\n \"dynamicParams\",\n \"generateMetadata\",\n \"generateStaticParams\",\n \"metadata\",\n \"variants\",\n ],\n },\n ],\n \"react/react-in-jsx-scope\": \"off\",\n \"react-hooks-js/error-boundaries\": \"error\",\n \"react-hooks-js/config\": \"error\",\n \"react-hooks-js/globals\": \"error\",\n \"react-hooks-js/immutability\": \"error\",\n \"react-hooks-js/incompatible-library\": \"error\",\n \"react-hooks-js/preserve-manual-memoization\": \"error\",\n \"react-hooks-js/purity\": \"error\",\n \"react-hooks-js/refs\": \"error\",\n \"react-hooks-js/set-state-in-effect\": \"error\",\n \"react-hooks-js/set-state-in-render\": \"error\",\n \"react-hooks-js/static-components\": \"error\",\n \"react-hooks-js/unsupported-syntax\": \"error\",\n \"react-hooks-js/use-memo\": \"error\",\n \"react-perf/jsx-no-jsx-as-prop\": \"off\",\n \"react-perf/jsx-no-new-array-as-prop\": \"off\",\n \"react-perf/jsx-no-new-function-as-prop\": \"off\",\n \"react-perf/jsx-no-new-object-as-prop\": \"off\",\n },\n} satisfies OxlintConfig;\n\n/* ============================================================================================= */\n\nexport default oxlintNext;\n"],"mappings":";;AAMA,IAAM,IAAiB,EAAW,MAAM;AACxC,EAAe,GAAG,aAAa;CAAC,GAAG,EAAe,GAAG;CAAY;CAAK;CAAK;CAAK;CAAK;CAAK;AAAG;AAI7F,IAAM,IAAa;CAEjB,GAAG;CAEH,KAAK;EAEH,GAAG,EAAW;EAEd,SAAS;CACX;CAEA,WAAW,CACT;EACE,MAAM;EACN,WAAW;CACb,CACF;CAEA,SAAS;EAAC,GAAG,EAAW;EAAS;EAAY;EAAU;EAAS;CAAY;CAE5E,OAAO;EAEL,GAAG,EAAW;EAEd,uBAAuB;EACvB,+BAA+B,CAAC,SAAS,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC;EAChE,gCAAgC,CAAC,SAAS,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC;EAC/D,gCAAgC,CAAC,SAAS,EAAE,YAAY,CAAC,OAAO,KAAK,EAAE,CAAC;EACxE,yBAAyB,CAAC,SAAS,EAAE,cAAc,GAAK,CAAC;EACzD,gCAAgC;EAChC,uBAAuB,CAAC,SAAS,EAAE,KAAK,EAAE,CAAC;EAC3C,uBAAuB,CAAC,SAAS,EAAE,iBAAiB,GAAK,CAAC;EAC1D,gCAAgC,CAC9B,SACA,EACE,kBAAkB;GAChB;GACA;GACA;GACA;GACA;EACF,EACF,CACF;EACA,4BAA4B;EAC5B,mCAAmC;EACnC,yBAAyB;EACzB,0BAA0B;EAC1B,+BAA+B;EAC/B,uCAAuC;EACvC,8CAA8C;EAC9C,yBAAyB;EACzB,uBAAuB;EACvB,sCAAsC;EACtC,sCAAsC;EACtC,oCAAoC;EACpC,qCAAqC;EACrC,2BAA2B;EAC3B,iCAAiC;EACjC,uCAAuC;EACvC,0CAA0C;EAC1C,wCAAwC;CAC1C;AACF"}
@@ -0,0 +1,4 @@
1
+ import { UserConfig } from 'vite';
2
+ declare const viteBase: UserConfig;
3
+ export default viteBase;
4
+ //# sourceMappingURL=base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/configs/vite/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAIvC,QAAA,MAAM,QAAQ,EAAE,UAgBf,CAAC;AAIF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,18 @@
1
+ //#region src/configs/vite/base.ts
2
+ var e = { build: {
3
+ minify: "oxc",
4
+ target: [
5
+ "chrome109",
6
+ "firefox109",
7
+ "edge109",
8
+ "safari16.3"
9
+ ],
10
+ emptyOutDir: !0,
11
+ outDir: "dist",
12
+ sourcemap: !1,
13
+ rolldownOptions: { external: [/^node:/] }
14
+ } };
15
+ //#endregion
16
+ export { e as default };
17
+
18
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","names":[],"sources":["../../../src/configs/vite/base.ts"],"sourcesContent":["import type { UserConfig } from \"vite\";\n\n/* ============================================================================================= */\n\nconst viteBase: UserConfig = {\n build: {\n minify: \"oxc\",\n target: [\"chrome109\", \"firefox109\", \"edge109\", \"safari16.3\"],\n emptyOutDir: true,\n outDir: \"dist\",\n sourcemap: false,\n\n rolldownOptions: {\n // force these to be external (don't bundle them)\n external: [\n // exclude all node in-built modules\n /^node:/,\n ],\n },\n },\n};\n\n/* ============================================================================================= */\n\nexport default viteBase;\n"],"mappings":";AAIA,IAAM,IAAuB,EAC3B,OAAO;CACL,QAAQ;CACR,QAAQ;EAAC;EAAa;EAAc;EAAW;CAAY;CAC3D,aAAa;CACb,QAAQ;CACR,WAAW;CAEX,iBAAiB,EAEf,UAAU,CAER,QACF,EACF;AACF,EACF"}
@@ -0,0 +1,18 @@
1
+ import { UserConfig } from 'vite';
2
+ export interface CreateInputEntriesOptions {
3
+ /**
4
+ * `import.meta.dirname`
5
+ */
6
+ dirname: string;
7
+ /**
8
+ * paths to create input entry
9
+ */
10
+ entries: string[];
11
+ }
12
+ export declare const createInputEntries: ({ dirname, entries }: CreateInputEntriesOptions) => Record<string, string>;
13
+ export type ViteLib = (options: {
14
+ peerDependencies: Record<string, string>;
15
+ }) => UserConfig;
16
+ export declare const viteLib: ViteLib;
17
+ export default viteLib;
18
+ //# sourceMappingURL=lib.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../../../src/configs/vite/lib.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAIvC,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,eAAO,MAAM,kBAAkB,GAAI,sBAAsB,yBAAyB,2BAqBjF,CAAC;AAIF,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,EAAE;IAAE,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,KAAK,UAAU,CAAC;AAE5F,eAAO,MAAM,OAAO,EAAE,OAiErB,CAAC;AAIF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { Ze as e } from "../../node_modules/.pnpm/glob@13.0.6/node_modules/glob/dist/esm/index.min.js";
2
+ import { freshRegex as t } from "../../lib/operations.js";
3
+ import { extractExtensions as n } from "../../lib/utils.js";
4
+ import r from "./base.js";
5
+ import { relative as i, resolve as a } from "node:path";
6
+ //#region src/configs/vite/lib.ts
7
+ var o = ({ dirname: r, entries: o }) => {
8
+ let s = {};
9
+ for (let c of o) for (let o of e.sync(c)) {
10
+ let e = i("src", o).replace(t(`\\.(${n(o).join("|")})$`), "");
11
+ s[e] = a(r, o);
12
+ }
13
+ return s;
14
+ }, s = ({ peerDependencies: e }) => ({
15
+ ...r,
16
+ build: {
17
+ ...r.build,
18
+ sourcemap: !0,
19
+ lib: {
20
+ entry: "",
21
+ formats: ["es"]
22
+ },
23
+ rolldownOptions: {
24
+ ...r.build?.rolldownOptions,
25
+ external: [...r.build?.rolldownOptions?.external ?? [], ...Object.keys(e).flatMap((e) => [e, t(`^${e}/`)])],
26
+ output: {
27
+ ...r.build?.rolldownOptions?.output,
28
+ preserveModules: !0,
29
+ preserveModulesRoot: "src",
30
+ entryFileNames: "[name].js"
31
+ }
32
+ }
33
+ }
34
+ });
35
+ //#endregion
36
+ export { o as createInputEntries, s as default, s as viteLib };
37
+
38
+ //# sourceMappingURL=lib.js.map