diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..6313b56c --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf diff --git a/.npmrc b/.npmrc index 4c679147..a9f10e20 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1 @@ -link-workspace-packages=false \ No newline at end of file +disallow-workspace-cycles=true diff --git a/.prettierrc.json b/.prettierrc.json index 3baced41..544138be 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -1,4 +1,3 @@ { - "singleQuote": true, - "endOfLine": "auto" + "singleQuote": true } diff --git a/apps/docs-website/package.json b/apps/docs-website/package.json index c7711a09..2577fe1a 100644 --- a/apps/docs-website/package.json +++ b/apps/docs-website/package.json @@ -11,7 +11,7 @@ "serve": "docusaurus serve --dir=./dist", "write-translations": "docusaurus write-translations", "write-heading-ids": "docusaurus write-heading-ids", - "typecheck": "tsc --noEmit", + "typecheck": "tsc", "lint": "eslint --max-warnings=0 --flag unstable_ts_config", "typesync": "typesync --dry=fail", "clean": "pnpm clear && rm -rf .turbo dist node_modules/.cache" diff --git a/apps/docs-website/src/components/ConfigCombinationForm.module.css b/apps/docs-website/src/components/ConfigCombinationForm.module.css index 8dc131e6..86ebaeba 100644 --- a/apps/docs-website/src/components/ConfigCombinationForm.module.css +++ b/apps/docs-website/src/components/ConfigCombinationForm.module.css @@ -27,7 +27,7 @@ } .nativeCheckbox label:before { - content: ""; + content: ''; -webkit-appearance: none; background-color: transparent; border: 2px solid var(--ifm-toc-border-color); @@ -45,7 +45,7 @@ } .nativeCheckbox input:checked + label:after { - content: ""; + content: ''; display: block; position: absolute; top: 3px; diff --git a/apps/docs-website/src/css/custom.css b/apps/docs-website/src/css/custom.css index 77494727..79b04e86 100644 --- a/apps/docs-website/src/css/custom.css +++ b/apps/docs-website/src/css/custom.css @@ -29,7 +29,7 @@ } */ /* For readability concerns, you should choose a lighter palette in dark mode. */ -[data-theme="dark"] { +[data-theme='dark'] { --ifm-color-primary: #39e3dd; --ifm-color-primary-dark: #20dfd9; --ifm-color-primary-darker: #1ed3cd; @@ -59,7 +59,7 @@ } .navbar-github-link:before { - content: ""; + content: ''; width: 24px; height: 24px; display: flex; @@ -67,12 +67,12 @@ no-repeat; } -html[data-theme="dark"] .navbar-github-link:before { +html[data-theme='dark'] .navbar-github-link:before { background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E") no-repeat; } -[data-theme="light"] .DocSearch { +[data-theme='light'] .DocSearch { /* --docsearch-primary-color: var(--ifm-color-primary); */ /* --docsearch-text-color: var(--ifm-font-color-base); */ --docsearch-muted-color: var(--ifm-color-secondary-darkest); @@ -90,7 +90,7 @@ html[data-theme="dark"] .navbar-github-link:before { --docsearch-footer-background: var(--ifm-color-white); } -[data-theme="dark"] .DocSearch { +[data-theme='dark'] .DocSearch { --docsearch-text-color: var(--ifm-font-color-base); --docsearch-muted-color: var(--ifm-color-secondary-darkest); --docsearch-container-background: rgba(47, 55, 69, 0.7); diff --git a/apps/docs-website/src/utils/filterDuplicatedRules.ts b/apps/docs-website/src/utils/filterDuplicatedRules.ts index dfba0256..4e5f058f 100644 --- a/apps/docs-website/src/utils/filterDuplicatedRules.ts +++ b/apps/docs-website/src/utils/filterDuplicatedRules.ts @@ -1,6 +1,6 @@ -import { isEqual } from "lodash-es"; -import type { Entry } from "@sherifforg/types"; -import { removeElementFromArrayByValue } from "./removeElementFromArrayByValue"; +import { isEqual } from 'lodash-es'; +import type { Entry } from '@sherifforg/types'; +import { removeElementFromArrayByValue } from './removeElementFromArrayByValue'; const isSameItem = (firstOccurrence: Entry, secondOccurrence: Entry) => { return ( diff --git a/apps/sheriff-webservices/package.json b/apps/sheriff-webservices/package.json index b8724aad..f760e5e4 100644 --- a/apps/sheriff-webservices/package.json +++ b/apps/sheriff-webservices/package.json @@ -6,7 +6,7 @@ "scripts": { "start": "tsx watch ./src/index.ts", "build": "tsc", - "typecheck": "tsc --noEmit", + "typecheck": "tsc", "lint": "eslint --max-warnings=0 --flag unstable_ts_config", "typesync": "typesync --dry=fail", "serve": "node ./dist/index.js", @@ -26,7 +26,7 @@ "dependencies": { "@eslint-react/eslint-plugin": "^1.10.1", "@eslint/js": "^9.17.0", - "@hono/node-server": "^1.12.0", + "@hono/node-server": "~1.7.0", "@next/eslint-plugin-next": "^13.2.3", "@regru/eslint-plugin-prefer-early-return": "^1.0.0", "@stylistic/eslint-plugin": "^2.6.4", diff --git a/apps/sheriff-webservices/src/prependRulesWithPluginName.ts b/apps/sheriff-webservices/src/prependRulesWithPluginName.ts index fb22b7e9..8aa13050 100644 --- a/apps/sheriff-webservices/src/prependRulesWithPluginName.ts +++ b/apps/sheriff-webservices/src/prependRulesWithPluginName.ts @@ -1,8 +1,8 @@ -import type { ESLint } from "eslint"; -import type { RuleOptions } from "@sherifforg/types"; +import type { ESLint } from 'eslint'; +import type { RuleOptions } from '@sherifforg/types'; export const prependRulesWithPluginName = ( - rules: Record | ESLint.Plugin["rules"] | undefined, + rules: Record | ESLint.Plugin['rules'] | undefined, pluginName: string, ): Record => { if (!rules) { diff --git a/package.json b/package.json index 1875a5cc..91d50388 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "sheriff-monorepo", "private": true, "scripts": { - "dev": "turbo watch build-watch start", + "dev": "turbo watch eslint-config-sheriff#build @sherifforg/create-config#build start", "dev:norebuild": "turbo start", "build": "turbo run build", "playground": "pnpm --filter=cli-playground exec create-config", @@ -10,7 +10,8 @@ "playground:cli-checks": "pnpm --filter=cli-playground exec sheriff", "webservices:deploy": "turbo run serve --filter=sheriff-webservices", "preview-docs": "turbo run serve --filter=docs-website", - "format": "prettier --write \"**/*.{ts,tsx,md}\"", + "format": "prettier . --write --cache --cache-location='node_modules/.cache/.prettiercache' --log-level=warn", + "format:check": "prettier . --check --cache --cache-location='node_modules/.cache/.prettiercache'", "lint": "turbo run lint", "publint": "turbo run publint --concurrency=1", "are-the-types-wrong": "turbo run are-the-types-wrong", @@ -19,7 +20,7 @@ "typecheck": "turbo run typecheck", "knip": "knip", "validate-config": "turbo run validate-config", - "merge-checks": "pnpm build && turbo run publint manypkg typesync knip typecheck lint validate-config are-the-types-wrong && turbo run check-deduped-deps", + "merge-checks": "pnpm build && turbo run publint manypkg typesync knip typecheck lint format:check validate-config are-the-types-wrong && turbo run check-deduped-deps", "check-deduped-deps": "pnpm dedupe --check", "clean": "turbo run clean && rm -rf .turbo", "delete-node-modules": "pnpm exec rm -rf node_modules && pnpm -r exec rm -rf node_modules", @@ -40,18 +41,24 @@ "turbo": "^2.2.3", "typesync": "0.13.0" }, - "packageManager": "pnpm@9.15.1", + "packageManager": "pnpm@9.15.2", "engines": { "node": ">=20.10.0" }, "pnpm": { "peerDependencyRules": { - "allowAny": [ - "typescript" - ], + "allowedVersions": { + "eslint": "^9.0.0", + "typescript": "^5.0.0" + }, "ignoreMissing": [ "vitest" ] - } + }, + "onlyBuiltDependencies": [ + "@swc/core", + "esbuild", + "sharp" + ] } } diff --git a/packages/eslint-config-sheriff/eslint.config.ts b/packages/eslint-config-sheriff/eslint.config.ts index 2c8d4666..692d2b87 100644 --- a/packages/eslint-config-sheriff/eslint.config.ts +++ b/packages/eslint-config-sheriff/eslint.config.ts @@ -1,5 +1,5 @@ -import { sheriff, type SheriffSettings } from 'eslint-config-sheriff'; import { defineFlatConfig } from 'eslint-define-config'; +import { sheriff, type SheriffSettings } from './src'; const sheriffOptions: SheriffSettings = { react: false, diff --git a/packages/eslint-config-sheriff/package.json b/packages/eslint-config-sheriff/package.json index 1b7fd411..27b40186 100644 --- a/packages/eslint-config-sheriff/package.json +++ b/packages/eslint-config-sheriff/package.json @@ -49,8 +49,7 @@ "re-bundle-types": "dts-bundle-generator --config dts-config.json", "are-the-types-wrong": "attw --pack --profile=esm-only", "build": "tsup && pnpm re-bundle-types", - "build-watch": "tsup && pnpm re-bundle-types", - "typecheck": "tsc --noEmit", + "typecheck": "tsc", "lint": "eslint src --max-warnings=0 --flag unstable_ts_config", "publint": "publint", "typesync": "typesync --dry=fail" diff --git a/packages/eslint-config-sheriff/src/index.ts b/packages/eslint-config-sheriff/src/index.ts index 2460ac4a..86ca0539 100644 --- a/packages/eslint-config-sheriff/src/index.ts +++ b/packages/eslint-config-sheriff/src/index.ts @@ -1,5 +1,4 @@ /* eslint-disable import/no-default-export */ -/* eslint-disable unicorn/prefer-export-from */ import { allJsExtensions, @@ -9,7 +8,6 @@ import { supportedFileTypes, testsFilePatterns, } from '@sherifforg/constants'; -import { getExportableConfig } from './getExportableConfig'; import { getIndexedBaseNoRestrictedSyntaxRules } from './utils/getIndexedBaseNoRestrictedSyntaxRules'; //#region - these '@sherifforg/constants' variables needs to be re-stored like this, otherwise they will not be bundled. They need to be bundled because we are not publishing the 'sheriff-constants' package, but we are using it as a dependency in this package. @@ -22,19 +20,20 @@ const exportableTestsFilePatterns = testsFilePatterns; const indexedBaseNoRestrictedSyntaxRules = getIndexedBaseNoRestrictedSyntaxRules(); -//#endregion export { exportableAllJsExtensions as allJsExtensions, exportableAllJsxExtensions as allJsxExtensions, indexedBaseNoRestrictedSyntaxRules as baseNoRestrictedSyntaxRules, exportableIgnores as ignores, - getExportableConfig as sheriff, exportableSheriffStartingOptions as sheriffStartingOptions, exportableSupportedFileTypes as supportedFileTypes, exportableTestsFilePatterns as testsFilePatterns, }; +//#endregion +export { + getExportableConfig as default, + getExportableConfig as sheriff, +} from './getExportableConfig'; export type * from '@sherifforg/types'; - -export default getExportableConfig; diff --git a/packages/sheriff-cli/package.json b/packages/sheriff-cli/package.json index 6863fc5d..7e5b38e1 100644 --- a/packages/sheriff-cli/package.json +++ b/packages/sheriff-cli/package.json @@ -6,7 +6,7 @@ "scripts": { "clean": "rm -rf .turbo dist node_modules/.cache", "build": "tsup", - "typecheck": "tsc --noEmit", + "typecheck": "tsc", "lint": "eslint ./src --max-warnings=0", "publint": "publint", "typesync": "typesync --dry=fail" diff --git a/packages/sheriff-create-config/package.json b/packages/sheriff-create-config/package.json index 9a18fa82..6bc1461d 100644 --- a/packages/sheriff-create-config/package.json +++ b/packages/sheriff-create-config/package.json @@ -7,8 +7,7 @@ "dev": "tsx ./src/index.ts", "clean": "rm -rf .turbo dist node_modules/.cache", "build": "tsup", - "build-watch": "tsup", - "typecheck": "tsc --noEmit", + "typecheck": "tsc", "lint": "eslint ./src --max-warnings=0 --flag unstable_ts_config", "publint": "publint", "typesync": "typesync --dry=fail" diff --git a/packages/sheriff-types/package.json b/packages/sheriff-types/package.json index 11b39bfc..6b7df137 100644 --- a/packages/sheriff-types/package.json +++ b/packages/sheriff-types/package.json @@ -11,7 +11,7 @@ ], "scripts": { "clean": "rm -rf .turbo dist node_modules/.cache", - "typecheck": "tsc --noEmit" + "typecheck": "tsc" }, "devDependencies": { "@types/node": "^22.9.0", diff --git a/packages/tsconfig/base.json b/packages/tsconfig/base.json index a974e06b..95491d58 100644 --- a/packages/tsconfig/base.json +++ b/packages/tsconfig/base.json @@ -8,6 +8,7 @@ "${configDir}/node_modules" ], "compilerOptions": { + "noEmit": true, "composite": false, "target": "ESNext", "module": "Preserve", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 09405955..d9fc4e7f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -230,8 +230,8 @@ importers: specifier: ^9.17.0 version: 9.17.0 '@hono/node-server': - specifier: ^1.12.0 - version: 1.13.7(hono@3.12.12) + specifier: ~1.7.0 + version: 1.7.0 '@next/eslint-plugin-next': specifier: ^13.2.3 version: 13.5.8 @@ -491,7 +491,7 @@ importers: version: link:../tsconfig tsup: specifier: ^8.3.0 - version: 8.3.5(@microsoft/api-extractor@7.47.11(@types/node@22.10.2))(@swc/core@1.10.1(@swc/helpers@0.5.5))(jiti@2.4.2)(postcss@8.4.49)(tsx@4.19.2)(typescript@5.7.2)(yaml@2.6.1) + version: 8.3.5(@swc/core@1.10.1(@swc/helpers@0.5.5))(jiti@2.4.2)(postcss@8.4.49)(tsx@4.19.2)(typescript@5.7.2)(yaml@2.6.1) typescript: specifier: ^5.6.3 version: 5.7.2 @@ -540,7 +540,7 @@ importers: version: link:../tsconfig tsup: specifier: ^8.3.0 - version: 8.3.5(@microsoft/api-extractor@7.47.11(@types/node@22.10.2))(@swc/core@1.10.1(@swc/helpers@0.5.5))(jiti@2.4.2)(postcss@8.4.49)(tsx@4.19.2)(typescript@5.7.2)(yaml@2.6.1) + version: 8.3.5(@swc/core@1.10.1(@swc/helpers@0.5.5))(jiti@2.4.2)(postcss@8.4.49)(tsx@4.19.2)(typescript@5.7.2)(yaml@2.6.1) typescript: specifier: ^5.6.3 version: 5.7.2 @@ -622,7 +622,7 @@ importers: version: link:../tsconfig tsup: specifier: ^8.3.0 - version: 8.3.5(@microsoft/api-extractor@7.47.11(@types/node@22.10.2))(@swc/core@1.10.1(@swc/helpers@0.5.5))(jiti@2.4.2)(postcss@8.4.49)(tsx@4.19.2)(typescript@5.7.2)(yaml@2.6.1) + version: 8.3.5(@swc/core@1.10.1(@swc/helpers@0.5.5))(jiti@2.4.2)(postcss@8.4.49)(tsx@4.19.2)(typescript@5.7.2)(yaml@2.6.1) tsx: specifier: ^4.16.2 version: 4.19.2 @@ -2699,11 +2699,9 @@ packages: '@hapi/topo@5.1.0': resolution: {integrity: sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==} - '@hono/node-server@1.13.7': - resolution: {integrity: sha512-kTfUMsoloVKtRA2fLiGSd9qBddmru9KadNyhJCwgKBxTiNkaAJEwkVN9KV/rS4HtmmNRtUh6P+YpmjRMl0d9vQ==} + '@hono/node-server@1.7.0': + resolution: {integrity: sha512-W+Gy16xWZMgB8hYU4XInCwE746y8V3VDTH1J3+EhUBqbCzk4zEXo1p6dv3BiCD5O6Z4aHuoCW+mRKoJgUn3ZCA==} engines: {node: '>=18.14.1'} - peerDependencies: - hono: ^4 '@hookform/devtools@4.3.3': resolution: {integrity: sha512-W9MipDe6P5y2XLos9coN4/fZhbt0YE2c+PaUx7tiKdc9XNQ2UOWCYTtysCnbj7fipZWEJht8J/UyQmXprWEhgw==} @@ -2973,25 +2971,12 @@ packages: '@types/react': '>=16' react: '>=16' - '@microsoft/api-extractor-model@7.29.8': - resolution: {integrity: sha512-t3Z/xcO6TRbMcnKGVMs4uMzv/gd5j0NhMiJIGjD4cJMeFJ1Hf8wnLSx37vxlRlL0GWlGJhnFgxvnaL6JlS+73g==} - - '@microsoft/api-extractor@7.47.11': - resolution: {integrity: sha512-lrudfbPub5wzBhymfFtgZKuBvXxoSIAdrvS2UbHjoMT2TjIEddq6Z13pcve7A03BAouw0x8sW8G4txdgfiSwpQ==} - hasBin: true - '@microsoft/tsdoc-config@0.16.2': resolution: {integrity: sha512-OGiIzzoBLgWWR0UdRJX98oYO+XKGf7tiK4Zk6tQ/E4IJqGCe7dvkTvgDZV5cFJUzLGDOjeAXrnZoA6QkVySuxw==} - '@microsoft/tsdoc-config@0.17.1': - resolution: {integrity: sha512-UtjIFe0C6oYgTnad4q1QP4qXwLhe6tIpNTRStJ2RZEPIkqQPREAwE5spzVxsdn9UaEMUqhh0AqSx3X4nWAKXWw==} - '@microsoft/tsdoc@0.14.2': resolution: {integrity: sha512-9b8mPpKrfeGRuhFH5iO1iwCLeIIsV6+H1sRfxbkoGXIyQE2BTsPd9zqSqQJ+pv5sJ/hT5M1zvOFL02MnEezFug==} - '@microsoft/tsdoc@0.15.1': - resolution: {integrity: sha512-4aErSrCR/On/e5G2hDP0wjooqDdauzEbIq8hIkIe5pXV0rtWJZvdCEKL0ykZxex+IxIwBp0eGeV48hQN07dXtw==} - '@module-federation/runtime-tools@0.5.1': resolution: {integrity: sha512-nfBedkoZ3/SWyO0hnmaxuz0R0iGPSikHZOAZ0N/dVSQaIzlffUo35B5nlC2wgWIc0JdMZfkwkjZRrnuuDIJbzg==} @@ -3318,28 +3303,6 @@ packages: '@rtsao/scc@1.1.0': resolution: {integrity: sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==} - '@rushstack/node-core-library@5.9.0': - resolution: {integrity: sha512-MMsshEWkTbXqxqFxD4gcIUWQOCeBChlGczdZbHfqmNZQFLHB3yWxDFSMHFUdu2/OB9NUk7Awn5qRL+rws4HQNg==} - peerDependencies: - '@types/node': '*' - peerDependenciesMeta: - '@types/node': - optional: true - - '@rushstack/rig-package@0.5.3': - resolution: {integrity: sha512-olzSSjYrvCNxUFZowevC3uz8gvKr3WTpHQ7BkpjtRpA3wK+T0ybep/SRUMfr195gBzJm5gaXw0ZMgjIyHqJUow==} - - '@rushstack/terminal@0.14.2': - resolution: {integrity: sha512-2fC1wqu1VCExKC0/L+0noVcFQEXEnoBOtCIex1TOjBzEDWcw8KzJjjj7aTP6mLxepG0XIyn9OufeFb6SFsa+sg==} - peerDependencies: - '@types/node': '*' - peerDependenciesMeta: - '@types/node': - optional: true - - '@rushstack/ts-command-line@4.23.0': - resolution: {integrity: sha512-jYREBtsxduPV6ptNq8jOKp9+yx0ld1Tb/Tkdnlj8gTjazl1sF3DwX2VbluyYrNd0meWIL0bNeer7WDf5tKFjaQ==} - '@shikijs/core@1.24.3': resolution: {integrity: sha512-VRcf4GYUIkxIchGM9DrapRcxtgojg4IWKUtX5EtW+4PJiGzF2xQqZSv27PJt+WLc18KT3CNLpNWow9JYV5n+Rg==} @@ -3713,9 +3676,6 @@ packages: '@types/acorn@4.0.6': resolution: {integrity: sha512-veQTnWP+1D/xbxVrPC3zHnCZRjSrKfhbMUlEA43iMZLu7EsnTtkJklIuwrCPbOi8YkvDQAiW05VQQFvvz9oieQ==} - '@types/argparse@1.0.38': - resolution: {integrity: sha512-ebDJ9b0e702Yr7pWgB0jzm+CX4Srzz8RcXtLJDJB+BSccqMa36uyH/zUsSYao5+BD1ytv3k3rPYCq4mAE1hsXA==} - '@types/babel__core@7.20.5': resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==} @@ -4269,14 +4229,6 @@ packages: resolution: {integrity: sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==} engines: {node: '>=8'} - ajv-draft-04@1.0.0: - resolution: {integrity: sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==} - peerDependencies: - ajv: ^8.5.0 - peerDependenciesMeta: - ajv: - optional: true - ajv-formats@2.1.1: resolution: {integrity: sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==} peerDependencies: @@ -4285,14 +4237,6 @@ packages: ajv: optional: true - ajv-formats@3.0.1: - resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==} - peerDependencies: - ajv: ^8.0.0 - peerDependenciesMeta: - ajv: - optional: true - ajv-keywords@3.5.2: resolution: {integrity: sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==} peerDependencies: @@ -4306,12 +4250,6 @@ packages: ajv@6.12.6: resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} - ajv@8.12.0: - resolution: {integrity: sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==} - - ajv@8.13.0: - resolution: {integrity: sha512-PRA911Blj99jR5RMeTunVbNXMF6Lp4vZXnk5GQjcnUWUTsrXtekg/pnmFFI2u/I36Y/2bITGS30GZCXei6uNkA==} - ajv@8.17.1: resolution: {integrity: sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==} @@ -7929,9 +7867,6 @@ packages: resolution: {integrity: sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==} engines: {node: 20 || >=22} - minimatch@3.0.8: - resolution: {integrity: sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q==} - minimatch@3.1.2: resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} @@ -9617,11 +9552,6 @@ packages: resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} hasBin: true - semver@7.5.4: - resolution: {integrity: sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==} - engines: {node: '>=10'} - hasBin: true - semver@7.6.2: resolution: {integrity: sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==} engines: {node: '>=10'} @@ -9895,10 +9825,6 @@ packages: resolution: {integrity: sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==} engines: {node: '>=10.0.0'} - string-argv@0.3.2: - resolution: {integrity: sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==} - engines: {node: '>=0.6.19'} - string-length@4.0.2: resolution: {integrity: sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==} engines: {node: '>=10'} @@ -10405,11 +10331,6 @@ packages: eslint: ^8.57.0 || ^9.0.0 typescript: '>=4.8.4 <5.8.0' - typescript@5.4.2: - resolution: {integrity: sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==} - engines: {node: '>=14.17'} - hasBin: true - typescript@5.6.1-rc: resolution: {integrity: sha512-E3b2+1zEFu84jB0YQi9BORDjz9+jGbwwy1Zi3G0LUNw7a7cePUrHMRNy8aPh53nXpkFGVHSxIZo5vKTfYaFiBQ==} engines: {node: '>=14.17'} @@ -13820,9 +13741,7 @@ snapshots: dependencies: '@hapi/hoek': 9.3.0 - '@hono/node-server@1.13.7(hono@3.12.12)': - dependencies: - hono: 3.12.12 + '@hono/node-server@1.7.0': {} '@hookform/devtools@4.3.3(@types/react@18.3.18)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: @@ -14221,34 +14140,6 @@ snapshots: '@types/react': 18.3.18 react: 18.3.1 - '@microsoft/api-extractor-model@7.29.8(@types/node@22.10.2)': - dependencies: - '@microsoft/tsdoc': 0.15.1 - '@microsoft/tsdoc-config': 0.17.1 - '@rushstack/node-core-library': 5.9.0(@types/node@22.10.2) - transitivePeerDependencies: - - '@types/node' - optional: true - - '@microsoft/api-extractor@7.47.11(@types/node@22.10.2)': - dependencies: - '@microsoft/api-extractor-model': 7.29.8(@types/node@22.10.2) - '@microsoft/tsdoc': 0.15.1 - '@microsoft/tsdoc-config': 0.17.1 - '@rushstack/node-core-library': 5.9.0(@types/node@22.10.2) - '@rushstack/rig-package': 0.5.3 - '@rushstack/terminal': 0.14.2(@types/node@22.10.2) - '@rushstack/ts-command-line': 4.23.0(@types/node@22.10.2) - lodash: 4.17.21 - minimatch: 3.0.8 - resolve: 1.22.10 - semver: 7.5.4 - source-map: 0.6.1 - typescript: 5.4.2 - transitivePeerDependencies: - - '@types/node' - optional: true - '@microsoft/tsdoc-config@0.16.2': dependencies: '@microsoft/tsdoc': 0.14.2 @@ -14256,19 +14147,8 @@ snapshots: jju: 1.4.0 resolve: 1.19.0 - '@microsoft/tsdoc-config@0.17.1': - dependencies: - '@microsoft/tsdoc': 0.15.1 - ajv: 8.12.0 - jju: 1.4.0 - resolve: 1.22.10 - optional: true - '@microsoft/tsdoc@0.14.2': {} - '@microsoft/tsdoc@0.15.1': - optional: true - '@module-federation/runtime-tools@0.5.1': dependencies: '@module-federation/runtime': 0.5.1 @@ -14544,44 +14424,6 @@ snapshots: '@rtsao/scc@1.1.0': {} - '@rushstack/node-core-library@5.9.0(@types/node@22.10.2)': - dependencies: - ajv: 8.13.0 - ajv-draft-04: 1.0.0(ajv@8.13.0) - ajv-formats: 3.0.1(ajv@8.13.0) - fs-extra: 7.0.1 - import-lazy: 4.0.0 - jju: 1.4.0 - resolve: 1.22.10 - semver: 7.5.4 - optionalDependencies: - '@types/node': 22.10.2 - optional: true - - '@rushstack/rig-package@0.5.3': - dependencies: - resolve: 1.22.10 - strip-json-comments: 3.1.1 - optional: true - - '@rushstack/terminal@0.14.2(@types/node@22.10.2)': - dependencies: - '@rushstack/node-core-library': 5.9.0(@types/node@22.10.2) - supports-color: 8.1.1 - optionalDependencies: - '@types/node': 22.10.2 - optional: true - - '@rushstack/ts-command-line@4.23.0(@types/node@22.10.2)': - dependencies: - '@rushstack/terminal': 0.14.2(@types/node@22.10.2) - '@types/argparse': 1.0.38 - argparse: 1.0.10 - string-argv: 0.3.2 - transitivePeerDependencies: - - '@types/node' - optional: true - '@shikijs/core@1.24.3': dependencies: '@shikijs/engine-javascript': 1.24.3 @@ -15047,9 +14889,6 @@ snapshots: dependencies: '@types/estree': 1.0.6 - '@types/argparse@1.0.38': - optional: true - '@types/babel__core@7.20.5': dependencies: '@babel/parser': 7.26.3 @@ -15741,20 +15580,10 @@ snapshots: clean-stack: 2.2.0 indent-string: 4.0.0 - ajv-draft-04@1.0.0(ajv@8.13.0): - optionalDependencies: - ajv: 8.13.0 - optional: true - ajv-formats@2.1.1(ajv@8.17.1): optionalDependencies: ajv: 8.17.1 - ajv-formats@3.0.1(ajv@8.13.0): - optionalDependencies: - ajv: 8.13.0 - optional: true - ajv-keywords@3.5.2(ajv@6.12.6): dependencies: ajv: 6.12.6 @@ -15771,22 +15600,6 @@ snapshots: json-schema-traverse: 0.4.1 uri-js: 4.4.1 - ajv@8.12.0: - dependencies: - fast-deep-equal: 3.1.3 - json-schema-traverse: 1.0.0 - require-from-string: 2.0.2 - uri-js: 4.4.1 - optional: true - - ajv@8.13.0: - dependencies: - fast-deep-equal: 3.1.3 - json-schema-traverse: 1.0.0 - require-from-string: 2.0.2 - uri-js: 4.4.1 - optional: true - ajv@8.17.1: dependencies: fast-deep-equal: 3.1.3 @@ -20601,11 +20414,6 @@ snapshots: dependencies: brace-expansion: 2.0.1 - minimatch@3.0.8: - dependencies: - brace-expansion: 1.1.11 - optional: true - minimatch@3.1.2: dependencies: brace-expansion: 1.1.11 @@ -22584,11 +22392,6 @@ snapshots: semver@6.3.1: {} - semver@7.5.4: - dependencies: - lru-cache: 6.0.0 - optional: true - semver@7.6.2: {} semver@7.6.3: {} @@ -22935,9 +22738,6 @@ snapshots: streamsearch@1.1.0: {} - string-argv@0.3.2: - optional: true - string-length@4.0.2: dependencies: char-regex: 1.0.2 @@ -23315,7 +23115,7 @@ snapshots: tslib@2.8.1: {} - tsup@8.3.5(@microsoft/api-extractor@7.47.11(@types/node@22.10.2))(@swc/core@1.10.1(@swc/helpers@0.5.5))(jiti@2.4.2)(postcss@8.4.49)(tsx@4.19.2)(typescript@5.7.2)(yaml@2.6.1): + tsup@8.3.5(@swc/core@1.10.1(@swc/helpers@0.5.5))(jiti@2.4.2)(postcss@8.4.49)(tsx@4.19.2)(typescript@5.7.2)(yaml@2.6.1): dependencies: bundle-require: 5.0.0(esbuild@0.24.2) cac: 6.7.14 @@ -23334,7 +23134,6 @@ snapshots: tinyglobby: 0.2.10 tree-kill: 1.2.2 optionalDependencies: - '@microsoft/api-extractor': 7.47.11(@types/node@22.10.2) '@swc/core': 1.10.1(@swc/helpers@0.5.5) postcss: 8.4.49 typescript: 5.7.2 @@ -23459,9 +23258,6 @@ snapshots: transitivePeerDependencies: - supports-color - typescript@5.4.2: - optional: true - typescript@5.6.1-rc: {} typescript@5.7.2: {} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 3ff5faaa..e9b0dad6 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,3 +1,3 @@ packages: - - "apps/*" - - "packages/*" + - 'apps/*' + - 'packages/*' diff --git a/turbo.json b/turbo.json index c2cda62c..db84ee8c 100644 --- a/turbo.json +++ b/turbo.json @@ -10,10 +10,6 @@ "dependsOn": ["^build"], "outputs": [".docusaurus/**", "dist/**"] }, - "build-watch": { - "dependsOn": ["^build"], - "outputs": ["dist/**"] - }, "start": { "cache": false, "persistent": true, @@ -35,7 +31,9 @@ "publint": { "dependsOn": ["build"] }, - "//#manypkg": {}, + "//#manypkg": { + "inputs": ["**/package.json"] + }, "//#knip": {}, "typesync": {}, "are-the-types-wrong": { @@ -50,12 +48,14 @@ "dependsOn": ["build"] }, "//#check-deduped-deps": { - "inputs": [ - "package.json", - "apps/*/package.json", - "packages/*/package.json", - "pnpm-lock.yaml" - ] + "inputs": ["pnpm-lock.yaml"] + }, + "//#format": { + "outputs": ["node_modules/.cache/.prettiercache"], + "cache": false + }, + "//#format:check": { + "outputs": ["node_modules/.cache/.prettiercache"] } } }