mirror of
https://github.com/Afilmory/afilmory
synced 2026-02-01 14:44:48 +00:00
chore: update package dependencies and configurations across the monorepo
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"name": "@afilmory/docs",
|
"name": "@afilmory/docs",
|
||||||
"type": "module",
|
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "pnpm build:client && pnpm build:static && pnpm output",
|
"build": "pnpm build:client && pnpm build:static && pnpm output",
|
||||||
"build:client": "vite build",
|
"build:client": "vite build",
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
"cmdk": "1.1.1",
|
"cmdk": "1.1.1",
|
||||||
"lucide-react": "^0.562.0",
|
"lucide-react": "^0.562.0",
|
||||||
"mdast": "^3.0.0",
|
"mdast": "^3.0.0",
|
||||||
"motion": "12.23.26",
|
"motion": "12.25.0",
|
||||||
"next-themes": "^0.4.6",
|
"next-themes": "^0.4.6",
|
||||||
"react": "^19.2.3",
|
"react": "^19.2.3",
|
||||||
"react-dom": "^19.2.3",
|
"react-dom": "^19.2.3",
|
||||||
@@ -42,22 +42,22 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/js": "^9.39.2",
|
"@eslint/js": "^9.39.2",
|
||||||
"@shikijs/rehype": "^3.20.0",
|
"@shikijs/rehype": "^3.21.0",
|
||||||
"@tailwindcss/postcss": "catalog:",
|
"@tailwindcss/postcss": "catalog:",
|
||||||
"@tailwindcss/typography": "catalog:",
|
"@tailwindcss/typography": "catalog:",
|
||||||
"@types/glob": "^9.0.0",
|
"@types/glob": "^9.0.0",
|
||||||
"@types/mdx": "^2.0.13",
|
"@types/mdx": "^2.0.13",
|
||||||
"@types/react": "^19.2.7",
|
"@types/react": "^19.2.8",
|
||||||
"@types/react-dom": "^19.2.3",
|
"@types/react-dom": "^19.2.3",
|
||||||
"@types/remark-heading-id": "^1.0.0",
|
"@types/remark-heading-id": "^1.0.0",
|
||||||
"@vitejs/plugin-react": "^5.1.2",
|
"@vitejs/plugin-react": "^5.1.2",
|
||||||
"code-inspector-plugin": "1.3.3",
|
"code-inspector-plugin": "1.3.4",
|
||||||
"eslint": "^9.39.2",
|
"eslint": "^9.39.2",
|
||||||
"eslint-plugin-react-hooks": "^7.0.1",
|
"eslint-plugin-react-hooks": "^7.0.1",
|
||||||
"eslint-plugin-react-refresh": "^0.4.26",
|
"eslint-plugin-react-refresh": "^0.4.26",
|
||||||
"glob": "^13.0.0",
|
"glob": "^13.0.0",
|
||||||
"globals": "^16.5.0",
|
"globals": "^16.5.0",
|
||||||
"shiki": "^3.20.0",
|
"shiki": "^3.21.0",
|
||||||
"tailwind-scrollbar": "catalog:",
|
"tailwind-scrollbar": "catalog:",
|
||||||
"tailwindcss": "catalog:",
|
"tailwindcss": "catalog:",
|
||||||
"tailwindcss-animate": "catalog:",
|
"tailwindcss-animate": "catalog:",
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
"tailwindcss-uikit-colors": "catalog:",
|
"tailwindcss-uikit-colors": "catalog:",
|
||||||
"tsx": "^4.21.0",
|
"tsx": "^4.21.0",
|
||||||
"typescript": "~5.9.3",
|
"typescript": "~5.9.3",
|
||||||
"typescript-eslint": "^8.50.1",
|
"typescript-eslint": "^8.52.0",
|
||||||
"vite": "8.0.0-beta.0"
|
"vite": "8.0.0-beta.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,30 +13,39 @@
|
|||||||
"start": "npm run dev",
|
"start": "npm run dev",
|
||||||
"type-check": "tsc --noEmit"
|
"type-check": "tsc --noEmit"
|
||||||
},
|
},
|
||||||
|
"simple-git-hooks": {
|
||||||
|
"pre-commit": "pnpm exec lint-staged"
|
||||||
|
},
|
||||||
|
"lint-staged": {
|
||||||
|
"*.{js,jsx,ts,tsx}": [
|
||||||
|
"eslint --cache --fix",
|
||||||
|
"prettier --ignore-path ./.gitignore --write "
|
||||||
|
]
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@floating-ui/react-dom": "2.1.6",
|
"@floating-ui/react-dom": "2.1.6",
|
||||||
"@tanstack/query-async-storage-persister": "5.90.14",
|
"@tanstack/query-async-storage-persister": "5.90.18",
|
||||||
"@tanstack/react-query": "5.90.12",
|
"@tanstack/react-query": "5.90.16",
|
||||||
"@tanstack/react-query-persist-client": "5.90.14",
|
"@tanstack/react-query-persist-client": "5.90.18",
|
||||||
"@types/js-cookie": "3.0.6",
|
"@types/js-cookie": "3.0.6",
|
||||||
"axios": "1.13.2",
|
"axios": "1.13.2",
|
||||||
"clsx": "2.1.1",
|
"clsx": "2.1.1",
|
||||||
"dayjs": "1.11.19",
|
"dayjs": "1.11.19",
|
||||||
"es-toolkit": "1.43.0",
|
"es-toolkit": "1.43.0",
|
||||||
"foxact": "0.2.49",
|
"foxact": "0.2.51",
|
||||||
"idb-keyval": "6.2.2",
|
"idb-keyval": "6.2.2",
|
||||||
"immer": "11.0.1",
|
"immer": "11.1.3",
|
||||||
"jojoo": "0.3.0",
|
"jojoo": "0.3.0",
|
||||||
"jotai": "2.16.0",
|
"jotai": "2.16.1",
|
||||||
"js-cookie": "3.0.5",
|
"js-cookie": "3.0.5",
|
||||||
"motion": "12.23.26",
|
"motion": "12.25.0",
|
||||||
"next": "16.0.10",
|
"next": "16.1.1",
|
||||||
"next-intl": "4.6.0",
|
"next-intl": "4.7.0",
|
||||||
"next-themes": "0.4.6",
|
"next-themes": "0.4.6",
|
||||||
"radix-ui": "1.4.3",
|
"radix-ui": "1.4.3",
|
||||||
"react": "19.2.3",
|
"react": "19.2.3",
|
||||||
"react-dom": "19.2.3",
|
"react-dom": "19.2.3",
|
||||||
"react-error-boundary": "6.0.0",
|
"react-error-boundary": "6.0.3",
|
||||||
"react-intersection-observer": "10.0.0",
|
"react-intersection-observer": "10.0.0",
|
||||||
"react-markdown": "^10.1.0",
|
"react-markdown": "^10.1.0",
|
||||||
"react-responsive-masonry": "2.7.1",
|
"react-responsive-masonry": "2.7.1",
|
||||||
@@ -47,26 +56,26 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@egoist/tailwindcss-icons": "1.9.0",
|
"@egoist/tailwindcss-icons": "1.9.0",
|
||||||
"@iconify-json/lucide": "1.2.81",
|
"@iconify-json/lucide": "1.2.83",
|
||||||
"@iconify-json/mingcute": "catalog:",
|
"@iconify-json/mingcute": "catalog:",
|
||||||
"@iconify-json/simple-icons": "1.2.63",
|
"@iconify-json/simple-icons": "1.2.65",
|
||||||
"@iconify/tailwind": "1.2.0",
|
"@iconify/tailwind": "1.2.0",
|
||||||
"@innei/prettier": "1.0.0",
|
"@innei/prettier": "1.0.0",
|
||||||
"@next/bundle-analyzer": "16.0.10",
|
"@next/bundle-analyzer": "16.1.1",
|
||||||
"@pastel-palette/tailwindcss": "1.0.0-canary.3",
|
"@pastel-palette/tailwindcss": "1.0.0-canary.3",
|
||||||
"@tailwindcss/postcss": "catalog:",
|
"@tailwindcss/postcss": "catalog:",
|
||||||
"@tailwindcss/typography": "0.5.19",
|
"@tailwindcss/typography": "0.5.19",
|
||||||
"@tanstack/react-query-devtools": "5.91.1",
|
"@tanstack/react-query-devtools": "5.91.2",
|
||||||
"@types/node": "24.10.1",
|
"@types/node": "24.10.1",
|
||||||
"@types/react": "19.2.7",
|
"@types/react": "19.2.8",
|
||||||
"@types/react-dom": "19.2.3",
|
"@types/react-dom": "19.2.3",
|
||||||
"@types/react-responsive-masonry": "2.7.0",
|
"@types/react-responsive-masonry": "2.7.0",
|
||||||
"autoprefixer": "10.4.23",
|
"autoprefixer": "10.4.23",
|
||||||
"code-inspector-plugin": "1.3.3",
|
"code-inspector-plugin": "1.3.4",
|
||||||
"cross-env": "10.1.0",
|
"cross-env": "10.1.0",
|
||||||
"dotenv": "17.2.3",
|
"dotenv": "17.2.3",
|
||||||
"eslint": "9.39.2",
|
"eslint": "9.39.2",
|
||||||
"eslint-config-hyoban": "4.0.10",
|
"eslint-config-hyoban": "5.0.3",
|
||||||
"husky": "9.1.7",
|
"husky": "9.1.7",
|
||||||
"lint-staged": "16.2.7",
|
"lint-staged": "16.2.7",
|
||||||
"postcss": "8.5.6",
|
"postcss": "8.5.6",
|
||||||
@@ -80,15 +89,6 @@
|
|||||||
"tailwindcss-safe-area": "catalog:",
|
"tailwindcss-safe-area": "catalog:",
|
||||||
"typescript": "5.9.3"
|
"typescript": "5.9.3"
|
||||||
},
|
},
|
||||||
"simple-git-hooks": {
|
|
||||||
"pre-commit": "pnpm exec lint-staged"
|
|
||||||
},
|
|
||||||
"lint-staged": {
|
|
||||||
"*.{js,jsx,ts,tsx}": [
|
|
||||||
"eslint --cache --fix",
|
|
||||||
"prettier --ignore-path ./.gitignore --write "
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"bump": {
|
"bump": {
|
||||||
"before": [
|
"before": [
|
||||||
"git pull --rebase",
|
"git pull --rebase",
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name": "@afilmory/ssr",
|
"name": "@afilmory/ssr",
|
||||||
"type": "module",
|
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"packageManager": "pnpm@10.26.2",
|
|
||||||
"description": "",
|
"description": "",
|
||||||
"author": "Innei",
|
"author": "Innei",
|
||||||
|
"type": "module",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "sh scripts/build.sh",
|
"build": "sh scripts/build.sh",
|
||||||
@@ -28,7 +27,7 @@
|
|||||||
"es-toolkit": "1.43.0",
|
"es-toolkit": "1.43.0",
|
||||||
"linkedom": "0.18.12",
|
"linkedom": "0.18.12",
|
||||||
"pg": "8.16.3",
|
"pg": "8.16.3",
|
||||||
"postgres": "3.4.7",
|
"postgres": "3.4.8",
|
||||||
"prop-types": "15.8.1",
|
"prop-types": "15.8.1",
|
||||||
"react": "19.2.3",
|
"react": "19.2.3",
|
||||||
"react-dom": "19.2.3",
|
"react-dom": "19.2.3",
|
||||||
@@ -47,18 +46,19 @@
|
|||||||
"@tailwindcss/typography": "catalog:",
|
"@tailwindcss/typography": "catalog:",
|
||||||
"@types/node": "24.10.1",
|
"@types/node": "24.10.1",
|
||||||
"@types/pg": "8.16.0",
|
"@types/pg": "8.16.0",
|
||||||
"@types/react": "19.2.7",
|
"@types/react": "19.2.8",
|
||||||
"@types/react-dom": "19.2.3",
|
"@types/react-dom": "19.2.3",
|
||||||
"concurrently": "9.2.1",
|
"concurrently": "9.2.1",
|
||||||
"cross-env": "10.1.0",
|
"cross-env": "10.1.0",
|
||||||
"dotenv-expand": "catalog:",
|
"dotenv-expand": "catalog:",
|
||||||
"drizzle-kit": "0.31.8",
|
"drizzle-kit": "0.31.8",
|
||||||
"next": "16.0.10",
|
"next": "16.1.1",
|
||||||
"postcss": "8.5.6",
|
"postcss": "8.5.6",
|
||||||
"tailwind-scrollbar": "catalog:",
|
"tailwind-scrollbar": "catalog:",
|
||||||
"tailwindcss": "catalog:",
|
"tailwindcss": "catalog:",
|
||||||
"tailwindcss-animate": "catalog:",
|
"tailwindcss-animate": "catalog:",
|
||||||
"tailwindcss-safe-area": "catalog:",
|
"tailwindcss-safe-area": "catalog:",
|
||||||
"tailwindcss-uikit-colors": "catalog:"
|
"tailwindcss-uikit-colors": "catalog:"
|
||||||
}
|
},
|
||||||
|
"packageManager": "pnpm@10.26.2"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "@afilmory/web",
|
"name": "@afilmory/web",
|
||||||
"type": "module",
|
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"packageManager": "pnpm@10.26.2",
|
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Afilmory/Afilmory"
|
"url": "https://github.com/Afilmory/Afilmory"
|
||||||
},
|
},
|
||||||
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"analyze": "analyzer=1 vite build",
|
"analyze": "analyzer=1 vite build",
|
||||||
"build": "tsx scripts/build.ts",
|
"build": "tsx scripts/build.ts",
|
||||||
@@ -29,14 +28,14 @@
|
|||||||
"@afilmory/webgl-viewer": "workspace:*",
|
"@afilmory/webgl-viewer": "workspace:*",
|
||||||
"@essentials/request-timeout": "1.3.0",
|
"@essentials/request-timeout": "1.3.0",
|
||||||
"@headlessui/react": "2.2.9",
|
"@headlessui/react": "2.2.9",
|
||||||
"@lobehub/fluent-emoji": "4.0.1",
|
"@lobehub/fluent-emoji": "4.1.0",
|
||||||
"@maplibre/maplibre-gl-geocoder": "^1.9.4",
|
"@maplibre/maplibre-gl-geocoder": "^1.9.4",
|
||||||
"@radix-ui/react-avatar": "1.1.11",
|
"@radix-ui/react-avatar": "1.1.11",
|
||||||
"@radix-ui/react-dropdown-menu": "2.1.16",
|
"@radix-ui/react-dropdown-menu": "2.1.16",
|
||||||
"@react-hook/window-size": "3.1.1",
|
"@react-hook/window-size": "3.1.1",
|
||||||
"@t3-oss/env-core": "catalog:",
|
"@t3-oss/env-core": "catalog:",
|
||||||
"@tanstack/react-query": "5.90.12",
|
"@tanstack/react-query": "5.90.16",
|
||||||
"@tanstack/react-virtual": "3.13.13",
|
"@tanstack/react-virtual": "3.13.18",
|
||||||
"@use-gesture/react": "10.3.1",
|
"@use-gesture/react": "10.3.1",
|
||||||
"@uswriting/exiftool": "1.0.9",
|
"@uswriting/exiftool": "1.0.9",
|
||||||
"blurhash": "2.0.5",
|
"blurhash": "2.0.5",
|
||||||
@@ -44,29 +43,29 @@
|
|||||||
"consola": "3.4.2",
|
"consola": "3.4.2",
|
||||||
"dotenv": "17.2.3",
|
"dotenv": "17.2.3",
|
||||||
"es-toolkit": "1.43.0",
|
"es-toolkit": "1.43.0",
|
||||||
"file-type": "^21.2.0",
|
"file-type": "^21.3.0",
|
||||||
"foxact": "0.2.49",
|
"foxact": "0.2.51",
|
||||||
"heic-to": "1.3.0",
|
"heic-to": "1.3.0",
|
||||||
"i18next": "25.7.3",
|
"i18next": "25.7.4",
|
||||||
"i18next-browser-languagedetector": "8.2.0",
|
"i18next-browser-languagedetector": "8.2.0",
|
||||||
"immer": "11.0.1",
|
"immer": "11.1.3",
|
||||||
"jotai": "2.16.0",
|
"jotai": "2.16.1",
|
||||||
"maplibre-gl": "^5.15.0",
|
"maplibre-gl": "^5.15.0",
|
||||||
"masonic": "4.1.0",
|
"masonic": "4.1.0",
|
||||||
"motion": "12.23.26",
|
"motion": "12.25.0",
|
||||||
"ofetch": "1.5.1",
|
"ofetch": "1.5.1",
|
||||||
"react": "19.2.3",
|
"react": "19.2.3",
|
||||||
"react-blurhash": "0.3.0",
|
"react-blurhash": "0.3.0",
|
||||||
"react-dom": "19.2.3",
|
"react-dom": "19.2.3",
|
||||||
"react-error-boundary": "6.0.0",
|
"react-error-boundary": "6.0.3",
|
||||||
"react-freeze": "1.0.4",
|
"react-freeze": "1.0.4",
|
||||||
"react-i18next": "16.5.0",
|
"react-i18next": "16.5.1",
|
||||||
"react-image-gallery": "1.4.0",
|
"react-image-gallery": "1.4.0",
|
||||||
"react-intersection-observer": "10.0.0",
|
"react-intersection-observer": "10.0.0",
|
||||||
"react-map-gl": "^8.1.0",
|
"react-map-gl": "^8.1.0",
|
||||||
"react-remove-scroll": "2.7.2",
|
"react-remove-scroll": "2.7.2",
|
||||||
"react-responsive-masonry": "2.7.1",
|
"react-responsive-masonry": "2.7.1",
|
||||||
"react-router": "7.10.1",
|
"react-router": "7.12.0",
|
||||||
"react-scan": "0.4.3",
|
"react-scan": "0.4.3",
|
||||||
"react-use-measure": "2.1.7",
|
"react-use-measure": "2.1.7",
|
||||||
"react-zoom-pan-pinch": "3.7.0",
|
"react-zoom-pan-pinch": "3.7.0",
|
||||||
@@ -84,26 +83,26 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@egoist/tailwindcss-icons": "catalog:",
|
"@egoist/tailwindcss-icons": "catalog:",
|
||||||
"@iconify-json/lucide": "1.2.81",
|
"@iconify-json/lucide": "1.2.83",
|
||||||
"@iconify-json/mingcute": "catalog:",
|
"@iconify-json/mingcute": "catalog:",
|
||||||
"@iconify-json/simple-icons": "1.2.63",
|
"@iconify-json/simple-icons": "1.2.65",
|
||||||
"@tailwindcss/postcss": "catalog:",
|
"@tailwindcss/postcss": "catalog:",
|
||||||
"@tailwindcss/typography": "catalog:",
|
"@tailwindcss/typography": "catalog:",
|
||||||
"@tailwindcss/vite": "4.1.18",
|
"@tailwindcss/vite": "4.1.18",
|
||||||
"@types/node": "24.10.1",
|
"@types/node": "24.10.1",
|
||||||
"@types/react": "19.2.7",
|
"@types/react": "19.2.8",
|
||||||
"@types/react-dom": "19.2.3",
|
"@types/react-dom": "19.2.3",
|
||||||
"@vitejs/plugin-react": "^5.1.2",
|
"@vitejs/plugin-react": "^5.1.2",
|
||||||
"ast-kit": "2.2.0",
|
"ast-kit": "2.2.0",
|
||||||
"babel-plugin-react-compiler": "1.0.0",
|
"babel-plugin-react-compiler": "1.0.0",
|
||||||
"code-inspector-plugin": "1.3.3",
|
"code-inspector-plugin": "1.3.4",
|
||||||
"daisyui": "5.5.14",
|
"daisyui": "5.5.14",
|
||||||
"execa": "9.6.1",
|
"execa": "9.6.1",
|
||||||
"kolorist": "1.8.0",
|
"kolorist": "1.8.0",
|
||||||
"linkedom": "0.18.12",
|
"linkedom": "0.18.12",
|
||||||
"postcss": "8.5.6",
|
"postcss": "8.5.6",
|
||||||
"postcss-import": "16.1.1",
|
"postcss-import": "16.1.1",
|
||||||
"postcss-js": "5.0.2",
|
"postcss-js": "5.0.3",
|
||||||
"react-compiler-runtime": "1.0.0",
|
"react-compiler-runtime": "1.0.0",
|
||||||
"simple-git-hooks": "2.13.1",
|
"simple-git-hooks": "2.13.1",
|
||||||
"tailwind-scrollbar": "catalog:",
|
"tailwind-scrollbar": "catalog:",
|
||||||
@@ -115,5 +114,6 @@
|
|||||||
"vite-plugin-html": "3.2.2",
|
"vite-plugin-html": "3.2.2",
|
||||||
"vite-plugin-pwa": "1.2.0",
|
"vite-plugin-pwa": "1.2.0",
|
||||||
"vite-plugin-route-builder": "0.5.0-alpha.1"
|
"vite-plugin-route-builder": "0.5.0-alpha.1"
|
||||||
}
|
},
|
||||||
|
"packageManager": "pnpm@10.26.2"
|
||||||
}
|
}
|
||||||
@@ -1,9 +1,8 @@
|
|||||||
{
|
{
|
||||||
"name": "@afilmory/core",
|
"name": "@afilmory/core",
|
||||||
"type": "module",
|
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"packageManager": "pnpm@10.26.2",
|
|
||||||
"author": "Innei",
|
"author": "Innei",
|
||||||
|
"type": "module",
|
||||||
"main": "index.ts",
|
"main": "index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
@@ -27,28 +26,28 @@
|
|||||||
"@afilmory/task-queue": "workspace:*",
|
"@afilmory/task-queue": "workspace:*",
|
||||||
"@afilmory/utils": "workspace:*",
|
"@afilmory/utils": "workspace:*",
|
||||||
"@aws-crypto/sha256-js": "5.2.0",
|
"@aws-crypto/sha256-js": "5.2.0",
|
||||||
"@aws-sdk/client-s3": "3.952.0",
|
"@aws-sdk/client-s3": "3.966.0",
|
||||||
"@aws-sdk/s3-request-presigner": "3.952.0",
|
"@aws-sdk/s3-request-presigner": "3.966.0",
|
||||||
"@creem_io/better-auth": "0.0.12",
|
"@creem_io/better-auth": "0.0.12",
|
||||||
"@hono/node-server": "^1.19.7",
|
"@hono/node-server": "^1.19.8",
|
||||||
"@resvg/resvg-js": "2.6.2",
|
"@resvg/resvg-js": "2.6.2",
|
||||||
"@types/busboy": "1.5.4",
|
"@types/busboy": "1.5.4",
|
||||||
"better-auth": "1.4.7",
|
"better-auth": "1.4.10",
|
||||||
"busboy": "1.6.0",
|
"busboy": "1.6.0",
|
||||||
"consola": "3.4.2",
|
"consola": "3.4.2",
|
||||||
"drizzle-orm": "^0.45.1",
|
"drizzle-orm": "^0.45.1",
|
||||||
"ejs": "3.1.10",
|
"ejs": "3.1.10",
|
||||||
"hono": "4.11.1",
|
"hono": "4.11.3",
|
||||||
"linkedom": "0.18.12",
|
"linkedom": "0.18.12",
|
||||||
"mime-types": "3.0.2",
|
"mime-types": "3.0.2",
|
||||||
"pg": "^8.16.3",
|
"pg": "^8.16.3",
|
||||||
"pg-native": "3.5.2",
|
"pg-native": "3.5.2",
|
||||||
"picocolors": "1.1.1",
|
"picocolors": "1.1.1",
|
||||||
"reflect-metadata": "0.2.2",
|
"reflect-metadata": "0.2.2",
|
||||||
"resend": "6.6.0",
|
"resend": "6.7.0",
|
||||||
"satori": "catalog:",
|
"satori": "catalog:",
|
||||||
"tsyringe": "4.10.0",
|
"tsyringe": "4.10.0",
|
||||||
"zod": "^4.2.1"
|
"zod": "^4.3.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/ejs": "3.1.5",
|
"@types/ejs": "3.1.5",
|
||||||
@@ -60,7 +59,8 @@
|
|||||||
"vite": "8.0.0-beta.0",
|
"vite": "8.0.0-beta.0",
|
||||||
"vite-bundle-analyzer": "1.3.2",
|
"vite-bundle-analyzer": "1.3.2",
|
||||||
"vite-node": "5.2.0",
|
"vite-node": "5.2.0",
|
||||||
"vite-tsconfig-paths": "6.0.1",
|
"vite-tsconfig-paths": "6.0.4",
|
||||||
"vitest": "4.0.15"
|
"vitest": "4.0.16"
|
||||||
}
|
},
|
||||||
|
"packageManager": "pnpm@10.26.2"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ export async function createConfiguredApp(options: BootstrapOptions): Promise<Ho
|
|||||||
|
|
||||||
hono.onError((error, context) => {
|
hono.onError((error, context) => {
|
||||||
if (error instanceof BizException) {
|
if (error instanceof BizException) {
|
||||||
return new Response(JSON.stringify(error.toResponse()), {
|
return Response.json(error.toResponse(), {
|
||||||
status: error.getHttpStatus(),
|
status: error.getHttpStatus(),
|
||||||
headers: {
|
headers: {
|
||||||
'content-type': 'application/json',
|
'content-type': 'application/json',
|
||||||
@@ -70,7 +70,7 @@ export async function createConfiguredApp(options: BootstrapOptions): Promise<Ho
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (error instanceof HttpException) {
|
if (error instanceof HttpException) {
|
||||||
return new Response(JSON.stringify(error.getResponse()), {
|
return Response.json(error.getResponse(), {
|
||||||
status: error.getStatus(),
|
status: error.getStatus(),
|
||||||
headers: {
|
headers: {
|
||||||
'content-type': 'application/json',
|
'content-type': 'application/json',
|
||||||
@@ -84,7 +84,7 @@ export async function createConfiguredApp(options: BootstrapOptions): Promise<Ho
|
|||||||
? (error as { statusCode?: number }).statusCode!
|
? (error as { statusCode?: number }).statusCode!
|
||||||
: 500
|
: 500
|
||||||
|
|
||||||
return new Response(JSON.stringify(error), {
|
return Response.json(error, {
|
||||||
status: statusCode,
|
status: statusCode,
|
||||||
headers: {
|
headers: {
|
||||||
'content-type': 'application/json',
|
'content-type': 'application/json',
|
||||||
@@ -94,11 +94,11 @@ export async function createConfiguredApp(options: BootstrapOptions): Promise<Ho
|
|||||||
|
|
||||||
honoErrorLogger.error(`Unhandled error ${context.req.method} ${context.req.url}`, error)
|
honoErrorLogger.error(`Unhandled error ${context.req.method} ${context.req.url}`, error)
|
||||||
|
|
||||||
return new Response(
|
return Response.json(
|
||||||
JSON.stringify({
|
{
|
||||||
statusCode: 500,
|
statusCode: 500,
|
||||||
message: 'Internal server error',
|
message: 'Internal server error',
|
||||||
}),
|
},
|
||||||
{
|
{
|
||||||
status: 500,
|
status: 500,
|
||||||
headers: {
|
headers: {
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ export class AllExceptionsFilter implements ExceptionFilter {
|
|||||||
}
|
}
|
||||||
if (exception instanceof BizException) {
|
if (exception instanceof BizException) {
|
||||||
const response = exception.toResponse()
|
const response = exception.toResponse()
|
||||||
return new Response(JSON.stringify(response), {
|
return Response.json(response, {
|
||||||
status: exception.getHttpStatus(),
|
status: exception.getHttpStatus(),
|
||||||
headers: {
|
headers: {
|
||||||
'content-type': 'application/json',
|
'content-type': 'application/json',
|
||||||
@@ -29,7 +29,7 @@ export class AllExceptionsFilter implements ExceptionFilter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (exception instanceof HttpException) {
|
if (exception instanceof HttpException) {
|
||||||
return new Response(JSON.stringify(exception.getResponse()), {
|
return Response.json(exception.getResponse(), {
|
||||||
status: exception.getStatus(),
|
status: exception.getStatus(),
|
||||||
headers: {
|
headers: {
|
||||||
'content-type': 'application/json',
|
'content-type': 'application/json',
|
||||||
@@ -38,7 +38,7 @@ export class AllExceptionsFilter implements ExceptionFilter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (typeof exception === 'object' && exception !== null && 'statusCode' in exception) {
|
if (typeof exception === 'object' && exception !== null && 'statusCode' in exception) {
|
||||||
return new Response(JSON.stringify(exception), {
|
return Response.json(exception, {
|
||||||
status: exception.statusCode as number,
|
status: exception.statusCode as number,
|
||||||
headers: {
|
headers: {
|
||||||
'content-type': 'application/json',
|
'content-type': 'application/json',
|
||||||
@@ -46,11 +46,11 @@ export class AllExceptionsFilter implements ExceptionFilter {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Response(
|
return Response.json(
|
||||||
JSON.stringify({
|
{
|
||||||
statusCode: 500,
|
statusCode: 500,
|
||||||
message: 'Internal server error',
|
message: 'Internal server error',
|
||||||
}),
|
},
|
||||||
{
|
{
|
||||||
status: 500,
|
status: 500,
|
||||||
headers: {
|
headers: {
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ const storageSignQuerySchema = z
|
|||||||
.optional()
|
.optional()
|
||||||
.transform((val) => {
|
.transform((val) => {
|
||||||
if (!val || val.trim().length === 0) {
|
if (!val || val.trim().length === 0) {
|
||||||
return undefined
|
return
|
||||||
}
|
}
|
||||||
const parsed = Number.parseInt(val, 10)
|
const parsed = Number.parseInt(val, 10)
|
||||||
return Number.isFinite(parsed) ? parsed : undefined
|
return Number.isFinite(parsed) ? parsed : undefined
|
||||||
|
|||||||
@@ -306,7 +306,7 @@ export class AuthRegistrationService {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const response = new Response(JSON.stringify({ tenant: updatedTenant }), {
|
const response = Response.json({ tenant: updatedTenant }, {
|
||||||
status: 200,
|
status: 200,
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
})
|
})
|
||||||
@@ -392,7 +392,7 @@ export class AuthRegistrationService {
|
|||||||
response = signupResponse
|
response = signupResponse
|
||||||
} else if (sessionUser && tenantId) {
|
} else if (sessionUser && tenantId) {
|
||||||
userId = await this.attachSessionUserToTenant(tenantId)
|
userId = await this.attachSessionUserToTenant(tenantId)
|
||||||
response = new Response(JSON.stringify({ user: { id: userId } }), {
|
response = Response.json({ user: { id: userId } }, {
|
||||||
status: 200,
|
status: 200,
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -582,7 +582,7 @@ export class AuthController {
|
|||||||
|
|
||||||
headers.set('content-type', 'application/json; charset=utf-8')
|
headers.set('content-type', 'application/json; charset=utf-8')
|
||||||
|
|
||||||
return new Response(JSON.stringify(responseBody), {
|
return Response.json(responseBody, {
|
||||||
status: source.status,
|
status: source.status,
|
||||||
statusText: source.statusText,
|
statusText: source.statusText,
|
||||||
headers,
|
headers,
|
||||||
@@ -655,7 +655,7 @@ export class AuthController {
|
|||||||
url: wrappedUrl,
|
url: wrappedUrl,
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Response(JSON.stringify(nextPayload), {
|
return Response.json(nextPayload, {
|
||||||
status: response.status,
|
status: response.status,
|
||||||
statusText: response.statusText,
|
statusText: response.statusText,
|
||||||
headers,
|
headers,
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "@afilmory/dashboard",
|
"name": "@afilmory/dashboard",
|
||||||
"type": "module",
|
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"packageManager": "pnpm@10.26.2",
|
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/afilmory/afilmory"
|
"url": "https://github.com/afilmory/afilmory"
|
||||||
},
|
},
|
||||||
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"build:prod:saas": "SAAS=1 vite build",
|
"build:prod:saas": "SAAS=1 vite build",
|
||||||
@@ -16,6 +15,17 @@
|
|||||||
"prepare": "simple-git-hooks",
|
"prepare": "simple-git-hooks",
|
||||||
"serve": "vite preview"
|
"serve": "vite preview"
|
||||||
},
|
},
|
||||||
|
"simple-git-hooks": {
|
||||||
|
"pre-commit": "pnpm exec lint-staged"
|
||||||
|
},
|
||||||
|
"lint-staged": {
|
||||||
|
"*.{js,jsx,ts,tsx}": [
|
||||||
|
"prettier --ignore-path ./.gitignore --write "
|
||||||
|
],
|
||||||
|
"*.{js,ts,cjs,mjs,jsx,tsx,json}": [
|
||||||
|
"eslint --fix"
|
||||||
|
]
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@afilmory/hooks": "workspace:*",
|
"@afilmory/hooks": "workspace:*",
|
||||||
"@afilmory/ui": "workspace:*",
|
"@afilmory/ui": "workspace:*",
|
||||||
@@ -36,26 +46,26 @@
|
|||||||
"@radix-ui/react-switch": "1.2.6",
|
"@radix-ui/react-switch": "1.2.6",
|
||||||
"@radix-ui/react-tooltip": "1.2.8",
|
"@radix-ui/react-tooltip": "1.2.8",
|
||||||
"@react-hook/window-size": "3.1.1",
|
"@react-hook/window-size": "3.1.1",
|
||||||
"@tanstack/react-form": "1.27.4",
|
"@tanstack/react-form": "1.27.7",
|
||||||
"@tanstack/react-query": "5.90.12",
|
"@tanstack/react-query": "5.90.16",
|
||||||
"better-auth": "1.4.7",
|
"better-auth": "1.4.10",
|
||||||
"class-variance-authority": "0.7.1",
|
"class-variance-authority": "0.7.1",
|
||||||
"clsx": "2.1.1",
|
"clsx": "2.1.1",
|
||||||
"es-toolkit": "1.43.0",
|
"es-toolkit": "1.43.0",
|
||||||
"foxact": "0.2.49",
|
"foxact": "0.2.51",
|
||||||
"i18next": "25.7.3",
|
"i18next": "25.7.4",
|
||||||
"i18next-browser-languagedetector": "8.2.0",
|
"i18next-browser-languagedetector": "8.2.0",
|
||||||
"immer": "11.0.1",
|
"immer": "11.1.3",
|
||||||
"jotai": "2.16.0",
|
"jotai": "2.16.1",
|
||||||
"lucide-react": "0.561.0",
|
"lucide-react": "0.562.0",
|
||||||
"motion": "12.23.26",
|
"motion": "12.25.0",
|
||||||
"nanoid": "5.1.6",
|
"nanoid": "5.1.6",
|
||||||
"ofetch": "1.5.1",
|
"ofetch": "1.5.1",
|
||||||
"radix-ui": "1.4.3",
|
"radix-ui": "1.4.3",
|
||||||
"react": "19.2.3",
|
"react": "19.2.3",
|
||||||
"react-dom": "19.2.3",
|
"react-dom": "19.2.3",
|
||||||
"react-i18next": "16.5.0",
|
"react-i18next": "16.5.1",
|
||||||
"react-router": "7.10.1",
|
"react-router": "7.12.0",
|
||||||
"react-scan": "0.4.3",
|
"react-scan": "0.4.3",
|
||||||
"sonner": "2.0.7",
|
"sonner": "2.0.7",
|
||||||
"tailwind-merge": "3.4.0",
|
"tailwind-merge": "3.4.0",
|
||||||
@@ -65,20 +75,20 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@egoist/tailwindcss-icons": "1.9.0",
|
"@egoist/tailwindcss-icons": "1.9.0",
|
||||||
"@iconify-json/mingcute": "catalog:",
|
"@iconify-json/mingcute": "catalog:",
|
||||||
"@iconify-json/simple-icons": "1.2.63",
|
"@iconify-json/simple-icons": "1.2.65",
|
||||||
"@tailwindcss/container-queries": "0.1.1",
|
"@tailwindcss/container-queries": "0.1.1",
|
||||||
"@tailwindcss/postcss": "catalog:",
|
"@tailwindcss/postcss": "catalog:",
|
||||||
"@tailwindcss/typography": "0.5.19",
|
"@tailwindcss/typography": "0.5.19",
|
||||||
"@tailwindcss/vite": "4.1.18",
|
"@tailwindcss/vite": "4.1.18",
|
||||||
"@types/node": "24.10.1",
|
"@types/node": "24.10.1",
|
||||||
"@types/react": "19.2.7",
|
"@types/react": "19.2.8",
|
||||||
"@types/react-dom": "19.2.3",
|
"@types/react-dom": "19.2.3",
|
||||||
"@vitejs/plugin-react": "^5.1.2",
|
"@vitejs/plugin-react": "^5.1.2",
|
||||||
"autoprefixer": "10.4.23",
|
"autoprefixer": "10.4.23",
|
||||||
"babel-plugin-react-compiler": "1.0.0",
|
"babel-plugin-react-compiler": "1.0.0",
|
||||||
"code-inspector-plugin": "1.3.3",
|
"code-inspector-plugin": "1.3.4",
|
||||||
"eslint": "9.39.2",
|
"eslint": "9.39.2",
|
||||||
"eslint-config-hyoban": "4.0.10",
|
"eslint-config-hyoban": "5.0.3",
|
||||||
"lint-staged": "16.2.7",
|
"lint-staged": "16.2.7",
|
||||||
"masonic": "4.1.0",
|
"masonic": "4.1.0",
|
||||||
"postcss": "8.5.6",
|
"postcss": "8.5.6",
|
||||||
@@ -96,17 +106,7 @@
|
|||||||
"vite": "8.0.0-beta.0",
|
"vite": "8.0.0-beta.0",
|
||||||
"vite-plugin-checker": "0.12.0",
|
"vite-plugin-checker": "0.12.0",
|
||||||
"vite-plugin-route-builder": "0.5.0-alpha.1",
|
"vite-plugin-route-builder": "0.5.0-alpha.1",
|
||||||
"vite-tsconfig-paths": "6.0.1"
|
"vite-tsconfig-paths": "6.0.4"
|
||||||
},
|
},
|
||||||
"simple-git-hooks": {
|
"packageManager": "pnpm@10.26.2"
|
||||||
"pre-commit": "pnpm exec lint-staged"
|
|
||||||
},
|
|
||||||
"lint-staged": {
|
|
||||||
"*.{js,jsx,ts,tsx}": [
|
|
||||||
"prettier --ignore-path ./.gitignore --write "
|
|
||||||
],
|
|
||||||
"*.{js,ts,cjs,mjs,jsx,tsx,json}": [
|
|
||||||
"eslint --fix"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"name": "@afilmory/oauth-gateway",
|
"name": "@afilmory/oauth-gateway",
|
||||||
"type": "module",
|
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"dev": "nodemon",
|
"dev": "nodemon",
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@afilmory/be-utils": "workspace:*",
|
"@afilmory/be-utils": "workspace:*",
|
||||||
"@afilmory/utils": "workspace:*",
|
"@afilmory/utils": "workspace:*",
|
||||||
"@hono/node-server": "^1.19.7",
|
"@hono/node-server": "^1.19.8",
|
||||||
"hono": "^4.11.3",
|
"hono": "^4.11.3",
|
||||||
"zod": "catalog:"
|
"zod": "catalog:"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name": "@afilmory/be",
|
"name": "@afilmory/be",
|
||||||
"type": "module",
|
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"author": "Innei",
|
"author": "Innei",
|
||||||
|
"type": "module",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"db:generate": "pnpm --filter core db:generate",
|
"db:generate": "pnpm --filter core db:generate",
|
||||||
@@ -14,22 +14,22 @@
|
|||||||
"prepare": "simple-git-hooks",
|
"prepare": "simple-git-hooks",
|
||||||
"test": "pnpm run -r test"
|
"test": "pnpm run -r test"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
|
||||||
"prettier": "3.7.4"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"eslint": "9.39.2",
|
|
||||||
"eslint-config-hyoban": "4.0.10",
|
|
||||||
"jiti": "2.6.1",
|
|
||||||
"lint-staged": "16.2.7",
|
|
||||||
"simple-git-hooks": "2.13.1",
|
|
||||||
"typescript": "catalog:"
|
|
||||||
},
|
|
||||||
"simple-git-hooks": {
|
"simple-git-hooks": {
|
||||||
"pre-commit": "npx lint-staged"
|
"pre-commit": "npx lint-staged"
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*": "eslint --fix",
|
"*": "eslint --fix",
|
||||||
"*.{js,jsx,ts,tsx,json,css,md}": "prettier --write"
|
"*.{js,jsx,ts,tsx,json,css,md}": "prettier --write"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"prettier": "3.7.4"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"eslint": "9.39.2",
|
||||||
|
"eslint-config-hyoban": "5.0.3",
|
||||||
|
"jiti": "2.6.1",
|
||||||
|
"lint-staged": "16.2.7",
|
||||||
|
"simple-git-hooks": "2.13.1",
|
||||||
|
"typescript": "catalog:"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@afilmory/db",
|
"name": "@afilmory/db",
|
||||||
"type": "module",
|
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
|
"type": "module",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"import": "./src/index.ts",
|
"import": "./src/index.ts",
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
"nodejs-snowflake": "^2.0.1",
|
"nodejs-snowflake": "^2.0.1",
|
||||||
"pg": "^8.16.3",
|
"pg": "^8.16.3",
|
||||||
"pg-native": "3.5.2",
|
"pg-native": "3.5.2",
|
||||||
"zod": "^4.2.1"
|
"zod": "^4.3.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"drizzle-kit": "0.31.8"
|
"drizzle-kit": "0.31.8"
|
||||||
|
|||||||
4
be/packages/env/package.json
vendored
4
be/packages/env/package.json
vendored
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@afilmory/env",
|
"name": "@afilmory/env",
|
||||||
"type": "module",
|
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
|
"type": "module",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"import": "./src/index.ts",
|
"import": "./src/index.ts",
|
||||||
@@ -13,6 +13,6 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@t3-oss/env-core": "^0.13.10",
|
"@t3-oss/env-core": "^0.13.10",
|
||||||
"dotenv": "17.2.3",
|
"dotenv": "17.2.3",
|
||||||
"zod": "^4.2.1"
|
"zod": "^4.3.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@afilmory/framework",
|
"name": "@afilmory/framework",
|
||||||
"type": "module",
|
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
|
"type": "module",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"import": "./src/index.ts",
|
"import": "./src/index.ts",
|
||||||
@@ -15,21 +15,21 @@
|
|||||||
"test:coverage": "vitest run --coverage",
|
"test:coverage": "vitest run --coverage",
|
||||||
"test:watch": "vitest"
|
"test:watch": "vitest"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
|
||||||
"ioredis": ">=5.8.0"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"hono": "4.11.1",
|
"hono": "4.11.3",
|
||||||
"picocolors": "1.1.1",
|
"picocolors": "1.1.1",
|
||||||
"reflect-metadata": "0.2.2",
|
"reflect-metadata": "0.2.2",
|
||||||
"tsyringe": "4.10.0",
|
"tsyringe": "4.10.0",
|
||||||
"zod": "^4.2.1"
|
"zod": "^4.3.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^25.0.3",
|
"@types/node": "^25.0.3",
|
||||||
"@vitest/coverage-v8": "4.0.15",
|
"@vitest/coverage-v8": "4.0.16",
|
||||||
"ioredis": "5.8.2",
|
"ioredis": "5.9.1",
|
||||||
"unplugin-swc": "1.5.9",
|
"unplugin-swc": "1.5.9",
|
||||||
"vitest": "4.0.15"
|
"vitest": "4.0.16"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"ioredis": ">=5.8.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1101,7 +1101,7 @@ export class HonoHttpApplication {
|
|||||||
|
|
||||||
private json(context: Context, payload: unknown, status: number): Response {
|
private json(context: Context, payload: unknown, status: number): Response {
|
||||||
const normalizedPayload = payload === undefined ? null : payload
|
const normalizedPayload = payload === undefined ? null : payload
|
||||||
return new Response(JSON.stringify(normalizedPayload), {
|
return Response.json(normalizedPayload, {
|
||||||
status,
|
status,
|
||||||
headers: {
|
headers: {
|
||||||
'content-type': 'application/json',
|
'content-type': 'application/json',
|
||||||
|
|||||||
@@ -1623,7 +1623,7 @@ describe('APP_* providers and auto-registration of decorator enhancers', () => {
|
|||||||
@injectable()
|
@injectable()
|
||||||
class AppFilter2 implements ExceptionFilter {
|
class AppFilter2 implements ExceptionFilter {
|
||||||
async catch(_e: unknown, _host: ArgumentsHost) {
|
async catch(_e: unknown, _host: ArgumentsHost) {
|
||||||
return new Response(JSON.stringify({ handled: 'app' }), {
|
return Response.json({ handled: 'app' }, {
|
||||||
status: 499,
|
status: 499,
|
||||||
headers: {
|
headers: {
|
||||||
'content-type': 'application/json',
|
'content-type': 'application/json',
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@afilmory/redis",
|
"name": "@afilmory/redis",
|
||||||
"type": "module",
|
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
|
"type": "module",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"import": "./src/index.ts",
|
"import": "./src/index.ts",
|
||||||
@@ -11,6 +11,6 @@
|
|||||||
"main": "./src/index.ts",
|
"main": "./src/index.ts",
|
||||||
"types": "./src/index.ts",
|
"types": "./src/index.ts",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ioredis": "^5.8.2"
|
"ioredis": "^5.9.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@afilmory/task-queue",
|
"name": "@afilmory/task-queue",
|
||||||
"type": "module",
|
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
|
"type": "module",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"import": "./src/index.ts",
|
"import": "./src/index.ts",
|
||||||
@@ -14,17 +14,17 @@
|
|||||||
"test": "vitest run --coverage",
|
"test": "vitest run --coverage",
|
||||||
"test:watch": "vitest"
|
"test:watch": "vitest"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
|
||||||
"ioredis": "^5.8.0"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@afilmory/framework": "workspace:*",
|
"@afilmory/framework": "workspace:*",
|
||||||
"tsyringe": "^4.10.0"
|
"tsyringe": "^4.10.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^25.0.3",
|
"@types/node": "^25.0.3",
|
||||||
"@vitest/coverage-v8": "4.0.15",
|
"@vitest/coverage-v8": "4.0.16",
|
||||||
"ioredis": "^5.8.2",
|
"ioredis": "^5.9.1",
|
||||||
"vitest": "4.0.15"
|
"vitest": "4.0.16"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"ioredis": "^5.8.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@afilmory/be-utils",
|
"name": "@afilmory/be-utils",
|
||||||
"type": "module",
|
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
|
"type": "module",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"import": "./src/index.ts",
|
"import": "./src/index.ts",
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
"types": "./src/index.ts",
|
"types": "./src/index.ts",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nodejs-snowflake": "^2.0.1",
|
"nodejs-snowflake": "^2.0.1",
|
||||||
"zod": "^4.2.1"
|
"zod": "^4.3.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^25.0.3"
|
"@types/node": "^25.0.3"
|
||||||
|
|||||||
40
package.json
40
package.json
@@ -1,14 +1,13 @@
|
|||||||
{
|
{
|
||||||
"name": "@afilmory/monorepo",
|
"name": "@afilmory/monorepo",
|
||||||
"type": "module",
|
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"packageManager": "pnpm@10.26.2",
|
|
||||||
"license": "SEE LICENSE IN LICENSE.md",
|
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Afilmory/Afilmory"
|
"url": "https://github.com/Afilmory/Afilmory"
|
||||||
},
|
},
|
||||||
|
"license": "SEE LICENSE IN LICENSE.md",
|
||||||
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "pnpm --filter @afilmory/ssr build",
|
"build": "pnpm --filter @afilmory/ssr build",
|
||||||
"build:demo": "sh scripts/prepare-demo-data.sh && pnpm --filter web build",
|
"build:demo": "sh scripts/prepare-demo-data.sh && pnpm --filter web build",
|
||||||
@@ -22,14 +21,28 @@
|
|||||||
"docs:preview": "pnpm --filter @afilmory/docs preview",
|
"docs:preview": "pnpm --filter @afilmory/docs preview",
|
||||||
"extract:font": "tsx scripts/extract-font-glyphs.ts",
|
"extract:font": "tsx scripts/extract-font-glyphs.ts",
|
||||||
"format": "prettier --write \"apps/**/*.{ts,tsx,js,jsx,json,css,md}\" \"packages/**/*.{ts,tsx,js,jsx,json,css,md}\" \"be/**/*.{ts,tsx,js,jsx,json,css,md}\"",
|
"format": "prettier --write \"apps/**/*.{ts,tsx,js,jsx,json,css,md}\" \"packages/**/*.{ts,tsx,js,jsx,json,css,md}\" \"be/**/*.{ts,tsx,js,jsx,json,css,md}\"",
|
||||||
|
"preinstall": "sh scripts/preinstall.sh",
|
||||||
"lint": "eslint --fix",
|
"lint": "eslint --fix",
|
||||||
"migrate:manifest": "tsx scripts/migrate-manifest.ts",
|
"migrate:manifest": "tsx scripts/migrate-manifest.ts",
|
||||||
"preinstall": "sh scripts/preinstall.sh",
|
|
||||||
"prepare": "simple-git-hooks",
|
"prepare": "simple-git-hooks",
|
||||||
"reinstall": "rm -rf **/*/node_modules && rm -rf node_modules && pnpm install",
|
"reinstall": "rm -rf **/*/node_modules && rm -rf node_modules && pnpm install",
|
||||||
"type-check": "pnpm run -r type-check",
|
"type-check": "pnpm run -r type-check",
|
||||||
"update:lastmodified": "tsx scripts/update-lastmodified.ts"
|
"update:lastmodified": "tsx scripts/update-lastmodified.ts"
|
||||||
},
|
},
|
||||||
|
"simple-git-hooks": {
|
||||||
|
"pre-commit": "pnpm exec lint-staged"
|
||||||
|
},
|
||||||
|
"lint-staged": {
|
||||||
|
"*.{js,jsx,ts,tsx}": [
|
||||||
|
"prettier --ignore-path ./.gitignore --write "
|
||||||
|
],
|
||||||
|
"*.{js,ts,cjs,mjs,jsx,tsx,json}": [
|
||||||
|
"eslint --fix"
|
||||||
|
],
|
||||||
|
"*.{md,mdx}": [
|
||||||
|
"pnpm update:lastmodified"
|
||||||
|
]
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@afilmory/builder": "workspace:*",
|
"@afilmory/builder": "workspace:*",
|
||||||
"@afilmory/hooks": "workspace:*",
|
"@afilmory/hooks": "workspace:*",
|
||||||
@@ -46,7 +59,7 @@
|
|||||||
"ast-kit": "2.2.0",
|
"ast-kit": "2.2.0",
|
||||||
"dotenv-expand": "catalog:",
|
"dotenv-expand": "catalog:",
|
||||||
"eslint": "9.39.2",
|
"eslint": "9.39.2",
|
||||||
"eslint-config-hyoban": "4.0.10",
|
"eslint-config-hyoban": "5.0.3",
|
||||||
"fast-glob": "3.3.3",
|
"fast-glob": "3.3.3",
|
||||||
"lint-staged": "16.2.7",
|
"lint-staged": "16.2.7",
|
||||||
"nbump": "2.1.8",
|
"nbump": "2.1.8",
|
||||||
@@ -61,20 +74,7 @@
|
|||||||
"vite-bundle-analyzer": "1.3.2",
|
"vite-bundle-analyzer": "1.3.2",
|
||||||
"vite-plugin-babel": "1.3.2",
|
"vite-plugin-babel": "1.3.2",
|
||||||
"vite-plugin-checker": "0.12.0",
|
"vite-plugin-checker": "0.12.0",
|
||||||
"vite-tsconfig-paths": "6.0.1"
|
"vite-tsconfig-paths": "6.0.4"
|
||||||
},
|
},
|
||||||
"simple-git-hooks": {
|
"packageManager": "pnpm@10.26.2"
|
||||||
"pre-commit": "pnpm exec lint-staged"
|
|
||||||
},
|
|
||||||
"lint-staged": {
|
|
||||||
"*.{js,jsx,ts,tsx}": [
|
|
||||||
"prettier --ignore-path ./.gitignore --write "
|
|
||||||
],
|
|
||||||
"*.{js,ts,cjs,mjs,jsx,tsx,json}": [
|
|
||||||
"eslint --fix"
|
|
||||||
],
|
|
||||||
"*.{md,mdx}": [
|
|
||||||
"pnpm update:lastmodified"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,10 @@
|
|||||||
{
|
{
|
||||||
"name": "@afilmory/builder",
|
"name": "@afilmory/builder",
|
||||||
"type": "module",
|
|
||||||
"version": "0.2.2",
|
"version": "0.2.2",
|
||||||
|
"description": "Afilmory Builder",
|
||||||
|
"type": "module",
|
||||||
|
"license": "MIT",
|
||||||
|
"author": "Innei",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./src/index.ts",
|
".": "./src/index.ts",
|
||||||
"./*": "./src/*"
|
"./*": "./src/*"
|
||||||
@@ -48,4 +51,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -56,7 +56,7 @@ export default function eagleStoragePlugin(options: EagleStoragePluginOptions =
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Apply omitTagNamesInMetadata filter
|
// Apply omitTagNamesInMetadata filter
|
||||||
const omit = new Set((eagleConfig as EagleConfig).omitTagNamesInMetadata ?? [])
|
const omit = new Set((eagleConfig as EagleConfig).omitTagNamesInMetadata)
|
||||||
if (omit.size > 0 && meta.tags) {
|
if (omit.size > 0 && meta.tags) {
|
||||||
meta.tags = meta.tags.filter((t) => !omit.has(t))
|
meta.tags = meta.tags.filter((t) => !omit.has(t))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@afilmory/data",
|
"name": "@afilmory/data",
|
||||||
"type": "module",
|
|
||||||
"private": true,
|
"private": true,
|
||||||
|
"type": "module",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./src/index.ts",
|
".": "./src/index.ts",
|
||||||
"./manifest": "./src/photos-manifest.json",
|
"./manifest": "./src/photos-manifest.json",
|
||||||
|
|||||||
@@ -1,23 +1,23 @@
|
|||||||
{
|
{
|
||||||
"name": "@afilmory/hooks",
|
"name": "@afilmory/hooks",
|
||||||
"type": "module",
|
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
"type": "module",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./src/index.ts",
|
".": "./src/index.ts",
|
||||||
"./*": "./src/*"
|
"./*": "./src/*"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
|
||||||
"react": "^19.1.1"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"jotai": "^2.16.1",
|
"jotai": "^2.16.1",
|
||||||
"usehooks-ts": "^3.1.1"
|
"usehooks-ts": "^3.1.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/react": "^19.2.7",
|
"@types/react": "^19.2.8",
|
||||||
"@types/react-dom": "^19.2.3",
|
"@types/react-dom": "^19.2.3",
|
||||||
"react": "^19.2.3",
|
"react": "^19.2.3",
|
||||||
"react-dom": "^19.2.3"
|
"react-dom": "^19.2.3"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"react": "^19.1.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@afilmory/og-renderer",
|
"name": "@afilmory/og-renderer",
|
||||||
"type": "module",
|
|
||||||
"private": true,
|
"private": true,
|
||||||
|
"type": "module",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./src/index.ts",
|
".": "./src/index.ts",
|
||||||
"./renderer": "./src/og.renderer.tsx",
|
"./renderer": "./src/og.renderer.tsx",
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@resvg/resvg-js": "2.6.2",
|
"@resvg/resvg-js": "2.6.2",
|
||||||
"hono": "4.11.1",
|
"hono": "4.11.3",
|
||||||
"satori": "catalog:"
|
"satori": "catalog:"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@afilmory/sdk",
|
"name": "@afilmory/sdk",
|
||||||
"type": "module",
|
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
|
"type": "module",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"import": "./src/index.ts",
|
"import": "./src/index.ts",
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"name": "@afilmory/typing",
|
"name": "@afilmory/typing",
|
||||||
"type": "module",
|
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
"type": "module",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./src/index.ts",
|
".": "./src/index.ts",
|
||||||
"./*": "./src/*"
|
"./*": "./src/*"
|
||||||
|
|||||||
@@ -1,16 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@afilmory/ui",
|
"name": "@afilmory/ui",
|
||||||
"type": "module",
|
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
"type": "module",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./src/index.ts",
|
".": "./src/index.ts",
|
||||||
"./*": "./src/*"
|
"./*": "./src/*"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
|
||||||
"react": "^19.1.1",
|
|
||||||
"react-dom": "^19.1.1"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@afilmory/hooks": "workspace:*",
|
"@afilmory/hooks": "workspace:*",
|
||||||
"@afilmory/utils": "workspace:*",
|
"@afilmory/utils": "workspace:*",
|
||||||
@@ -28,7 +24,7 @@
|
|||||||
"@radix-ui/react-tooltip": "1.2.8",
|
"@radix-ui/react-tooltip": "1.2.8",
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"jotai": "^2.16.1",
|
"jotai": "^2.16.1",
|
||||||
"motion": "^12.23.26",
|
"motion": "^12.25.0",
|
||||||
"react-intersection-observer": "10.0.0",
|
"react-intersection-observer": "10.0.0",
|
||||||
"sonner": "2.0.7",
|
"sonner": "2.0.7",
|
||||||
"tailwind-merge": "^3.4.0",
|
"tailwind-merge": "^3.4.0",
|
||||||
@@ -37,9 +33,13 @@
|
|||||||
"usehooks-ts": "^3.1.1"
|
"usehooks-ts": "^3.1.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/react": "^19.2.7",
|
"@types/react": "^19.2.8",
|
||||||
"@types/react-dom": "^19.2.3",
|
"@types/react-dom": "^19.2.3",
|
||||||
"react": "^19.2.3",
|
"react": "^19.2.3",
|
||||||
"react-dom": "^19.2.3"
|
"react-dom": "^19.2.3"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"react": "^19.1.1",
|
||||||
|
"react-dom": "^19.1.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"name": "@afilmory/utils",
|
"name": "@afilmory/utils",
|
||||||
"type": "module",
|
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
"type": "module",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./src/index.ts",
|
".": "./src/index.ts",
|
||||||
"./*": "./src/*"
|
"./*": "./src/*"
|
||||||
@@ -13,6 +13,6 @@
|
|||||||
"tailwind-merge": "^3.4.0"
|
"tailwind-merge": "^3.4.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"motion": "12.23.26"
|
"motion": "12.25.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
{
|
{
|
||||||
"name": "@afilmory/webgl-viewer",
|
"name": "@afilmory/webgl-viewer",
|
||||||
"type": "module",
|
"description": "Afilmory WebGL Viewer",
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"packageManager": "pnpm@10.26.2",
|
|
||||||
"description": "",
|
|
||||||
"author": "Innei",
|
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"author": "Innei",
|
||||||
|
"type": "module",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./src/index.ts"
|
".": "./src/index.ts"
|
||||||
},
|
},
|
||||||
@@ -14,17 +13,18 @@
|
|||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"type-check": "tsc --noEmit"
|
"type-check": "tsc --noEmit"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
|
||||||
"react": ">=19.0.0"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/react": "19.2.7",
|
"@types/react": "19.2.8",
|
||||||
"nbump": "2.1.8",
|
"nbump": "2.1.8",
|
||||||
"react": "19.2.3",
|
"react": "19.2.3",
|
||||||
"tsdown": "0.18.0",
|
"tsdown": "0.18.0",
|
||||||
"unplugin-dts": "1.0.0-beta.6",
|
"unplugin-dts": "1.0.0-beta.6",
|
||||||
"vite": "8.0.0-beta.0"
|
"vite": "8.0.0-beta.0"
|
||||||
},
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"react": ">=19.0.0"
|
||||||
|
},
|
||||||
|
"packageManager": "pnpm@10.26.2",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public",
|
"access": "public",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
@@ -35,4 +35,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -14,8 +14,7 @@ export default {
|
|||||||
meta: {
|
meta: {
|
||||||
type: 'problem',
|
type: 'problem',
|
||||||
docs: {
|
docs: {
|
||||||
description:
|
description: 'Ensure that the versions of packages in the workspace are consistent',
|
||||||
'Ensure that the versions of packages in the workspace are consistent',
|
|
||||||
category: 'Possible Errors',
|
category: 'Possible Errors',
|
||||||
recommended: true,
|
recommended: true,
|
||||||
},
|
},
|
||||||
@@ -26,13 +25,10 @@ export default {
|
|||||||
if (!context.filename.endsWith('package.json')) return {}
|
if (!context.filename.endsWith('package.json')) return {}
|
||||||
|
|
||||||
const cwd = process.cwd()
|
const cwd = process.cwd()
|
||||||
const packageJsonFilePaths = fg.globSync(
|
const packageJsonFilePaths = fg.globSync(['packages/*/package.json', 'apps/*/package.json', 'package.json'], {
|
||||||
['packages/*/package.json', 'apps/*/package.json', 'package.json'],
|
cwd,
|
||||||
{
|
ignore: ['**/node_modules/**'],
|
||||||
cwd,
|
})
|
||||||
ignore: ['**/node_modules/**'],
|
|
||||||
},
|
|
||||||
)
|
|
||||||
|
|
||||||
/** @type {Map<string, { version: string, filePath: string }[]>} */
|
/** @type {Map<string, { version: string, filePath: string }[]>} */
|
||||||
const packageVersionMap = new Map()
|
const packageVersionMap = new Map()
|
||||||
@@ -70,16 +66,14 @@ export default {
|
|||||||
const packageVersion = node.value.value
|
const packageVersion = node.value.value
|
||||||
|
|
||||||
const versions = packageVersionMap.get(packageName)
|
const versions = packageVersionMap.get(packageName)
|
||||||
if (!versions || versions.find((v) => v.version === packageVersion))
|
if (!versions || versions.some((v) => v.version === packageVersion)) return
|
||||||
return
|
|
||||||
|
|
||||||
context.report({
|
context.report({
|
||||||
node,
|
node,
|
||||||
message: `Inconsistent versions of ${packageName}: ${Array.from(new Set(versions.map((v) => v.version))).join(', ')}`,
|
message: `Inconsistent versions of ${packageName}: ${Array.from(new Set(versions.map((v) => v.version))).join(', ')}`,
|
||||||
suggest: versions.map((version) => ({
|
suggest: versions.map((version) => ({
|
||||||
desc: `Follow the version ${version.version} in ${version.filePath}`,
|
desc: `Follow the version ${version.version} in ${version.filePath}`,
|
||||||
fix: (fixer) =>
|
fix: (fixer) => fixer.replaceText(node.value, `"${version.version}"`),
|
||||||
fixer.replaceText(node.value, `"${version.version}"`),
|
|
||||||
})),
|
})),
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
6354
pnpm-lock.yaml
generated
6354
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -18,10 +18,10 @@ catalog:
|
|||||||
tailwind-variants: 3.2.2
|
tailwind-variants: 3.2.2
|
||||||
tailwindcss: 4.1.18
|
tailwindcss: 4.1.18
|
||||||
tailwindcss-animate: 1.0.7
|
tailwindcss-animate: 1.0.7
|
||||||
tailwindcss-safe-area: 1.2.0
|
tailwindcss-safe-area: 1.3.0
|
||||||
tailwindcss-uikit-colors: 1.0.0
|
tailwindcss-uikit-colors: 1.0.0
|
||||||
typescript: 5.9.3
|
typescript: 5.9.3
|
||||||
zod: 4.2.1
|
zod: 4.3.5
|
||||||
|
|
||||||
onlyBuiltDependencies:
|
onlyBuiltDependencies:
|
||||||
- esbuild
|
- esbuild
|
||||||
|
|||||||
Reference in New Issue
Block a user