From f8bff7dd0a538cfa8763ac000077e32ebcd7ab2a Mon Sep 17 00:00:00 2001 From: Rel1cx Date: Mon, 25 Aug 2025 21:42:57 +0800 Subject: [PATCH] feat(tooling): migrate to tsdown for bundling This commit migrates the entire project from using tsup to tsdown for building packages. tsdown is a faster and more efficient bundler that should improve build times. Key changes include: Replaced all instances of tsup with tsdown in package.json scripts. Removed tsup.config.ts files and added tsdown.config.ts with the appropriate configuration. Updated pnpm-lock.yaml to reflect the new dependencies. Removed esbuild from the root package.json as it's no longer a direct dependency. Regenerated build outputs for local packages. Minor cleanups in documentation and scripts. --- .gitignore | 3 - .pkgs/configs/.gitignore | 1 - .pkgs/eslint-plugin-local/.gitignore | 3 +- .pkgs/eslint-plugin-local/dist/index.d.ts | 29 +- .pkgs/eslint-plugin-local/dist/index.js | 328 +++++----- .pkgs/eslint-plugin-local/package.json | 4 +- .../{tsup.config.ts => tsdown.config.ts} | 3 +- package.json | 3 +- .../docs/variables/ComponentDetectionHint.md | 2 +- packages/core/docs/variables/ComponentFlag.md | 2 +- .../core/docs/variables/JSXDetectionHint.md | 2 +- packages/core/package.json | 4 +- .../core/{tsup.config.ts => tsdown.config.ts} | 3 +- .../eslint-plugin-react-debug/package.json | 4 +- .../{tsup.config.ts => tsdown.config.ts} | 3 +- .../eslint-plugin-react-dom/package.json | 4 +- .../{tsup.config.ts => tsdown.config.ts} | 3 +- .../package.json | 4 +- .../tsdown.config.ts | 15 + .../tsup.config.ts | 16 - .../package.json | 4 +- .../tsdown.config.ts | 15 + .../tsup.config.ts | 16 - .../eslint-plugin-react-web-api/package.json | 4 +- .../tsdown.config.ts | 15 + .../tsup.config.ts | 16 - .../eslint-plugin-react-x/package.json | 4 +- .../eslint-plugin-react-x/tsdown.config.ts | 15 + .../eslint-plugin-react-x/tsup.config.ts | 16 - packages/plugins/eslint-plugin/package.json | 4 +- .../plugins/eslint-plugin/tsdown.config.ts | 15 + packages/plugins/eslint-plugin/tsup.config.ts | 16 - .../DEFAULT_ESLINT_REACT_SETTINGS.md | 2 +- .../docs/variables/DEFAULT_ESLINT_SETTINGS.md | 2 +- packages/shared/package.json | 4 +- packages/shared/tsdown.config.ts | 15 + packages/shared/tsup.config.ts | 16 - packages/utilities/ast/package.json | 4 +- packages/utilities/ast/tsdown.config.ts | 15 + packages/utilities/ast/tsup.config.ts | 16 - packages/utilities/eff/package.json | 4 +- .../eff/{tsup.config.ts => tsdown.config.ts} | 3 +- .../namespaces/JsxConfig/variables/JsxEmit.md | 2 +- .../variables/defaultLanguagePreference.md | 2 +- .../DisplayNameAssignmentExpression.md | 6 +- .../ImplicitReturnArrowFunctionExpression.md | 2 +- .../ObjectDestructuringVariableDeclarator.md | 2 +- packages/utilities/kit/package.json | 4 +- .../kit/{tsup.config.ts => tsdown.config.ts} | 3 +- packages/utilities/var/package.json | 4 +- packages/utilities/var/tsdown.config.ts | 15 + packages/utilities/var/tsup.config.ts | 16 - pnpm-lock.yaml | 560 +++++++++++------- scripts/update-website.ts | 37 +- 54 files changed, 683 insertions(+), 627 deletions(-) rename .pkgs/eslint-plugin-local/{tsup.config.ts => tsdown.config.ts} (82%) rename packages/core/{tsup.config.ts => tsdown.config.ts} (82%) rename packages/plugins/eslint-plugin-react-debug/{tsup.config.ts => tsdown.config.ts} (82%) rename packages/plugins/eslint-plugin-react-dom/{tsup.config.ts => tsdown.config.ts} (82%) create mode 100644 packages/plugins/eslint-plugin-react-hooks-extra/tsdown.config.ts delete mode 100644 packages/plugins/eslint-plugin-react-hooks-extra/tsup.config.ts create mode 100644 packages/plugins/eslint-plugin-react-naming-convention/tsdown.config.ts delete mode 100644 packages/plugins/eslint-plugin-react-naming-convention/tsup.config.ts create mode 100644 packages/plugins/eslint-plugin-react-web-api/tsdown.config.ts delete mode 100644 packages/plugins/eslint-plugin-react-web-api/tsup.config.ts create mode 100644 packages/plugins/eslint-plugin-react-x/tsdown.config.ts delete mode 100644 packages/plugins/eslint-plugin-react-x/tsup.config.ts create mode 100644 packages/plugins/eslint-plugin/tsdown.config.ts delete mode 100644 packages/plugins/eslint-plugin/tsup.config.ts create mode 100644 packages/shared/tsdown.config.ts delete mode 100644 packages/shared/tsup.config.ts create mode 100644 packages/utilities/ast/tsdown.config.ts delete mode 100644 packages/utilities/ast/tsup.config.ts rename packages/utilities/eff/{tsup.config.ts => tsdown.config.ts} (82%) rename packages/utilities/kit/{tsup.config.ts => tsdown.config.ts} (82%) create mode 100644 packages/utilities/var/tsdown.config.ts delete mode 100644 packages/utilities/var/tsup.config.ts diff --git a/.gitignore b/.gitignore index 9445c53872..86973eb4eb 100644 --- a/.gitignore +++ b/.gitignore @@ -45,9 +45,6 @@ stats.html *.bundled_*.mjs *.tgz eslint-results.sarif -.tsup - - .nx/cache .nx/workspace-data \ No newline at end of file diff --git a/.pkgs/configs/.gitignore b/.pkgs/configs/.gitignore index c5e7b4730b..87cee3c069 100644 --- a/.pkgs/configs/.gitignore +++ b/.pkgs/configs/.gitignore @@ -44,4 +44,3 @@ stats.html *.bundled_*.mjs *.tgz eslint-results.sarif -.tsup diff --git a/.pkgs/eslint-plugin-local/.gitignore b/.pkgs/eslint-plugin-local/.gitignore index c5e7b4730b..5a4c9838a9 100644 --- a/.pkgs/eslint-plugin-local/.gitignore +++ b/.pkgs/eslint-plugin-local/.gitignore @@ -43,5 +43,4 @@ stats.html /eslint-config.json *.bundled_*.mjs *.tgz -eslint-results.sarif -.tsup +eslint-results.sarif \ No newline at end of file diff --git a/.pkgs/eslint-plugin-local/dist/index.d.ts b/.pkgs/eslint-plugin-local/dist/index.d.ts index 08b9c295a0..59d5b613b6 100644 --- a/.pkgs/eslint-plugin-local/dist/index.d.ts +++ b/.pkgs/eslint-plugin-local/dist/index.d.ts @@ -1,17 +1,20 @@ -import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint'; +import "@typescript-eslint/utils/eslint-utils"; +import * as _typescript_eslint_utils_ts_eslint0 from "@typescript-eslint/utils/ts-eslint"; +//#region src/rules/prefer-eqeq-nullish-comparison.d.ts type MessageID = "unexpectedComparison" | "useLooseComparisonSuggestion"; - +//#endregion +//#region src/index.d.ts declare const _default: { - readonly meta: { - readonly name: string; - readonly version: string; - }; - readonly rules: { - readonly "avoid-multiline-template-expression": _typescript_eslint_utils_ts_eslint.RuleModule<"avoidMultilineTemplateExpression", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; - readonly "no-shadow-underscore": _typescript_eslint_utils_ts_eslint.RuleModule<"noShadowUnderscore", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>; - readonly "prefer-eqeq-nullish-comparison": _typescript_eslint_utils_ts_eslint.RuleModule; - }; + readonly meta: { + readonly name: string; + readonly version: string; + }; + readonly rules: { + readonly "avoid-multiline-template-expression": _typescript_eslint_utils_ts_eslint0.RuleModule<"avoidMultilineTemplateExpression", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>; + readonly "no-shadow-underscore": _typescript_eslint_utils_ts_eslint0.RuleModule<"noShadowUnderscore", [], unknown, _typescript_eslint_utils_ts_eslint0.RuleListener>; + readonly "prefer-eqeq-nullish-comparison": _typescript_eslint_utils_ts_eslint0.RuleModule; + }; }; - -export { _default as default }; +//#endregion +export { _default as default }; \ No newline at end of file diff --git a/.pkgs/eslint-plugin-local/dist/index.js b/.pkgs/eslint-plugin-local/dist/index.js index 1a817e5807..040b8560b4 100644 --- a/.pkgs/eslint-plugin-local/dist/index.js +++ b/.pkgs/eslint-plugin-local/dist/index.js @@ -1,199 +1,173 @@ -import * as AST from '@eslint-react/ast'; -import { ESLintUtils, AST_NODE_TYPES } from '@typescript-eslint/utils'; -import { unit } from '@eslint-react/eff'; -import { findVariable } from '@eslint-react/var'; -import { AST_NODE_TYPES as AST_NODE_TYPES$1 } from '@typescript-eslint/types'; -import { nullThrows, NullThrowsReasons } from '@typescript-eslint/utils/eslint-utils'; +import * as AST from "@eslint-react/ast"; +import { AST_NODE_TYPES, ESLintUtils } from "@typescript-eslint/utils"; +import { unit } from "@eslint-react/eff"; +import { findVariable } from "@eslint-react/var"; +import { AST_NODE_TYPES as AST_NODE_TYPES$1 } from "@typescript-eslint/types"; +import { NullThrowsReasons, nullThrows } from "@typescript-eslint/utils/eslint-utils"; -// package.json +//#region package.json var name = "@local/eslint-plugin-local"; var version = "0.0.0"; + +//#endregion +//#region src/utils/create-rule.ts function getDocsUrl() { - return "TODO: add docs for local ESLint rules"; + return "TODO: add docs for local ESLint rules"; } -var createRule = ESLintUtils.RuleCreator(getDocsUrl); -function isInitializedFromSource(name2, source, initialScope) { - const latestDef = findVariable(name2, initialScope)?.defs.at(-1); - if (latestDef == null) return false; - const { node, parent } = latestDef; - if (node.type === AST_NODE_TYPES$1.VariableDeclarator && node.init != null) { - const { init } = node; - if (init.type === AST_NODE_TYPES$1.MemberExpression && init.object.type === AST_NODE_TYPES$1.Identifier) { - return isInitializedFromSource(init.object.name, source, initialScope); - } - if (init.type === AST_NODE_TYPES$1.Identifier) { - return isInitializedFromSource(init.name, source, initialScope); - } - const args = getRequireExpressionArguments(init); - const arg0 = args?.[0]; - if (arg0 == null || !AST.isLiteral(arg0, "string")) { - return false; - } - return arg0.value === source || arg0.value.startsWith(`${source}/`); - } - return parent?.type === AST_NODE_TYPES$1.ImportDeclaration && parent.source.value === source; +const createRule = ESLintUtils.RuleCreator(getDocsUrl); + +//#endregion +//#region src/utils/is-initialized-from-source.ts +/** +* Check if an identifier is initialized from the given source +* @param name The top-level identifier's name +* @param source The import source to check against +* @param initialScope Initial scope to search for the identifier +* @returns Whether the identifier is initialized from the given source +*/ +function isInitializedFromSource(name$1, source, initialScope) { + const latestDef = findVariable(name$1, initialScope)?.defs.at(-1); + if (latestDef == null) return false; + const { node, parent } = latestDef; + if (node.type === AST_NODE_TYPES$1.VariableDeclarator && node.init != null) { + const { init } = node; + if (init.type === AST_NODE_TYPES$1.MemberExpression && init.object.type === AST_NODE_TYPES$1.Identifier) return isInitializedFromSource(init.object.name, source, initialScope); + if (init.type === AST_NODE_TYPES$1.Identifier) return isInitializedFromSource(init.name, source, initialScope); + const args = getRequireExpressionArguments(init); + const arg0 = args?.[0]; + if (arg0 == null || !AST.isLiteral(arg0, "string")) return false; + return arg0.value === source || arg0.value.startsWith(`${source}/`); + } + return parent?.type === AST_NODE_TYPES$1.ImportDeclaration && parent.source.value === source; } function getRequireExpressionArguments(node) { - switch (true) { - // require('source') - case (node.type === AST_NODE_TYPES$1.CallExpression && node.callee.type === AST_NODE_TYPES$1.Identifier && node.callee.name === "require"): { - return node.arguments; - } - // require('source').variable - case node.type === AST_NODE_TYPES$1.MemberExpression: { - return getRequireExpressionArguments(node.object); - } - } - return unit; + switch (true) { + case node.type === AST_NODE_TYPES$1.CallExpression && node.callee.type === AST_NODE_TYPES$1.Identifier && node.callee.name === "require": return node.arguments; + case node.type === AST_NODE_TYPES$1.MemberExpression: return getRequireExpressionArguments(node.object); + } + return unit; } -// src/rules/avoid-multiline-template-expression.ts -var RULE_NAME = "avoid-multiline-template-expression"; -var RULE_FEATURES = []; +//#endregion +//#region src/rules/avoid-multiline-template-expression.ts +const RULE_NAME$2 = "avoid-multiline-template-expression"; +const RULE_FEATURES$1 = []; var avoid_multiline_template_expression_default = createRule({ - meta: { - type: "problem", - docs: { - description: "disallow multiline template expressions", - [Symbol.for("rule_features")]: RULE_FEATURES - }, - messages: { - avoidMultilineTemplateExpression: "Avoid multiline template expressions." - }, - schema: [] - }, - name: RULE_NAME, - create, - defaultOptions: [] + meta: { + type: "problem", + docs: { + description: "disallow multiline template expressions", + [Symbol.for("rule_features")]: RULE_FEATURES$1 + }, + messages: { avoidMultilineTemplateExpression: "Avoid multiline template expressions." }, + schema: [] + }, + name: RULE_NAME$2, + create: create$2, + defaultOptions: [] }); -function create(context) { - return { - TemplateLiteral: (node) => { - if (AST.isMultiLine(node)) { - context.report({ - messageId: "avoidMultilineTemplateExpression", - node - }); - } - } - }; +function create$2(context) { + return { TemplateLiteral: (node) => { + if (AST.isMultiLine(node)) context.report({ + messageId: "avoidMultilineTemplateExpression", + node + }); + } }; } -// src/rules/no-shadow-underscore.ts -var RULE_NAME2 = "no-shadow-underscore"; -var RULE_FEATURES2 = []; +//#endregion +//#region src/rules/no-shadow-underscore.ts +const RULE_NAME$1 = "no-shadow-underscore"; +const RULE_FEATURES = []; var no_shadow_underscore_default = createRule({ - meta: { - type: "problem", - docs: { - description: "disallow shadowing of the underscore identifier", - [Symbol.for("rule_features")]: RULE_FEATURES2 - }, - messages: { - noShadowUnderscore: "In this codebase, '_' is used to represent the undefined. Avoid shadowing it." - }, - schema: [] - }, - name: RULE_NAME2, - create: create2, - defaultOptions: [] + meta: { + type: "problem", + docs: { + description: "disallow shadowing of the underscore identifier", + [Symbol.for("rule_features")]: RULE_FEATURES + }, + messages: { noShadowUnderscore: "In this codebase, '_' is used to represent the undefined. Avoid shadowing it." }, + schema: [] + }, + name: RULE_NAME$1, + create: create$1, + defaultOptions: [] }); -function create2(context) { - return { - "Identifier[name='_']"(node) { - const initialScope = context.sourceCode.getScope(node); - const isFromImport = isInitializedFromSource("_", "@eslint-react/eff", initialScope); - if (!isFromImport) { - context.report({ - messageId: "noShadowUnderscore", - node - }); - } - } - }; +function create$1(context) { + return { "Identifier[name='_']"(node) { + const initialScope = context.sourceCode.getScope(node); + const isFromImport = isInitializedFromSource("_", "@eslint-react/eff", initialScope); + if (!isFromImport) context.report({ + messageId: "noShadowUnderscore", + node + }); + } }; } -var RULE_NAME3 = "prefer-eqeq-nullish-comparison"; + +//#endregion +//#region src/rules/prefer-eqeq-nullish-comparison.ts +const RULE_NAME = "prefer-eqeq-nullish-comparison"; var prefer_eqeq_nullish_comparison_default = createRule({ - meta: { - type: "suggestion", - docs: { - description: "Enforces eqeqeq preferences around nullish comparisons." - }, - fixable: "code", - hasSuggestions: true, - messages: { - unexpectedComparison: "Unexpected strict comparison (`{{strictOperator}}`) with `{{nullishKind}}`. In this codebase, we prefer to use loose equality as a general-purpose nullish check when possible.", - useLooseComparisonSuggestion: "Use loose comparison (`{{looseOperator}} null`) instead, to check both nullish values." - }, - schema: [] - }, - name: RULE_NAME3, - create: create3, - defaultOptions: [] + meta: { + type: "suggestion", + docs: { description: "Enforces eqeqeq preferences around nullish comparisons." }, + fixable: "code", + hasSuggestions: true, + messages: { + unexpectedComparison: "Unexpected strict comparison (`{{strictOperator}}`) with `{{nullishKind}}`. In this codebase, we prefer to use loose equality as a general-purpose nullish check when possible.", + useLooseComparisonSuggestion: "Use loose comparison (`{{looseOperator}} null`) instead, to check both nullish values." + }, + schema: [] + }, + name: RULE_NAME, + create, + defaultOptions: [] }); -function create3(context) { - return { - BinaryExpression(node) { - if (node.operator === "===" || node.operator === "!==") { - const offendingChild = [node.left, node.right].find( - (child) => child.type === AST_NODE_TYPES.Identifier && child.name === "undefined" || child.type === AST_NODE_TYPES.Literal && child.raw === "null" - ); - if (offendingChild == null) { - return; - } - const operatorToken = nullThrows( - context.sourceCode.getFirstTokenBetween( - node.left, - node.right, - (token) => token.value === node.operator - ), - NullThrowsReasons.MissingToken(node.operator, "binary expression") - ); - const wasLeft = node.left === offendingChild; - const nullishKind = offendingChild.type === AST_NODE_TYPES.Identifier ? "undefined" : "null"; - const looseOperator = node.operator === "===" ? "==" : "!="; - context.report({ - messageId: "unexpectedComparison", - data: { - nullishKind, - strictOperator: node.operator - }, - loc: wasLeft ? { - end: operatorToken.loc.end, - start: node.left.loc.start - } : { - end: node.right.loc.end, - start: operatorToken.loc.start - }, - suggest: [ - { - messageId: "useLooseComparisonSuggestion", - data: { - looseOperator - }, - fix: (fixer) => [ - fixer.replaceText(offendingChild, "null"), - fixer.replaceText(operatorToken, looseOperator) - ] - } - ] - }); - } - } - }; +function create(context) { + return { BinaryExpression(node) { + if (node.operator === "===" || node.operator === "!==") { + const offendingChild = [node.left, node.right].find((child) => child.type === AST_NODE_TYPES.Identifier && child.name === "undefined" || child.type === AST_NODE_TYPES.Literal && child.raw === "null"); + if (offendingChild == null) return; + const operatorToken = nullThrows(context.sourceCode.getFirstTokenBetween(node.left, node.right, (token) => token.value === node.operator), NullThrowsReasons.MissingToken(node.operator, "binary expression")); + const wasLeft = node.left === offendingChild; + const nullishKind = offendingChild.type === AST_NODE_TYPES.Identifier ? "undefined" : "null"; + const looseOperator = node.operator === "===" ? "==" : "!="; + context.report({ + messageId: "unexpectedComparison", + data: { + nullishKind, + strictOperator: node.operator + }, + loc: wasLeft ? { + end: operatorToken.loc.end, + start: node.left.loc.start + } : { + end: node.right.loc.end, + start: operatorToken.loc.start + }, + suggest: [{ + messageId: "useLooseComparisonSuggestion", + data: { looseOperator }, + fix: (fixer) => [fixer.replaceText(offendingChild, "null"), fixer.replaceText(operatorToken, looseOperator)] + }] + }); + } + } }; } -// src/index.ts -var index_default = { - meta: { - name, - version - }, - rules: { - "avoid-multiline-template-expression": avoid_multiline_template_expression_default, - "no-shadow-underscore": no_shadow_underscore_default, - "prefer-eqeq-nullish-comparison": prefer_eqeq_nullish_comparison_default - } +//#endregion +//#region src/index.ts +var src_default = { + meta: { + name, + version + }, + rules: { + "avoid-multiline-template-expression": avoid_multiline_template_expression_default, + "no-shadow-underscore": no_shadow_underscore_default, + "prefer-eqeq-nullish-comparison": prefer_eqeq_nullish_comparison_default + } }; -export { index_default as default }; +//#endregion +export { src_default as default }; \ No newline at end of file diff --git a/.pkgs/eslint-plugin-local/package.json b/.pkgs/eslint-plugin-local/package.json index 99fe22d56c..140a9c9243 100644 --- a/.pkgs/eslint-plugin-local/package.json +++ b/.pkgs/eslint-plugin-local/package.json @@ -16,7 +16,7 @@ "package.json" ], "scripts": { - "build": "tsup", + "build": "tsdown --dts-resolve", "lint:publish": "publint", "lint:ts": "tsc --noEmit" }, @@ -44,7 +44,7 @@ "@local/configs": "workspace:*", "@types/react": "^19.1.11", "@types/react-dom": "^19.1.7", - "tsup": "^8.5.0" + "tsdown": "^0.14.2" }, "peerDependencies": { "eslint": "^9.34.0", diff --git a/.pkgs/eslint-plugin-local/tsup.config.ts b/.pkgs/eslint-plugin-local/tsdown.config.ts similarity index 82% rename from .pkgs/eslint-plugin-local/tsup.config.ts rename to .pkgs/eslint-plugin-local/tsdown.config.ts index e037e267d9..031761a959 100644 --- a/.pkgs/eslint-plugin-local/tsup.config.ts +++ b/.pkgs/eslint-plugin-local/tsdown.config.ts @@ -1,4 +1,4 @@ -import type { Options } from "tsup"; +import type { Options } from "tsdown"; export default { clean: true, @@ -10,7 +10,6 @@ export default { outDir: "dist", platform: "node", sourcemap: false, - splitting: false, target: "node20", treeshake: true, } satisfies Options; diff --git a/package.json b/package.json index 52c8c95c74..4139d29236 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,6 @@ "dedent": "^1.6.0", "dprint": "^0.50.1", "effect": "^3.17.9", - "esbuild": "^0.25.9", "eslint": "^9.34.0", "eslint-config-flat-gitignore": "^2.1.0", "eslint-plugin-fast-import": "^1.3.0", @@ -93,7 +92,7 @@ "sort-package-json": "^3.4.0", "tinyglobby": "^0.2.14", "ts-pattern": "^5.8.0", - "tsup": "^8.5.0", + "tsdown": "^0.14.2", "tsx": "^4.20.5", "type-fest": "^4.41.0", "typedoc": "^0.28.11", diff --git a/packages/core/docs/variables/ComponentDetectionHint.md b/packages/core/docs/variables/ComponentDetectionHint.md index 24110b9ca0..06f406ce42 100644 --- a/packages/core/docs/variables/ComponentDetectionHint.md +++ b/packages/core/docs/variables/ComponentDetectionHint.md @@ -10,7 +10,7 @@ Hints for component collector -## Type declaration +## Type Declaration ### None diff --git a/packages/core/docs/variables/ComponentFlag.md b/packages/core/docs/variables/ComponentFlag.md index d56f98a772..92bfa6e7bd 100644 --- a/packages/core/docs/variables/ComponentFlag.md +++ b/packages/core/docs/variables/ComponentFlag.md @@ -8,7 +8,7 @@ > **ComponentFlag**: `object` -## Type declaration +## Type Declaration ### Async diff --git a/packages/core/docs/variables/JSXDetectionHint.md b/packages/core/docs/variables/JSXDetectionHint.md index c661ef591a..fdd507e1e0 100644 --- a/packages/core/docs/variables/JSXDetectionHint.md +++ b/packages/core/docs/variables/JSXDetectionHint.md @@ -8,7 +8,7 @@ > **JSXDetectionHint**: `object` -## Type declaration +## Type Declaration ### None diff --git a/packages/core/package.json b/packages/core/package.json index 17659624eb..96e77a4fac 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -27,7 +27,7 @@ "./package.json" ], "scripts": { - "build": "tsup", + "build": "tsdown --dts-resolve", "build:docs": "typedoc", "lint:publish": "publint", "lint:ts": "tsc --noEmit", @@ -49,7 +49,7 @@ }, "devDependencies": { "@local/configs": "workspace:*", - "tsup": "^8.5.0" + "tsdown": "^0.14.2" }, "engines": { "node": ">=20.19.0" diff --git a/packages/core/tsup.config.ts b/packages/core/tsdown.config.ts similarity index 82% rename from packages/core/tsup.config.ts rename to packages/core/tsdown.config.ts index e037e267d9..031761a959 100644 --- a/packages/core/tsup.config.ts +++ b/packages/core/tsdown.config.ts @@ -1,4 +1,4 @@ -import type { Options } from "tsup"; +import type { Options } from "tsdown"; export default { clean: true, @@ -10,7 +10,6 @@ export default { outDir: "dist", platform: "node", sourcemap: false, - splitting: false, target: "node20", treeshake: true, } satisfies Options; diff --git a/packages/plugins/eslint-plugin-react-debug/package.json b/packages/plugins/eslint-plugin-react-debug/package.json index 5bdcf7ad2f..2240ec2fd3 100644 --- a/packages/plugins/eslint-plugin-react-debug/package.json +++ b/packages/plugins/eslint-plugin-react-debug/package.json @@ -35,7 +35,7 @@ "./package.json" ], "scripts": { - "build": "tsup --dts-resolve", + "build": "tsdown --dts-resolve", "lint:publish": "publint", "lint:ts": "tsc --noEmit", "publish": "pnpm run build && pnpm run lint:publish" @@ -58,7 +58,7 @@ "@local/configs": "workspace:*", "@types/react": "^19.1.11", "@types/react-dom": "^19.1.7", - "tsup": "^8.5.0" + "tsdown": "^0.14.2" }, "peerDependencies": { "eslint": "^9.34.0", diff --git a/packages/plugins/eslint-plugin-react-debug/tsup.config.ts b/packages/plugins/eslint-plugin-react-debug/tsdown.config.ts similarity index 82% rename from packages/plugins/eslint-plugin-react-debug/tsup.config.ts rename to packages/plugins/eslint-plugin-react-debug/tsdown.config.ts index e037e267d9..031761a959 100644 --- a/packages/plugins/eslint-plugin-react-debug/tsup.config.ts +++ b/packages/plugins/eslint-plugin-react-debug/tsdown.config.ts @@ -1,4 +1,4 @@ -import type { Options } from "tsup"; +import type { Options } from "tsdown"; export default { clean: true, @@ -10,7 +10,6 @@ export default { outDir: "dist", platform: "node", sourcemap: false, - splitting: false, target: "node20", treeshake: true, } satisfies Options; diff --git a/packages/plugins/eslint-plugin-react-dom/package.json b/packages/plugins/eslint-plugin-react-dom/package.json index d5f0cc6ec5..27175d1ef9 100644 --- a/packages/plugins/eslint-plugin-react-dom/package.json +++ b/packages/plugins/eslint-plugin-react-dom/package.json @@ -35,7 +35,7 @@ "./package.json" ], "scripts": { - "build": "tsup --dts-resolve", + "build": "tsdown --dts-resolve", "lint:publish": "publint", "lint:ts": "tsc --noEmit", "publish": "pnpm run build && pnpm run lint:publish" @@ -58,7 +58,7 @@ "@local/configs": "workspace:*", "@types/react": "^19.1.11", "@types/react-dom": "^19.1.7", - "tsup": "^8.5.0" + "tsdown": "^0.14.2" }, "peerDependencies": { "eslint": "^9.34.0", diff --git a/packages/plugins/eslint-plugin-react-dom/tsup.config.ts b/packages/plugins/eslint-plugin-react-dom/tsdown.config.ts similarity index 82% rename from packages/plugins/eslint-plugin-react-dom/tsup.config.ts rename to packages/plugins/eslint-plugin-react-dom/tsdown.config.ts index e037e267d9..031761a959 100644 --- a/packages/plugins/eslint-plugin-react-dom/tsup.config.ts +++ b/packages/plugins/eslint-plugin-react-dom/tsdown.config.ts @@ -1,4 +1,4 @@ -import type { Options } from "tsup"; +import type { Options } from "tsdown"; export default { clean: true, @@ -10,7 +10,6 @@ export default { outDir: "dist", platform: "node", sourcemap: false, - splitting: false, target: "node20", treeshake: true, } satisfies Options; diff --git a/packages/plugins/eslint-plugin-react-hooks-extra/package.json b/packages/plugins/eslint-plugin-react-hooks-extra/package.json index d85ba7d2a5..c08a9bdfc2 100644 --- a/packages/plugins/eslint-plugin-react-hooks-extra/package.json +++ b/packages/plugins/eslint-plugin-react-hooks-extra/package.json @@ -36,7 +36,7 @@ "./package.json" ], "scripts": { - "build": "tsup --dts-resolve", + "build": "tsdown --dts-resolve", "lint:publish": "publint", "lint:ts": "tsc --noEmit", "publish": "pnpm run build && pnpm run lint:publish" @@ -59,7 +59,7 @@ "@local/configs": "workspace:*", "@types/react": "^19.1.11", "@types/react-dom": "^19.1.7", - "tsup": "^8.5.0" + "tsdown": "^0.14.2" }, "peerDependencies": { "eslint": "^8.57.0 || ^9.0.0", diff --git a/packages/plugins/eslint-plugin-react-hooks-extra/tsdown.config.ts b/packages/plugins/eslint-plugin-react-hooks-extra/tsdown.config.ts new file mode 100644 index 0000000000..031761a959 --- /dev/null +++ b/packages/plugins/eslint-plugin-react-hooks-extra/tsdown.config.ts @@ -0,0 +1,15 @@ +import type { Options } from "tsdown"; + +export default { + clean: true, + dts: true, + entry: ["src/index.ts"], + external: ["eslint", "typescript"], + format: ["esm"], + minify: false, + outDir: "dist", + platform: "node", + sourcemap: false, + target: "node20", + treeshake: true, +} satisfies Options; diff --git a/packages/plugins/eslint-plugin-react-hooks-extra/tsup.config.ts b/packages/plugins/eslint-plugin-react-hooks-extra/tsup.config.ts deleted file mode 100644 index e037e267d9..0000000000 --- a/packages/plugins/eslint-plugin-react-hooks-extra/tsup.config.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { Options } from "tsup"; - -export default { - clean: true, - dts: true, - entry: ["src/index.ts"], - external: ["eslint", "typescript"], - format: ["esm"], - minify: false, - outDir: "dist", - platform: "node", - sourcemap: false, - splitting: false, - target: "node20", - treeshake: true, -} satisfies Options; diff --git a/packages/plugins/eslint-plugin-react-naming-convention/package.json b/packages/plugins/eslint-plugin-react-naming-convention/package.json index da9701fba0..3073b17cb3 100644 --- a/packages/plugins/eslint-plugin-react-naming-convention/package.json +++ b/packages/plugins/eslint-plugin-react-naming-convention/package.json @@ -35,7 +35,7 @@ "./package.json" ], "scripts": { - "build": "tsup --dts-resolve", + "build": "tsdown --dts-resolve", "lint:publish": "publint", "lint:ts": "tsc --noEmit", "publish": "pnpm run build && pnpm run lint:publish" @@ -58,7 +58,7 @@ "@local/configs": "workspace:*", "@types/react": "^19.1.11", "@types/react-dom": "^19.1.7", - "tsup": "^8.5.0" + "tsdown": "^0.14.2" }, "peerDependencies": { "eslint": "^9.34.0", diff --git a/packages/plugins/eslint-plugin-react-naming-convention/tsdown.config.ts b/packages/plugins/eslint-plugin-react-naming-convention/tsdown.config.ts new file mode 100644 index 0000000000..031761a959 --- /dev/null +++ b/packages/plugins/eslint-plugin-react-naming-convention/tsdown.config.ts @@ -0,0 +1,15 @@ +import type { Options } from "tsdown"; + +export default { + clean: true, + dts: true, + entry: ["src/index.ts"], + external: ["eslint", "typescript"], + format: ["esm"], + minify: false, + outDir: "dist", + platform: "node", + sourcemap: false, + target: "node20", + treeshake: true, +} satisfies Options; diff --git a/packages/plugins/eslint-plugin-react-naming-convention/tsup.config.ts b/packages/plugins/eslint-plugin-react-naming-convention/tsup.config.ts deleted file mode 100644 index e037e267d9..0000000000 --- a/packages/plugins/eslint-plugin-react-naming-convention/tsup.config.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { Options } from "tsup"; - -export default { - clean: true, - dts: true, - entry: ["src/index.ts"], - external: ["eslint", "typescript"], - format: ["esm"], - minify: false, - outDir: "dist", - platform: "node", - sourcemap: false, - splitting: false, - target: "node20", - treeshake: true, -} satisfies Options; diff --git a/packages/plugins/eslint-plugin-react-web-api/package.json b/packages/plugins/eslint-plugin-react-web-api/package.json index 4be0184ae8..fcf7bf9055 100644 --- a/packages/plugins/eslint-plugin-react-web-api/package.json +++ b/packages/plugins/eslint-plugin-react-web-api/package.json @@ -35,7 +35,7 @@ "./package.json" ], "scripts": { - "build": "tsup --dts-resolve", + "build": "tsdown --dts-resolve", "lint:publish": "publint", "lint:ts": "tsc --noEmit", "publish": "pnpm run build && pnpm run lint:publish" @@ -57,7 +57,7 @@ "@local/configs": "workspace:*", "@types/react": "^19.1.11", "@types/react-dom": "^19.1.7", - "tsup": "^8.5.0" + "tsdown": "^0.14.2" }, "peerDependencies": { "eslint": "^9.34.0", diff --git a/packages/plugins/eslint-plugin-react-web-api/tsdown.config.ts b/packages/plugins/eslint-plugin-react-web-api/tsdown.config.ts new file mode 100644 index 0000000000..031761a959 --- /dev/null +++ b/packages/plugins/eslint-plugin-react-web-api/tsdown.config.ts @@ -0,0 +1,15 @@ +import type { Options } from "tsdown"; + +export default { + clean: true, + dts: true, + entry: ["src/index.ts"], + external: ["eslint", "typescript"], + format: ["esm"], + minify: false, + outDir: "dist", + platform: "node", + sourcemap: false, + target: "node20", + treeshake: true, +} satisfies Options; diff --git a/packages/plugins/eslint-plugin-react-web-api/tsup.config.ts b/packages/plugins/eslint-plugin-react-web-api/tsup.config.ts deleted file mode 100644 index e037e267d9..0000000000 --- a/packages/plugins/eslint-plugin-react-web-api/tsup.config.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { Options } from "tsup"; - -export default { - clean: true, - dts: true, - entry: ["src/index.ts"], - external: ["eslint", "typescript"], - format: ["esm"], - minify: false, - outDir: "dist", - platform: "node", - sourcemap: false, - splitting: false, - target: "node20", - treeshake: true, -} satisfies Options; diff --git a/packages/plugins/eslint-plugin-react-x/package.json b/packages/plugins/eslint-plugin-react-x/package.json index 08e3bfbb16..1c393751f5 100644 --- a/packages/plugins/eslint-plugin-react-x/package.json +++ b/packages/plugins/eslint-plugin-react-x/package.json @@ -34,7 +34,7 @@ "./package.json" ], "scripts": { - "build": "tsup --dts-resolve", + "build": "tsdown --dts-resolve", "lint:publish": "publint", "lint:ts": "tsc --noEmit", "publish": "pnpm run build && pnpm run lint:publish" @@ -60,7 +60,7 @@ "@types/react": "^19.1.11", "@types/react-dom": "^19.1.7", "ts-api-utils": "^2.1.0", - "tsup": "^8.5.0" + "tsdown": "^0.14.2" }, "peerDependencies": { "eslint": "^9.34.0", diff --git a/packages/plugins/eslint-plugin-react-x/tsdown.config.ts b/packages/plugins/eslint-plugin-react-x/tsdown.config.ts new file mode 100644 index 0000000000..031761a959 --- /dev/null +++ b/packages/plugins/eslint-plugin-react-x/tsdown.config.ts @@ -0,0 +1,15 @@ +import type { Options } from "tsdown"; + +export default { + clean: true, + dts: true, + entry: ["src/index.ts"], + external: ["eslint", "typescript"], + format: ["esm"], + minify: false, + outDir: "dist", + platform: "node", + sourcemap: false, + target: "node20", + treeshake: true, +} satisfies Options; diff --git a/packages/plugins/eslint-plugin-react-x/tsup.config.ts b/packages/plugins/eslint-plugin-react-x/tsup.config.ts deleted file mode 100644 index e037e267d9..0000000000 --- a/packages/plugins/eslint-plugin-react-x/tsup.config.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { Options } from "tsup"; - -export default { - clean: true, - dts: true, - entry: ["src/index.ts"], - external: ["eslint", "typescript"], - format: ["esm"], - minify: false, - outDir: "dist", - platform: "node", - sourcemap: false, - splitting: false, - target: "node20", - treeshake: true, -} satisfies Options; diff --git a/packages/plugins/eslint-plugin/package.json b/packages/plugins/eslint-plugin/package.json index 46506ac7eb..609a2c1799 100644 --- a/packages/plugins/eslint-plugin/package.json +++ b/packages/plugins/eslint-plugin/package.json @@ -37,7 +37,7 @@ "./package.json" ], "scripts": { - "build": "tsup --dts-resolve", + "build": "tsdown --dts-resolve", "lint:publish": "pnpm publint", "lint:ts": "tsc --noEmit", "publish": "pnpm run build && pnpm run lint:publish" @@ -59,7 +59,7 @@ }, "devDependencies": { "@local/configs": "workspace:*", - "tsup": "^8.5.0" + "tsdown": "^0.14.2" }, "peerDependencies": { "eslint": "^9.34.0", diff --git a/packages/plugins/eslint-plugin/tsdown.config.ts b/packages/plugins/eslint-plugin/tsdown.config.ts new file mode 100644 index 0000000000..031761a959 --- /dev/null +++ b/packages/plugins/eslint-plugin/tsdown.config.ts @@ -0,0 +1,15 @@ +import type { Options } from "tsdown"; + +export default { + clean: true, + dts: true, + entry: ["src/index.ts"], + external: ["eslint", "typescript"], + format: ["esm"], + minify: false, + outDir: "dist", + platform: "node", + sourcemap: false, + target: "node20", + treeshake: true, +} satisfies Options; diff --git a/packages/plugins/eslint-plugin/tsup.config.ts b/packages/plugins/eslint-plugin/tsup.config.ts deleted file mode 100644 index e037e267d9..0000000000 --- a/packages/plugins/eslint-plugin/tsup.config.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { Options } from "tsup"; - -export default { - clean: true, - dts: true, - entry: ["src/index.ts"], - external: ["eslint", "typescript"], - format: ["esm"], - minify: false, - outDir: "dist", - platform: "node", - sourcemap: false, - splitting: false, - target: "node20", - treeshake: true, -} satisfies Options; diff --git a/packages/shared/docs/variables/DEFAULT_ESLINT_REACT_SETTINGS.md b/packages/shared/docs/variables/DEFAULT_ESLINT_REACT_SETTINGS.md index e2ff8444a0..31aac91eb9 100644 --- a/packages/shared/docs/variables/DEFAULT_ESLINT_REACT_SETTINGS.md +++ b/packages/shared/docs/variables/DEFAULT_ESLINT_REACT_SETTINGS.md @@ -10,7 +10,7 @@ The default ESLint settings for "react-x". -## Type declaration +## Type Declaration ### additionalComponents diff --git a/packages/shared/docs/variables/DEFAULT_ESLINT_SETTINGS.md b/packages/shared/docs/variables/DEFAULT_ESLINT_SETTINGS.md index 85973fa9c1..4020c9a2e4 100644 --- a/packages/shared/docs/variables/DEFAULT_ESLINT_SETTINGS.md +++ b/packages/shared/docs/variables/DEFAULT_ESLINT_SETTINGS.md @@ -8,7 +8,7 @@ > `const` **DEFAULT\_ESLINT\_SETTINGS**: `object` -## Type declaration +## Type Declaration ### react-x diff --git a/packages/shared/package.json b/packages/shared/package.json index 4cb0bdba00..fd5e39ba08 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -27,7 +27,7 @@ "./package.json" ], "scripts": { - "build": "tsup --dts-resolve", + "build": "tsdown --dts-resolve", "build:docs": "typedoc", "lint:publish": "publint", "lint:ts": "tsc --noEmit", @@ -44,7 +44,7 @@ "@local/configs": "workspace:*", "@tsconfig/node22": "^22.0.2", "@types/picomatch": "^4.0.2", - "tsup": "^8.5.0", + "tsdown": "^0.14.2", "type-fest": "^4.41.0" }, "engines": { diff --git a/packages/shared/tsdown.config.ts b/packages/shared/tsdown.config.ts new file mode 100644 index 0000000000..031761a959 --- /dev/null +++ b/packages/shared/tsdown.config.ts @@ -0,0 +1,15 @@ +import type { Options } from "tsdown"; + +export default { + clean: true, + dts: true, + entry: ["src/index.ts"], + external: ["eslint", "typescript"], + format: ["esm"], + minify: false, + outDir: "dist", + platform: "node", + sourcemap: false, + target: "node20", + treeshake: true, +} satisfies Options; diff --git a/packages/shared/tsup.config.ts b/packages/shared/tsup.config.ts deleted file mode 100644 index e037e267d9..0000000000 --- a/packages/shared/tsup.config.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { Options } from "tsup"; - -export default { - clean: true, - dts: true, - entry: ["src/index.ts"], - external: ["eslint", "typescript"], - format: ["esm"], - minify: false, - outDir: "dist", - platform: "node", - sourcemap: false, - splitting: false, - target: "node20", - treeshake: true, -} satisfies Options; diff --git a/packages/utilities/ast/package.json b/packages/utilities/ast/package.json index 70b6701bd2..0c251ceec8 100644 --- a/packages/utilities/ast/package.json +++ b/packages/utilities/ast/package.json @@ -27,7 +27,7 @@ "./package.json" ], "scripts": { - "build": "tsup", + "build": "tsdown --dts-resolve", "lint:publish": "publint", "lint:ts": "tsc --noEmit", "publish": "pnpm run build && pnpm run lint:publish" @@ -42,7 +42,7 @@ }, "devDependencies": { "@local/configs": "workspace:*", - "tsup": "^8.5.0" + "tsdown": "^0.14.2" }, "engines": { "node": ">=20.19.0" diff --git a/packages/utilities/ast/tsdown.config.ts b/packages/utilities/ast/tsdown.config.ts new file mode 100644 index 0000000000..031761a959 --- /dev/null +++ b/packages/utilities/ast/tsdown.config.ts @@ -0,0 +1,15 @@ +import type { Options } from "tsdown"; + +export default { + clean: true, + dts: true, + entry: ["src/index.ts"], + external: ["eslint", "typescript"], + format: ["esm"], + minify: false, + outDir: "dist", + platform: "node", + sourcemap: false, + target: "node20", + treeshake: true, +} satisfies Options; diff --git a/packages/utilities/ast/tsup.config.ts b/packages/utilities/ast/tsup.config.ts deleted file mode 100644 index e037e267d9..0000000000 --- a/packages/utilities/ast/tsup.config.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { Options } from "tsup"; - -export default { - clean: true, - dts: true, - entry: ["src/index.ts"], - external: ["eslint", "typescript"], - format: ["esm"], - minify: false, - outDir: "dist", - platform: "node", - sourcemap: false, - splitting: false, - target: "node20", - treeshake: true, -} satisfies Options; diff --git a/packages/utilities/eff/package.json b/packages/utilities/eff/package.json index eb5c99dadb..cf4070250f 100644 --- a/packages/utilities/eff/package.json +++ b/packages/utilities/eff/package.json @@ -27,7 +27,7 @@ "./package.json" ], "scripts": { - "build": "tsup", + "build": "tsdown --dts-resolve", "build:docs": "typedoc", "lint:publish": "publint", "lint:ts": "tsc --noEmit", @@ -35,7 +35,7 @@ }, "devDependencies": { "@local/configs": "workspace:*", - "tsup": "^8.5.0" + "tsdown": "^0.14.2" }, "engines": { "node": ">=20.19.0" diff --git a/packages/utilities/eff/tsup.config.ts b/packages/utilities/eff/tsdown.config.ts similarity index 82% rename from packages/utilities/eff/tsup.config.ts rename to packages/utilities/eff/tsdown.config.ts index d7889c3b34..ab2056e62f 100644 --- a/packages/utilities/eff/tsup.config.ts +++ b/packages/utilities/eff/tsdown.config.ts @@ -1,4 +1,4 @@ -import type { Options } from "tsup"; +import type { Options } from "tsdown"; export default { clean: true, @@ -10,7 +10,6 @@ export default { outDir: "dist", platform: "neutral", sourcemap: false, - splitting: false, target: "node20", treeshake: true, } satisfies Options; diff --git a/packages/utilities/kit/docs/@eslint-react/namespaces/JsxConfig/variables/JsxEmit.md b/packages/utilities/kit/docs/@eslint-react/namespaces/JsxConfig/variables/JsxEmit.md index 8c6eb995b9..34198fb971 100644 --- a/packages/utilities/kit/docs/@eslint-react/namespaces/JsxConfig/variables/JsxEmit.md +++ b/packages/utilities/kit/docs/@eslint-react/namespaces/JsxConfig/variables/JsxEmit.md @@ -8,7 +8,7 @@ > `const` **JsxEmit**: `object` -## Type declaration +## Type Declaration ### None diff --git a/packages/utilities/kit/docs/@eslint-react/namespaces/LanguagePreference/variables/defaultLanguagePreference.md b/packages/utilities/kit/docs/@eslint-react/namespaces/LanguagePreference/variables/defaultLanguagePreference.md index 72ba83e3bc..dfccec4907 100644 --- a/packages/utilities/kit/docs/@eslint-react/namespaces/LanguagePreference/variables/defaultLanguagePreference.md +++ b/packages/utilities/kit/docs/@eslint-react/namespaces/LanguagePreference/variables/defaultLanguagePreference.md @@ -10,7 +10,7 @@ A default LanguagePreference object. -## Type declaration +## Type Declaration ### indentStyle? diff --git a/packages/utilities/kit/docs/@eslint-react/namespaces/Selector/type-aliases/DisplayNameAssignmentExpression.md b/packages/utilities/kit/docs/@eslint-react/namespaces/Selector/type-aliases/DisplayNameAssignmentExpression.md index e0b955109a..79320e15b7 100644 --- a/packages/utilities/kit/docs/@eslint-react/namespaces/Selector/type-aliases/DisplayNameAssignmentExpression.md +++ b/packages/utilities/kit/docs/@eslint-react/namespaces/Selector/type-aliases/DisplayNameAssignmentExpression.md @@ -8,19 +8,19 @@ > **DisplayNameAssignmentExpression** = `TSESTree.AssignmentExpression` & `object` -## Type declaration +## Type Declaration ### left > **left**: `TSESTree.MemberExpression` & `object` -#### Type declaration +#### Type Declaration ##### property > **property**: `TSESTree.Identifier` & `object` -###### Type declaration +###### Type Declaration ###### name diff --git a/packages/utilities/kit/docs/@eslint-react/namespaces/Selector/type-aliases/ImplicitReturnArrowFunctionExpression.md b/packages/utilities/kit/docs/@eslint-react/namespaces/Selector/type-aliases/ImplicitReturnArrowFunctionExpression.md index 8be06bf6e3..bb83e7c766 100644 --- a/packages/utilities/kit/docs/@eslint-react/namespaces/Selector/type-aliases/ImplicitReturnArrowFunctionExpression.md +++ b/packages/utilities/kit/docs/@eslint-react/namespaces/Selector/type-aliases/ImplicitReturnArrowFunctionExpression.md @@ -8,7 +8,7 @@ > **ImplicitReturnArrowFunctionExpression** = `TSESTree.ArrowFunctionExpression` & `object` -## Type declaration +## Type Declaration ### body diff --git a/packages/utilities/kit/docs/@eslint-react/namespaces/Selector/type-aliases/ObjectDestructuringVariableDeclarator.md b/packages/utilities/kit/docs/@eslint-react/namespaces/Selector/type-aliases/ObjectDestructuringVariableDeclarator.md index 89690aa807..4f2afc50ff 100644 --- a/packages/utilities/kit/docs/@eslint-react/namespaces/Selector/type-aliases/ObjectDestructuringVariableDeclarator.md +++ b/packages/utilities/kit/docs/@eslint-react/namespaces/Selector/type-aliases/ObjectDestructuringVariableDeclarator.md @@ -8,7 +8,7 @@ > **ObjectDestructuringVariableDeclarator** = `TSESTree.VariableDeclarator` & `object` -## Type declaration +## Type Declaration ### id diff --git a/packages/utilities/kit/package.json b/packages/utilities/kit/package.json index a5e25fe94d..f2dfd00a12 100644 --- a/packages/utilities/kit/package.json +++ b/packages/utilities/kit/package.json @@ -27,7 +27,7 @@ "./package.json" ], "scripts": { - "build": "tsup", + "build": "tsdown --dts-resolve", "build:docs": "typedoc", "lint:publish": "publint", "lint:ts": "tsc --noEmit", @@ -43,7 +43,7 @@ "devDependencies": { "@local/configs": "workspace:*", "@tsconfig/node22": "^22.0.2", - "tsup": "^8.5.0", + "tsdown": "^0.14.2", "type-fest": "^4.41.0" }, "engines": { diff --git a/packages/utilities/kit/tsup.config.ts b/packages/utilities/kit/tsdown.config.ts similarity index 82% rename from packages/utilities/kit/tsup.config.ts rename to packages/utilities/kit/tsdown.config.ts index d7889c3b34..ab2056e62f 100644 --- a/packages/utilities/kit/tsup.config.ts +++ b/packages/utilities/kit/tsdown.config.ts @@ -1,4 +1,4 @@ -import type { Options } from "tsup"; +import type { Options } from "tsdown"; export default { clean: true, @@ -10,7 +10,6 @@ export default { outDir: "dist", platform: "neutral", sourcemap: false, - splitting: false, target: "node20", treeshake: true, } satisfies Options; diff --git a/packages/utilities/var/package.json b/packages/utilities/var/package.json index 4f35f93461..baa414b2f6 100644 --- a/packages/utilities/var/package.json +++ b/packages/utilities/var/package.json @@ -27,7 +27,7 @@ "./package.json" ], "scripts": { - "build": "tsup", + "build": "tsdown --dts-resolve", "lint:publish": "publint", "lint:ts": "tsc --noEmit", "publish": "pnpm run build && pnpm run lint:publish" @@ -43,7 +43,7 @@ }, "devDependencies": { "@local/configs": "workspace:*", - "tsup": "^8.5.0" + "tsdown": "^0.14.2" }, "engines": { "node": ">=20.19.0" diff --git a/packages/utilities/var/tsdown.config.ts b/packages/utilities/var/tsdown.config.ts new file mode 100644 index 0000000000..031761a959 --- /dev/null +++ b/packages/utilities/var/tsdown.config.ts @@ -0,0 +1,15 @@ +import type { Options } from "tsdown"; + +export default { + clean: true, + dts: true, + entry: ["src/index.ts"], + external: ["eslint", "typescript"], + format: ["esm"], + minify: false, + outDir: "dist", + platform: "node", + sourcemap: false, + target: "node20", + treeshake: true, +} satisfies Options; diff --git a/packages/utilities/var/tsup.config.ts b/packages/utilities/var/tsup.config.ts deleted file mode 100644 index e037e267d9..0000000000 --- a/packages/utilities/var/tsup.config.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { Options } from "tsup"; - -export default { - clean: true, - dts: true, - entry: ["src/index.ts"], - external: ["eslint", "typescript"], - format: ["esm"], - minify: false, - outDir: "dist", - platform: "node", - sourcemap: false, - splitting: false, - target: "node20", - treeshake: true, -} satisfies Options; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6b46322ff8..3f73f8abea 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -88,9 +88,6 @@ importers: effect: specifier: ^3.17.9 version: 3.17.9 - esbuild: - specifier: ^0.25.9 - version: 0.25.9 eslint: specifier: ^9.34.0 version: 9.34.0(jiti@2.5.1) @@ -145,9 +142,9 @@ importers: ts-pattern: specifier: ^5.8.0 version: 5.8.0 - tsup: - specifier: ^8.5.0 - version: 8.5.0(@swc/core@1.13.5(@swc/helpers@0.5.17))(jiti@2.5.1)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.2)(yaml@2.8.0) + tsdown: + specifier: ^0.14.2 + version: 0.14.2(publint@0.3.12)(typescript@5.9.2) tsx: specifier: ^4.20.5 version: 4.20.5 @@ -275,9 +272,9 @@ importers: '@types/react-dom': specifier: ^19.1.7 version: 19.1.7(@types/react@19.1.11) - tsup: - specifier: ^8.5.0 - version: 8.5.0(@swc/core@1.13.5(@swc/helpers@0.5.17))(jiti@2.5.1)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.2)(yaml@2.8.0) + tsdown: + specifier: ^0.14.2 + version: 0.14.2(publint@0.3.12)(typescript@5.9.2) apps/website: dependencies: @@ -884,9 +881,9 @@ importers: '@local/configs': specifier: workspace:* version: link:../../.pkgs/configs - tsup: - specifier: ^8.5.0 - version: 8.5.0(@swc/core@1.13.5(@swc/helpers@0.5.17))(jiti@2.5.1)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.2)(yaml@2.8.0) + tsdown: + specifier: ^0.14.2 + version: 0.14.2(publint@0.3.12)(typescript@5.9.2) packages/plugins/eslint-plugin: dependencies: @@ -939,9 +936,9 @@ importers: '@local/configs': specifier: workspace:* version: link:../../../.pkgs/configs - tsup: - specifier: ^8.5.0 - version: 8.5.0(@swc/core@1.13.5(@swc/helpers@0.5.17))(jiti@2.5.1)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.2)(yaml@2.8.0) + tsdown: + specifier: ^0.14.2 + version: 0.14.2(publint@0.3.12)(typescript@5.9.2) packages/plugins/eslint-plugin-react-debug: dependencies: @@ -997,9 +994,9 @@ importers: '@types/react-dom': specifier: ^19.1.7 version: 19.1.7(@types/react@19.1.11) - tsup: - specifier: ^8.5.0 - version: 8.5.0(@swc/core@1.13.5(@swc/helpers@0.5.17))(jiti@2.5.1)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.2)(yaml@2.8.0) + tsdown: + specifier: ^0.14.2 + version: 0.14.2(publint@0.3.12)(typescript@5.9.2) packages/plugins/eslint-plugin-react-dom: dependencies: @@ -1055,9 +1052,9 @@ importers: '@types/react-dom': specifier: ^19.1.7 version: 19.1.7(@types/react@19.1.11) - tsup: - specifier: ^8.5.0 - version: 8.5.0(@swc/core@1.13.5(@swc/helpers@0.5.17))(jiti@2.5.1)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.2)(yaml@2.8.0) + tsdown: + specifier: ^0.14.2 + version: 0.14.2(publint@0.3.12)(typescript@5.9.2) packages/plugins/eslint-plugin-react-hooks-extra: dependencies: @@ -1113,9 +1110,9 @@ importers: '@types/react-dom': specifier: ^19.1.7 version: 19.1.7(@types/react@19.1.11) - tsup: - specifier: ^8.5.0 - version: 8.5.0(@swc/core@1.13.5(@swc/helpers@0.5.17))(jiti@2.5.1)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.2)(yaml@2.8.0) + tsdown: + specifier: ^0.14.2 + version: 0.14.2(publint@0.3.12)(typescript@5.9.2) packages/plugins/eslint-plugin-react-naming-convention: dependencies: @@ -1171,9 +1168,9 @@ importers: '@types/react-dom': specifier: ^19.1.7 version: 19.1.7(@types/react@19.1.11) - tsup: - specifier: ^8.5.0 - version: 8.5.0(@swc/core@1.13.5(@swc/helpers@0.5.17))(jiti@2.5.1)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.2)(yaml@2.8.0) + tsdown: + specifier: ^0.14.2 + version: 0.14.2(publint@0.3.12)(typescript@5.9.2) packages/plugins/eslint-plugin-react-web-api: dependencies: @@ -1226,9 +1223,9 @@ importers: '@types/react-dom': specifier: ^19.1.7 version: 19.1.7(@types/react@19.1.11) - tsup: - specifier: ^8.5.0 - version: 8.5.0(@swc/core@1.13.5(@swc/helpers@0.5.17))(jiti@2.5.1)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.2)(yaml@2.8.0) + tsdown: + specifier: ^0.14.2 + version: 0.14.2(publint@0.3.12)(typescript@5.9.2) packages/plugins/eslint-plugin-react-x: dependencies: @@ -1293,9 +1290,9 @@ importers: ts-api-utils: specifier: ^2.1.0 version: 2.1.0(typescript@5.9.2) - tsup: - specifier: ^8.5.0 - version: 8.5.0(@swc/core@1.13.5(@swc/helpers@0.5.17))(jiti@2.5.1)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.2)(yaml@2.8.0) + tsdown: + specifier: ^0.14.2 + version: 0.14.2(publint@0.3.12)(typescript@5.9.2) packages/shared: dependencies: @@ -1324,9 +1321,9 @@ importers: '@types/picomatch': specifier: ^4.0.2 version: 4.0.2 - tsup: - specifier: ^8.5.0 - version: 8.5.0(@swc/core@1.13.5(@swc/helpers@0.5.17))(jiti@2.5.1)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.2)(yaml@2.8.0) + tsdown: + specifier: ^0.14.2 + version: 0.14.2(publint@0.3.12)(typescript@5.9.2) type-fest: specifier: ^4.41.0 version: 4.41.0 @@ -1355,18 +1352,18 @@ importers: '@local/configs': specifier: workspace:* version: link:../../../.pkgs/configs - tsup: - specifier: ^8.5.0 - version: 8.5.0(@swc/core@1.13.5(@swc/helpers@0.5.17))(jiti@2.5.1)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.2)(yaml@2.8.0) + tsdown: + specifier: ^0.14.2 + version: 0.14.2(publint@0.3.12)(typescript@5.9.2) packages/utilities/eff: devDependencies: '@local/configs': specifier: workspace:* version: link:../../../.pkgs/configs - tsup: - specifier: ^8.5.0 - version: 8.5.0(@swc/core@1.13.5(@swc/helpers@0.5.17))(jiti@2.5.1)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.2)(yaml@2.8.0) + tsdown: + specifier: ^0.14.2 + version: 0.14.2(publint@0.3.12)(typescript@5.9.2) packages/utilities/kit: dependencies: @@ -1392,9 +1389,9 @@ importers: '@tsconfig/node22': specifier: ^22.0.2 version: 22.0.2 - tsup: - specifier: ^8.5.0 - version: 8.5.0(@swc/core@1.13.5(@swc/helpers@0.5.17))(jiti@2.5.1)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.2)(yaml@2.8.0) + tsdown: + specifier: ^0.14.2 + version: 0.14.2(publint@0.3.12)(typescript@5.9.2) type-fest: specifier: ^4.41.0 version: 4.41.0 @@ -1426,9 +1423,9 @@ importers: '@local/configs': specifier: workspace:* version: link:../../../.pkgs/configs - tsup: - specifier: ^8.5.0 - version: 8.5.0(@swc/core@1.13.5(@swc/helpers@0.5.17))(jiti@2.5.1)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.2)(yaml@2.8.0) + tsdown: + specifier: ^0.14.2 + version: 0.14.2(publint@0.3.12)(typescript@5.9.2) packages: @@ -3283,9 +3280,16 @@ packages: cpu: [x64] os: [win32] + '@oxc-project/runtime@0.82.3': + resolution: {integrity: sha512-LNh5GlJvYHAnMurO+EyA8jJwN1rki7l3PSHuosDh2I7h00T6/u9rCkUjg/SvPmT1CZzvhuW0y+gf7jcqUy/Usg==} + engines: {node: '>=6.9.0'} + '@oxc-project/types@0.73.2': resolution: {integrity: sha512-kU2FjfCb9VTNg/KbOTKVi2sYrKTkNQYq1Fi1v1jCKjbUGA9wqkNDqijNBLeDwagFtDuK2EIWvTzNDYU4k/918g==} + '@oxc-project/types@0.82.3': + resolution: {integrity: sha512-6nCUxBnGX0c6qfZW5MaF6/fmu5dHJDMiMPaioKHKs5mi5+8/FHQ7WGjgQIz1zxpmceMYfdIXkOaLYE+ejbuOtA==} + '@oxc-transform/binding-android-arm64@0.82.3': resolution: {integrity: sha512-25Wh8wRSVMNiGJHeT1kIOKynrXbMoSR5vkhL+j7GyXs+R7tA3Vah574NK86y7k8Ayz7bmddSepue+Mp4/B2bqg==} engines: {node: '>=14.0.0'} @@ -3471,6 +3475,9 @@ packages: resolution: {integrity: sha512-S+9ANAvUmjutrshV4jZjaiG8XQyuJIZ8a4utWmN/vW1sgQ9IfBnPndwkmQYw53QmouOIytT874u65HEmu6H5jw==} engines: {node: '>=18'} + '@quansync/fs@0.1.5': + resolution: {integrity: sha512-lNS9hL2aS2NZgNW7BBj+6EBl4rOf8l+tQ0eRY6JWCI8jI2kc53gSoqbjojU0OnAWhzoXiOjFyGsHcDGePB3lhA==} + '@radix-ui/number@1.1.1': resolution: {integrity: sha512-MkKCwxlXTgz6CFoJx3pCwn07GKp36+aZyu/u2Ln2VrA5DcdyCZkASEDBTd8x5whTQQL5CiYf4prXKLcgQdv29g==} @@ -3845,9 +3852,82 @@ packages: '@radix-ui/rect@1.1.1': resolution: {integrity: sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw==} + '@rolldown/binding-android-arm64@1.0.0-beta.34': + resolution: {integrity: sha512-jf5GNe5jP3Sr1Tih0WKvg2bzvh5T/1TA0fn1u32xSH7ca/p5t+/QRr4VRFCV/na5vjwKEhwWrChsL2AWlY+eoA==} + cpu: [arm64] + os: [android] + + '@rolldown/binding-darwin-arm64@1.0.0-beta.34': + resolution: {integrity: sha512-2F/TqH4QuJQ34tgWxqBjFL3XV1gMzeQgUO8YRtCPGBSP0GhxtoFzsp7KqmQEothsxztlv+KhhT9Dbg3HHwHViQ==} + cpu: [arm64] + os: [darwin] + + '@rolldown/binding-darwin-x64@1.0.0-beta.34': + resolution: {integrity: sha512-E1QuFslgLWbHQ8Qli/AqUKdfg0pockQPwRxVbhNQ74SciZEZpzLaujkdmOLSccMlSXDfFCF8RPnMoRAzQ9JV8Q==} + cpu: [x64] + os: [darwin] + + '@rolldown/binding-freebsd-x64@1.0.0-beta.34': + resolution: {integrity: sha512-VS8VInNCwnkpI9WeQaWu3kVBq9ty6g7KrHdLxYMzeqz24+w9hg712TcWdqzdY6sn+24lUoMD9jTZrZ/qfVpk0g==} + cpu: [x64] + os: [freebsd] + + '@rolldown/binding-linux-arm-gnueabihf@1.0.0-beta.34': + resolution: {integrity: sha512-4St4emjcnULnxJYb/5ZDrH/kK/j6PcUgc3eAqH5STmTrcF+I9m/X2xvSF2a2bWv1DOQhxBewThu0KkwGHdgu5w==} + cpu: [arm] + os: [linux] + + '@rolldown/binding-linux-arm64-gnu@1.0.0-beta.34': + resolution: {integrity: sha512-a737FTqhFUoWfnebS2SnQ2BS50p0JdukdkUBwy2J06j4hZ6Eej0zEB8vTfAqoCjn8BQKkXBy+3Sx0IRkgwz1gA==} + cpu: [arm64] + os: [linux] + + '@rolldown/binding-linux-arm64-musl@1.0.0-beta.34': + resolution: {integrity: sha512-NH+FeQWKyuw0k+PbXqpFWNfvD8RPvfJk766B/njdaWz4TmiEcSB0Nb6guNw1rBpM1FmltQYb3fFnTumtC6pRfA==} + cpu: [arm64] + os: [linux] + + '@rolldown/binding-linux-x64-gnu@1.0.0-beta.34': + resolution: {integrity: sha512-Q3RSCivp8pNadYK8ke3hLnQk08BkpZX9BmMjgwae2FWzdxhxxUiUzd9By7kneUL0vRQ4uRnhD9VkFQ+Haeqdvw==} + cpu: [x64] + os: [linux] + + '@rolldown/binding-linux-x64-musl@1.0.0-beta.34': + resolution: {integrity: sha512-wDd/HrNcVoBhWWBUW3evJHoo7GJE/RofssBy3Dsiip05YUBmokQVrYAyrboOY4dzs/lJ7HYeBtWQ9hj8wlyF0A==} + cpu: [x64] + os: [linux] + + '@rolldown/binding-openharmony-arm64@1.0.0-beta.34': + resolution: {integrity: sha512-dH3FTEV6KTNWpYSgjSXZzeX7vLty9oBYn6R3laEdhwZftQwq030LKL+5wyQdlbX5pnbh4h127hpv3Hl1+sj8dg==} + cpu: [arm64] + os: [openharmony] + + '@rolldown/binding-wasm32-wasi@1.0.0-beta.34': + resolution: {integrity: sha512-y5BUf+QtO0JsIDKA51FcGwvhJmv89BYjUl8AmN7jqD6k/eU55mH6RJYnxwCsODq5m7KSSTigVb6O7/GqB8wbPw==} + engines: {node: '>=14.0.0'} + cpu: [wasm32] + + '@rolldown/binding-win32-arm64-msvc@1.0.0-beta.34': + resolution: {integrity: sha512-ga5hFhdTwpaNxEiuxZHWnD3ed0GBAzbgzS5tRHpe0ObptxM1a9Xrq6TVfNQirBLwb5Y7T/FJmJi3pmdLy95ljg==} + cpu: [arm64] + os: [win32] + + '@rolldown/binding-win32-ia32-msvc@1.0.0-beta.34': + resolution: {integrity: sha512-4/MBp9T9eRnZskxWr8EXD/xHvLhdjWaeX/qY9LPRG1JdCGV3DphkLTy5AWwIQ5jhAy2ZNJR5z2fYRlpWU0sIyQ==} + cpu: [ia32] + os: [win32] + + '@rolldown/binding-win32-x64-msvc@1.0.0-beta.34': + resolution: {integrity: sha512-7O5iUBX6HSBKlQU4WykpUoEmb0wQmonb6ziKFr3dJTHud2kzDnWMqk344T0qm3uGv9Ddq6Re/94pInxo1G2d4w==} + cpu: [x64] + os: [win32] + '@rolldown/pluginutils@1.0.0-beta.32': resolution: {integrity: sha512-QReCdvxiUZAPkvp1xpAg62IeNzykOFA6syH2CnClif4YmALN1XKpB39XneL80008UbtMShthSVDKmrx05N1q/g==} + '@rolldown/pluginutils@1.0.0-beta.34': + resolution: {integrity: sha512-LyAREkZHP5pMom7c24meKmJCdhf2hEyvam2q0unr3or9ydwDL+DJ8chTF6Av/RFPb3rH8UFBdMzO5MxTZW97oA==} + '@rollup/rollup-android-arm-eabi@4.46.2': resolution: {integrity: sha512-Zj3Hl6sN34xJtMv7Anwb5Gu01yujyE/cLBDB2gnHTAHaWS1Z38L7kuSG+oAh0giZMqG060f/YBStXtMH6FvPMA==} cpu: [arm] @@ -4961,9 +5041,6 @@ packages: resolution: {integrity: sha512-BGcItUBWSMRgOCe+SVZJ+S7yTRG0eGt9cXAHev72yuGcY23hnLA7Bky5L/xLyPINoSN95geovfBkqoTlNZYa7w==} engines: {node: '>=14'} - any-promise@1.3.0: - resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==} - anymatch@3.1.3: resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} engines: {node: '>= 8'} @@ -5009,6 +5086,10 @@ packages: resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} engines: {node: '>=12'} + ast-kit@2.1.2: + resolution: {integrity: sha512-cl76xfBQM6pztbrFWRnxbrDm9EOqDr1BF6+qQnnDZG2Co2LjyUktkN9GTJfBAfdae+DbT2nJf2nCGAdDDN7W2g==} + engines: {node: '>=20.18.0'} + astring@1.9.0: resolution: {integrity: sha512-LElXdjswlqjWrPpJFg1Fx4wpkOCxj1TDHlSV4PlaRxHGWko024xICaa97ZkMfs6DRKlCguiAI+rbXv5GWwXIkg==} hasBin: true @@ -5075,6 +5156,9 @@ packages: birecord@0.1.1: resolution: {integrity: sha512-VUpsf/qykW0heRlC8LooCq28Kxn3mAqKohhDG/49rrsQ1dT1CXyj/pgXS+5BSRzFTR/3DyIBOqQOrGyZOh71Aw==} + birpc@2.5.0: + resolution: {integrity: sha512-VSWO/W6nNQdyP520F1mhf+Lc2f8pjGQOtoHHm7Ze8Go1kX7akpVIrtTa0fn+HB0QJEDVacl6aO08YE0PgXfdnQ==} + bl@4.1.0: resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==} @@ -5337,10 +5421,6 @@ packages: commander@2.20.3: resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} - commander@4.1.1: - resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==} - engines: {node: '>= 6'} - commander@7.2.0: resolution: {integrity: sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==} engines: {node: '>= 10'} @@ -5388,10 +5468,6 @@ packages: resolution: {integrity: sha512-ZqRXc+tZukToSNmh5C2iWMSoV3X1YUcPbqEM4DkEG5tNQXrQUZCNVGGv3IuicnkMtPfGf3Xtp8WCXs295iQ1pQ==} engines: {node: '>= 0.10.0'} - consola@3.4.2: - resolution: {integrity: sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==} - engines: {node: ^14.18.0 || >=16.10.0} - content-type@1.0.5: resolution: {integrity: sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==} engines: {node: '>= 0.6'} @@ -5868,6 +5944,10 @@ packages: devlop@1.1.0: resolution: {integrity: sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==} + diff@8.0.2: + resolution: {integrity: sha512-sSuxWU5j5SR9QQji/o2qMvqRNYRDOcBTgsJ/DeCf4iSN4gW+gNMXM7wFIP+fdXZxoNiAnHUTGjCr+TSWXdRDKg==} + engines: {node: '>=0.3.1'} + digraph-js@2.2.3: resolution: {integrity: sha512-btynrARSW6pBmDz9+cwCxkBJ91CGBxIaNQo7V+ul9/rCRr3HddwehpEMnL6Ru2OeC2pKdRteB1v5TgZRrAAYKQ==} engines: {node: '>=16.0.0'} @@ -5904,6 +5984,15 @@ packages: resolution: {integrity: sha512-s+kUyQp2rGpwsM3vVmXySOY3v1NjYyRpKfQZdP4rfNTz6zQuICSO6nqIXNm3YdK1MwNFR/EXSFMuE1YPuulhow==} hasBin: true + dts-resolver@2.1.2: + resolution: {integrity: sha512-xeXHBQkn2ISSXxbJWD828PFjtyg+/UrMDo7W4Ffcs7+YWCquxU8YjV1KoxuiL+eJ5pg3ll+bC6flVv61L3LKZg==} + engines: {node: '>=20.18.0'} + peerDependencies: + oxc-resolver: '>=11.0.0' + peerDependenciesMeta: + oxc-resolver: + optional: true + dunder-proto@1.0.1: resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==} engines: {node: '>= 0.4'} @@ -5936,6 +6025,10 @@ packages: resolution: {integrity: sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==} engines: {node: '>= 4'} + empathic@2.0.0: + resolution: {integrity: sha512-i6UzDscO/XfAcNYD75CfICkmfLedpyPDdozrLMmQc5ORaQcdMoc21OnlEylMIqI7U8eniKrPMxxtj8k0vhmJhA==} + engines: {node: '>=14'} + encodeurl@1.0.2: resolution: {integrity: sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==} engines: {node: '>= 0.8'} @@ -6304,9 +6397,6 @@ packages: resolution: {integrity: sha512-MzwXju70AuyflbgeOhzvQWAvvQdo1XL0A9bVvlXsYcFEBM87WR4OakL4OfZq+QRmr+duJubio+UtNQCPsVESzQ==} engines: {node: '>= 10.13.0'} - fix-dts-default-cjs-exports@1.0.1: - resolution: {integrity: sha512-pVIECanWFC61Hzl2+oOCtoJ3F17kglZC/6N94eRWycFgBH35hHx0Li604ZIzhseh97mf2p0cv7vVrOZGoqhlEg==} - flat-cache@4.0.1: resolution: {integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==} engines: {node: '>=16'} @@ -6622,6 +6712,9 @@ packages: resolution: {integrity: sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==} engines: {node: '>=0.10.0'} + hookable@5.5.3: + resolution: {integrity: sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==} + hosted-git-info@7.0.2: resolution: {integrity: sha512-puUZAUKT5m8Zzvs72XWy3HtvVbTWljRE66cP60bxJzAqf2DgICo7lYTY2IHUmLnNpjYvw5bvmoHvPc0QO2a62w==} engines: {node: ^16.14.0 || >=18.0.0} @@ -6948,10 +7041,6 @@ packages: resolution: {integrity: sha512-twQoecYPiVA5K/h6SxtORw/Bs3ar+mLUtoPSc7iMXzQzK8d7eJ/R09wmTwAjiamETn1cXYPGfNnu7DMoHgu12w==} hasBin: true - joycon@3.1.1: - resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==} - engines: {node: '>=10'} - js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} @@ -7227,9 +7316,6 @@ packages: lodash.merge@4.6.2: resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} - lodash.sortby@4.7.0: - resolution: {integrity: sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==} - lodash.unionby@4.8.0: resolution: {integrity: sha512-e60kn4GJIunNkw6v9MxRnUuLYI/Tyuanch7ozoCtk/1irJTYBj+qNTxr5B3qVflmJhwStJBv387Cb+9VOfABMg==} @@ -7613,9 +7699,6 @@ packages: multipasta@0.2.7: resolution: {integrity: sha512-KPA58d68KgGil15oDqXjkUBEBYc00XvbPj5/X+dyzeo/lWm9Nc25pQRlf1D+gv4OpK7NM0J1odrbu9JNNGvynA==} - mz@2.7.0: - resolution: {integrity: sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==} - nanoid@3.3.11: resolution: {integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} @@ -7940,10 +8023,6 @@ packages: resolution: {integrity: sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==} engines: {node: '>=12'} - pirates@4.0.7: - resolution: {integrity: sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==} - engines: {node: '>= 6'} - pkg-types@1.3.1: resolution: {integrity: sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==} @@ -8012,24 +8091,6 @@ packages: peerDependencies: postcss: ^8.4.31 - postcss-load-config@6.0.1: - resolution: {integrity: sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==} - engines: {node: '>= 18'} - peerDependencies: - jiti: '>=1.21.0' - postcss: '>=8.0.9' - tsx: ^4.8.1 - yaml: ^2.4.2 - peerDependenciesMeta: - jiti: - optional: true - postcss: - optional: true - tsx: - optional: true - yaml: - optional: true - postcss-merge-longhand@6.0.5: resolution: {integrity: sha512-5LOiordeTfi64QhICp07nzzuTDjNSO8g5Ksdibt44d+uvIIAE1oZdRn8y/W5ZtYgRH/lnLDlvi9F8btZcVzu3w==} engines: {node: ^14 || ^16 || >=18.0} @@ -8219,8 +8280,8 @@ packages: resolution: {integrity: sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==} engines: {node: '>=0.6'} - quansync@0.2.10: - resolution: {integrity: sha512-t41VRkMYbkHyCYmOvx/6URnN80H7k4X0lLdBMGsz+maAwrJQYB1djpV6vHrQIBE0WBSGqhtEHrK9U3DWWH8v7A==} + quansync@0.2.11: + resolution: {integrity: sha512-AifT7QEbW9Nri4tAwR5M/uzpBuqfZf+zwaEM/QkzEjj7NBuFD2rBuy0K3dE+8wltbezDV7JMA0WfnCPYRSYbXA==} queue-microtask@1.2.3: resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} @@ -8447,6 +8508,26 @@ packages: robust-predicates@3.0.2: resolution: {integrity: sha512-IXgzBWvWQwE6PrDI05OvmXUIruQTcoMDzRsOd5CDvHCVLcLHMTSYvOK5Cm46kWqlV3yAbuSpBZdJ5oP5OUoStg==} + rolldown-plugin-dts@0.15.9: + resolution: {integrity: sha512-S2pPcC8h0C8a0ZLDdUTqqtTR9jlryThF3SmH8eZw97FQwgY+hd0x07Zm5algBkmj25S4nvvOusliR1YpImK3LA==} + engines: {node: '>=20.18.0'} + peerDependencies: + '@typescript/native-preview': '>=7.0.0-dev.20250601.1' + rolldown: ^1.0.0-beta.9 + typescript: ^5.9.2 + vue-tsc: ~3.0.3 + peerDependenciesMeta: + '@typescript/native-preview': + optional: true + typescript: + optional: true + vue-tsc: + optional: true + + rolldown@1.0.0-beta.34: + resolution: {integrity: sha512-Wwh7EwalMzzX3Yy3VN58VEajeR2Si8+HDNMf706jPLIqU7CxneRW+dQVfznf5O0TWTnJyu4npelwg2bzTXB1Nw==} + hasBin: true + rollup@4.46.2: resolution: {integrity: sha512-WMmLFI+Boh6xbop+OAGo9cQ3OgX9MIg7xOQjn+pTCwOkk+FNDAeAemXkJ3HzDJrVXleLOFVa1ipuc1AmEx1Dwg==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} @@ -8748,11 +8829,6 @@ packages: resolution: {integrity: sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==} engines: {node: '>= 8'} - source-map@0.8.0-beta.0: - resolution: {integrity: sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==} - engines: {node: '>= 8'} - deprecated: The work that was done in this beta branch won't be included in future versions - space-separated-tokens@2.0.2: resolution: {integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==} @@ -8880,11 +8956,6 @@ packages: stylis@4.3.6: resolution: {integrity: sha512-yQ3rwFWRfwNUY7H5vpU0wfdkNSnvnJinhF9830Swlaxl03zsOjCfmX0ugac+3LtK0lYSgwL/KXc8oYL3mG4YFQ==} - sucrase@3.35.0: - resolution: {integrity: sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==} - engines: {node: '>=16 || 14 >=14.17'} - hasBin: true - supports-color@7.2.0: resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} engines: {node: '>=8'} @@ -8966,13 +9037,6 @@ packages: text-table@0.2.0: resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} - thenify-all@1.6.0: - resolution: {integrity: sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==} - engines: {node: '>=0.8'} - - thenify@3.3.1: - resolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==} - thingies@2.5.0: resolution: {integrity: sha512-s+2Bwztg6PhWUD7XMfeYm5qliDdSiZm7M7n8KjTkIsm3l/2lgVRc2/Gx/v+ZX8lT4FMA+i8aQvhcWylldc+ZNw==} engines: {node: '>=10.18'} @@ -9023,9 +9087,6 @@ packages: resolution: {integrity: sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==} engines: {node: '>=6'} - tr46@1.0.1: - resolution: {integrity: sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==} - tree-dump@1.0.3: resolution: {integrity: sha512-il+Cv80yVHFBwokQSfd4bldvr1Md951DpgAGfmhydt04L+YzHgubm2tQ7zueWDcGENKHq0ZvGFR/hjvNXilHEg==} engines: {node: '>=10.0'} @@ -9079,9 +9140,6 @@ packages: resolution: {integrity: sha512-q5W7tVM71e2xjHZTlgfTDoPF/SmqKG5hddq9SzR49CH2hayqRKJtQ4mtRlSxKaJlR/+9rEM+mnBHf7I2/BQcpQ==} engines: {node: '>=6.10'} - ts-interface-checker@0.1.13: - resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==} - ts-morph@26.0.0: resolution: {integrity: sha512-ztMO++owQnz8c/gIENcM9XfCEzgoGphTv+nKpYNM1bgsdOVC/jRZuEBf6N+mLLDNg68Kl+GgUZfOySaRiG1/Ug==} @@ -9092,27 +9150,30 @@ packages: resolution: {integrity: sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==} engines: {node: '>=6'} - tslib@2.8.1: - resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} - - tsup@8.5.0: - resolution: {integrity: sha512-VmBp77lWNQq6PfuMqCHD3xWl22vEoWsKajkF8t+yMBawlUS8JzEI+vOVMeuNZIuMML8qXRizFKi9oD5glKQVcQ==} - engines: {node: '>=18'} + tsdown@0.14.2: + resolution: {integrity: sha512-6ThtxVZoTlR5YJov5rYvH8N1+/S/rD/pGfehdCLGznGgbxz+73EASV1tsIIZkLw2n+SXcERqHhcB/OkyxdKv3A==} + engines: {node: '>=20.19.0'} hasBin: true peerDependencies: - '@microsoft/api-extractor': ^7.36.0 - '@swc/core': ^1 - postcss: ^8.4.12 + '@arethetypeswrong/core': ^0.18.1 + publint: ^0.3.0 typescript: ^5.9.2 + unplugin-lightningcss: ^0.4.0 + unplugin-unused: ^0.5.0 peerDependenciesMeta: - '@microsoft/api-extractor': - optional: true - '@swc/core': + '@arethetypeswrong/core': optional: true - postcss: + publint: optional: true typescript: optional: true + unplugin-lightningcss: + optional: true + unplugin-unused: + optional: true + + tslib@2.8.1: + resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} tsx@4.20.5: resolution: {integrity: sha512-+wKjMNU9w/EaQayHXb7WA7ZaHY6hN8WgfvHNQ3t1PnU91/7O8TcTnIhCDYTZwnt8JsO9IBqZ30Ln1r7pPF52Aw==} @@ -9206,6 +9267,9 @@ packages: resolution: {integrity: sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==} engines: {node: '>= 0.4'} + unconfig@7.3.3: + resolution: {integrity: sha512-QCkQoOnJF8L107gxfHL0uavn7WD9b3dpBcFX6HtfQYmjw2YzWxGuFQ0N0J6tE9oguCBJn9KOvfqYDCMPHIZrBA==} + uncrypto@0.1.3: resolution: {integrity: sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==} @@ -9460,9 +9524,6 @@ packages: wcwidth@1.0.1: resolution: {integrity: sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==} - webidl-conversions@4.0.2: - resolution: {integrity: sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==} - webpack-sources@3.3.3: resolution: {integrity: sha512-yd1RBzSGanHkitROoPFd6qsrxt+oFhg/129YzheDGqeustzX0vTZJZsSsQjVQC4yzBQ56K55XU8gaNCtIzOnTg==} engines: {node: '>=10.13.0'} @@ -9477,9 +9538,6 @@ packages: webpack-cli: optional: true - whatwg-url@7.1.0: - resolution: {integrity: sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==} - which-boxed-primitive@1.1.1: resolution: {integrity: sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==} engines: {node: '>= 0.4'} @@ -11592,8 +11650,12 @@ snapshots: '@oxc-parser/binding-win32-x64-msvc@0.73.2': optional: true + '@oxc-project/runtime@0.82.3': {} + '@oxc-project/types@0.73.2': {} + '@oxc-project/types@0.82.3': {} + '@oxc-transform/binding-android-arm64@0.82.3': optional: true @@ -11710,6 +11772,10 @@ snapshots: '@publint/pack@0.1.2': {} + '@quansync/fs@0.1.5': + dependencies: + quansync: 0.2.11 + '@radix-ui/number@1.1.1': {} '@radix-ui/primitive@1.1.3': {} @@ -12083,8 +12149,54 @@ snapshots: '@radix-ui/rect@1.1.1': {} + '@rolldown/binding-android-arm64@1.0.0-beta.34': + optional: true + + '@rolldown/binding-darwin-arm64@1.0.0-beta.34': + optional: true + + '@rolldown/binding-darwin-x64@1.0.0-beta.34': + optional: true + + '@rolldown/binding-freebsd-x64@1.0.0-beta.34': + optional: true + + '@rolldown/binding-linux-arm-gnueabihf@1.0.0-beta.34': + optional: true + + '@rolldown/binding-linux-arm64-gnu@1.0.0-beta.34': + optional: true + + '@rolldown/binding-linux-arm64-musl@1.0.0-beta.34': + optional: true + + '@rolldown/binding-linux-x64-gnu@1.0.0-beta.34': + optional: true + + '@rolldown/binding-linux-x64-musl@1.0.0-beta.34': + optional: true + + '@rolldown/binding-openharmony-arm64@1.0.0-beta.34': + optional: true + + '@rolldown/binding-wasm32-wasi@1.0.0-beta.34': + dependencies: + '@napi-rs/wasm-runtime': 1.0.3 + optional: true + + '@rolldown/binding-win32-arm64-msvc@1.0.0-beta.34': + optional: true + + '@rolldown/binding-win32-ia32-msvc@1.0.0-beta.34': + optional: true + + '@rolldown/binding-win32-x64-msvc@1.0.0-beta.34': + optional: true + '@rolldown/pluginutils@1.0.0-beta.32': {} + '@rolldown/pluginutils@1.0.0-beta.34': {} + '@rollup/rollup-android-arm-eabi@4.46.2': optional: true @@ -13351,8 +13463,6 @@ snapshots: ansis@4.1.0: {} - any-promise@1.3.0: {} - anymatch@3.1.3: dependencies: normalize-path: 3.0.0 @@ -13395,6 +13505,11 @@ snapshots: assertion-error@2.0.1: {} + ast-kit@2.1.2: + dependencies: + '@babel/parser': 7.28.3 + pathe: 2.0.3 + astring@1.9.0: {} async-function@1.0.0: {} @@ -13463,6 +13578,8 @@ snapshots: birecord@0.1.1: {} + birpc@2.5.0: {} + bl@4.1.0: dependencies: buffer: 5.7.1 @@ -13738,8 +13855,6 @@ snapshots: commander@2.20.3: {} - commander@4.1.1: {} - commander@7.2.0: {} commander@8.3.0: {} @@ -13796,8 +13911,6 @@ snapshots: transitivePeerDependencies: - supports-color - consola@3.4.2: {} - content-type@1.0.5: {} convert-source-map@2.0.0: {} @@ -14351,6 +14464,8 @@ snapshots: dependencies: dequal: 2.0.3 + diff@8.0.2: {} + digraph-js@2.2.3: dependencies: lodash.isequal: 4.5.0 @@ -14400,6 +14515,8 @@ snapshots: '@dprint/win32-arm64': 0.50.1 '@dprint/win32-x64': 0.50.1 + dts-resolver@2.1.2: {} + dunder-proto@1.0.1: dependencies: call-bind-apply-helpers: 1.0.2 @@ -14427,6 +14544,8 @@ snapshots: emojis-list@3.0.0: {} + empathic@2.0.0: {} + encodeurl@1.0.2: {} end-of-stream@1.4.4: @@ -14953,12 +15072,6 @@ snapshots: micromatch: 4.0.8 resolve-dir: 1.0.1 - fix-dts-default-cjs-exports@1.0.1: - dependencies: - magic-string: 0.30.17 - mlly: 1.7.4 - rollup: 4.46.2 - flat-cache@4.0.1: dependencies: flatted: 3.3.3 @@ -15368,6 +15481,8 @@ snapshots: dependencies: parse-passwd: 1.0.0 + hookable@5.5.3: {} + hosted-git-info@7.0.2: dependencies: lru-cache: 10.4.3 @@ -15679,8 +15794,6 @@ snapshots: jiti@2.5.1: {} - joycon@3.1.1: {} - js-tokens@4.0.0: {} js-tokens@9.0.1: {} @@ -15878,7 +15991,7 @@ snapshots: dependencies: mlly: 1.7.4 pkg-types: 2.1.0 - quansync: 0.2.10 + quansync: 0.2.11 locate-path@6.0.0: dependencies: @@ -15898,8 +16011,6 @@ snapshots: lodash.merge@4.6.2: {} - lodash.sortby@4.7.0: {} - lodash.unionby@4.8.0: {} lodash.uniq@4.5.0: {} @@ -16598,12 +16709,6 @@ snapshots: multipasta@0.2.7: {} - mz@2.7.0: - dependencies: - any-promise: 1.3.0 - object-assign: 4.1.1 - thenify-all: 1.6.0 - nanoid@3.3.11: {} napi-postinstall@0.3.3: {} @@ -16920,7 +17025,7 @@ snapshots: package-manager-detector@0.2.11: dependencies: - quansync: 0.2.10 + quansync: 0.2.11 package-manager-detector@1.2.0: {} @@ -16998,8 +17103,6 @@ snapshots: picomatch@4.0.3: {} - pirates@4.0.7: {} - pkg-types@1.3.1: dependencies: confbox: 0.1.8 @@ -17068,15 +17171,6 @@ snapshots: dependencies: postcss: 8.5.6 - postcss-load-config@6.0.1(jiti@2.5.1)(postcss@8.5.6)(tsx@4.20.5)(yaml@2.8.0): - dependencies: - lilconfig: 3.1.3 - optionalDependencies: - jiti: 2.5.1 - postcss: 8.5.6 - tsx: 4.20.5 - yaml: 2.8.0 - postcss-merge-longhand@6.0.5(postcss@8.5.6): dependencies: postcss: 8.5.6 @@ -17250,7 +17344,7 @@ snapshots: dependencies: side-channel: 1.1.0 - quansync@0.2.10: {} + quansync@0.2.11: {} queue-microtask@1.2.3: {} @@ -17531,6 +17625,45 @@ snapshots: robust-predicates@3.0.2: {} + rolldown-plugin-dts@0.15.9(rolldown@1.0.0-beta.34)(typescript@5.9.2): + dependencies: + '@babel/generator': 7.28.3 + '@babel/parser': 7.28.3 + '@babel/types': 7.28.2 + ast-kit: 2.1.2 + birpc: 2.5.0 + debug: 4.4.1 + dts-resolver: 2.1.2 + get-tsconfig: 4.10.1 + rolldown: 1.0.0-beta.34 + optionalDependencies: + typescript: 5.9.2 + transitivePeerDependencies: + - oxc-resolver + - supports-color + + rolldown@1.0.0-beta.34: + dependencies: + '@oxc-project/runtime': 0.82.3 + '@oxc-project/types': 0.82.3 + '@rolldown/pluginutils': 1.0.0-beta.34 + ansis: 4.1.0 + optionalDependencies: + '@rolldown/binding-android-arm64': 1.0.0-beta.34 + '@rolldown/binding-darwin-arm64': 1.0.0-beta.34 + '@rolldown/binding-darwin-x64': 1.0.0-beta.34 + '@rolldown/binding-freebsd-x64': 1.0.0-beta.34 + '@rolldown/binding-linux-arm-gnueabihf': 1.0.0-beta.34 + '@rolldown/binding-linux-arm64-gnu': 1.0.0-beta.34 + '@rolldown/binding-linux-arm64-musl': 1.0.0-beta.34 + '@rolldown/binding-linux-x64-gnu': 1.0.0-beta.34 + '@rolldown/binding-linux-x64-musl': 1.0.0-beta.34 + '@rolldown/binding-openharmony-arm64': 1.0.0-beta.34 + '@rolldown/binding-wasm32-wasi': 1.0.0-beta.34 + '@rolldown/binding-win32-arm64-msvc': 1.0.0-beta.34 + '@rolldown/binding-win32-ia32-msvc': 1.0.0-beta.34 + '@rolldown/binding-win32-x64-msvc': 1.0.0-beta.34 + rollup@4.46.2: dependencies: '@types/estree': 1.0.8 @@ -17937,10 +18070,6 @@ snapshots: source-map@0.7.4: {} - source-map@0.8.0-beta.0: - dependencies: - whatwg-url: 7.1.0 - space-separated-tokens@2.0.2: {} spdx-correct@3.2.0: @@ -18074,16 +18203,6 @@ snapshots: stylis@4.3.6: {} - sucrase@3.35.0: - dependencies: - '@jridgewell/gen-mapping': 0.3.12 - commander: 4.1.1 - glob: 10.4.5 - lines-and-columns: 1.2.4 - mz: 2.7.0 - pirates: 4.0.7 - ts-interface-checker: 0.1.13 - supports-color@7.2.0: dependencies: has-flag: 4.0.0 @@ -18166,14 +18285,6 @@ snapshots: text-table@0.2.0: {} - thenify-all@1.6.0: - dependencies: - thenify: 3.3.1 - - thenify@3.3.1: - dependencies: - any-promise: 1.3.0 - thingies@2.5.0(tslib@2.8.1): dependencies: tslib: 2.8.1 @@ -18207,10 +18318,6 @@ snapshots: totalist@3.0.1: {} - tr46@1.0.1: - dependencies: - punycode: 2.3.1 - tree-dump@1.0.3(tslib@2.8.1): dependencies: tslib: 2.8.1 @@ -18259,8 +18366,6 @@ snapshots: ts-dedent@2.2.0: {} - ts-interface-checker@0.1.13: {} - ts-morph@26.0.0: dependencies: '@ts-morph/common': 0.27.0 @@ -18274,36 +18379,32 @@ snapshots: minimist: 1.2.8 strip-bom: 3.0.0 - tslib@2.8.1: {} - - tsup@8.5.0(@swc/core@1.13.5(@swc/helpers@0.5.17))(jiti@2.5.1)(postcss@8.5.6)(tsx@4.20.5)(typescript@5.9.2)(yaml@2.8.0): + tsdown@0.14.2(publint@0.3.12)(typescript@5.9.2): dependencies: - bundle-require: 5.1.0(esbuild@0.25.9) + ansis: 4.1.0 cac: 6.7.14 chokidar: 4.0.3 - consola: 3.4.2 debug: 4.4.1 - esbuild: 0.25.9 - fix-dts-default-cjs-exports: 1.0.1 - joycon: 3.1.1 - picocolors: 1.1.1 - postcss-load-config: 6.0.1(jiti@2.5.1)(postcss@8.5.6)(tsx@4.20.5)(yaml@2.8.0) - resolve-from: 5.0.0 - rollup: 4.46.2 - source-map: 0.8.0-beta.0 - sucrase: 3.35.0 - tinyexec: 0.3.2 + diff: 8.0.2 + empathic: 2.0.0 + hookable: 5.5.3 + rolldown: 1.0.0-beta.34 + rolldown-plugin-dts: 0.15.9(rolldown@1.0.0-beta.34)(typescript@5.9.2) + semver: 7.7.2 + tinyexec: 1.0.1 tinyglobby: 0.2.14 tree-kill: 1.2.2 + unconfig: 7.3.3 optionalDependencies: - '@swc/core': 1.13.5(@swc/helpers@0.5.17) - postcss: 8.5.6 + publint: 0.3.12 typescript: 5.9.2 transitivePeerDependencies: - - jiti + - '@typescript/native-preview' + - oxc-resolver - supports-color - - tsx - - yaml + - vue-tsc + + tslib@2.8.1: {} tsx@4.20.5: dependencies: @@ -18413,6 +18514,13 @@ snapshots: has-symbols: 1.1.0 which-boxed-primitive: 1.1.1 + unconfig@7.3.3: + dependencies: + '@quansync/fs': 0.1.5 + defu: 6.1.4 + jiti: 2.5.1 + quansync: 0.2.11 + uncrypto@0.1.3: {} undici-types@6.21.0: {} @@ -18734,8 +18842,6 @@ snapshots: dependencies: defaults: 1.0.4 - webidl-conversions@4.0.2: {} - webpack-sources@3.3.3: {} webpack@5.101.3(@swc/core@1.13.5(@swc/helpers@0.5.17))(esbuild@0.25.9): @@ -18770,12 +18876,6 @@ snapshots: - esbuild - uglify-js - whatwg-url@7.1.0: - dependencies: - lodash.sortby: 4.7.0 - tr46: 1.0.1 - webidl-conversions: 4.0.2 - which-boxed-primitive@1.1.1: dependencies: is-bigint: 1.1.0 diff --git a/scripts/update-website.ts b/scripts/update-website.ts index 03e6c9ba73..442171db91 100644 --- a/scripts/update-website.ts +++ b/scripts/update-website.ts @@ -16,6 +16,16 @@ interface RuleMeta { source: string; } +const orderedCategories = [ + { key: "x", heading: "---X Rules---" }, + { key: "dom", heading: "---DOM Rules---" }, + { key: "web-api", heading: "---Web API Rules---" }, + { key: "naming-convention", heading: "---Naming Convention Rules---" }, + { key: "debug", heading: "---Debug Rules---" }, +] as const; + +const sortAsc = (arr: readonly string[]): string[] => [...arr].sort((a, b) => a.localeCompare(b, "en")); + const collectDocs = Effect.gen(function*() { const path = yield* Path.Path; const docs = yield* Effect.sync(() => glob(DOCS_GLOB)); @@ -71,26 +81,15 @@ function generateRuleMetaJson(metas: RuleMeta[]) { }; }, {}); - const sortAsc = (arr: readonly string[]): string[] => [...arr].sort((a, b) => a.localeCompare(b, "en")); - - const orderedCategories: Array<{ - key: string; - heading: string; - }> = [ - { key: "x", heading: "---X Rules---" }, - { key: "dom", heading: "---DOM Rules---" }, - { key: "web-api", heading: "---Web API Rules---" }, - { key: "naming-convention", heading: "---Naming Convention Rules---" }, - { key: "debug", heading: "---Debug Rules---" }, - ]; - - const pages = orderedCategories.reduce((acc, cat) => { + const pages = orderedCategories.reduce((acc, cat) => { const rules = grouped[cat.key]; - if (rules && rules.length > 0) { - acc.push(cat.heading); - acc.push(...sortAsc(rules)); - } - return acc; + return rules && rules.length > 0 + ? [ + ...acc, + cat.heading, + ...sortAsc(rules), + ] + : acc; }, ["overview"]); const jsonContent = JSON.stringify({ pages }, null, 2) + "\n";