{ "name": "@tryghost/admin", "version": "private", "private": true, "type": "module", "scripts": { "dev": "vite", "build": "tsc -b && vite build && pnpm assemble:assets", "lint": "eslint .", "preview": "vite preview", "test": "pnpm test:types && pnpm test:unit", "test:unit": "vitest run", "test:acceptance": "vitest run -c vitest.acceptance.config.ts", "test:acceptance:watch": "vitest -c vitest.acceptance.config.ts", "test:types": "tsc -b", "typecheck": "tsc -b", "assemble:assets": "node ../../tools/scripts/build/assemble-admin-assets.ts" }, "dependencies": { "@codemirror/lang-css": "catalog:", "@codemirror/lang-html": "catalog:", "@codemirror/lang-javascript": "catalog:", "@codemirror/lang-json": "catalog:", "@codemirror/lang-markdown": "catalog:", "@codemirror/lang-yaml": "catalog:", "@codemirror/search": "catalog:", "@codemirror/state": "catalog:", "@codemirror/theme-one-dark": "catalog:", "@dnd-kit/core": "catalog:", "@dnd-kit/sortable": "catalog:", "@dnd-kit/utilities": "catalog:", "@floating-ui/react-dom": "catalog:", "@quilted/threads": "catalog:", "@radix-ui/react-focus-guards": "catalog:", "@radix-ui/react-focus-scope": "catalog:", "@sentry/react": "catalog:", "@svg-maps/world": "2.0.0", "@tanstack/react-query": "catalog:", "@tanstack/react-virtual": "catalog:", "@tryghost/activitypub": "workspace:*", "@tryghost/admin-x-framework": "workspace:*", "@tryghost/app-contracts": "workspace:*", "@tryghost/checkout": "workspace:*", "@tryghost/color-utils": "catalog:", "@tryghost/custom-fonts": "catalog:", "@tryghost/i18n": "workspace:*", "@tryghost/kg-clean-basic-html": "workspace:*", "@tryghost/kg-converters": "workspace:*", "@tryghost/kg-unsplash-selector": "workspace:*", "@tryghost/koenig-lexical": "workspace:*", "@tryghost/metafield-types": "workspace:*", "@tryghost/nql": "catalog:", "@tryghost/nql-lang": "catalog:", "@tryghost/nql-string": "workspace:*", "@tryghost/shade": "workspace:*", "@tryghost/string": "catalog:", "@tryghost/timezone-data": "catalog:", "@uiw/react-codemirror": "catalog:", "@xyflow/react": "12.12.1", "aria-hidden": "catalog:", "clsx": "catalog:", "dequal": "catalog:", "dompurify": "catalog:", "flexsearch": "catalog:", "i18n-iso-countries": "7.14.0", "jszip": "3.10.2", "lucide-react": "catalog:", "luxon": "catalog:", "mingo": "catalog:", "moment": "catalog:", "moment-timezone": "catalog:", "papaparse": "5.5.4", "react": "catalog:", "react-dom": "catalog:", "react-router": "catalog:", "react-svg-map": "2.2.0", "semver": "catalog:", "sonner": "catalog:", "temporal-polyfill": "catalog:", "use-debounce": "10.1.1", "validator": "catalog:", "zod": "catalog:" }, "devDependencies": { "@internal/cfg-eslint": "workspace:*", "@internal/cfg-eslint-react": "workspace:*", "@internal/cfg-test-workers": "workspace:*", "@sentry/vite-plugin": "catalog:", "@tailwindcss/vite": "catalog:", "@testing-library/dom": "catalog:", "@testing-library/jest-dom": "catalog:", "@testing-library/react": "catalog:", "@tryghost/app-sdk": "workspace:*", "@tryghost/test-data": "workspace:*", "@types/node": "catalog:", "@types/papaparse": "5.5.2", "@types/react": "catalog:", "@types/react-dom": "catalog:", "@types/react-svg-map": "2.1.4", "@types/semver": "catalog:", "@types/validator": "catalog:", "@typescript/native": "catalog:", "@vitejs/plugin-react": "catalog:", "@vitest/browser-playwright": "catalog:", "d3-geo": "catalog:", "eslint": "catalog:", "eslint-plugin-no-relative-import-paths": "1.7.3", "jsdom": "catalog:", "msw": "catalog:", "sirv": "catalog:", "tailwindcss": "catalog:", "typescript": "catalog:", "typescript-eslint": "catalog:", "vite": "catalog:", "vite-plugin-svgr": "catalog:", "vitest": "catalog:", "vitest-browser-react": "catalog:" }, "nx": { "namedInputs": { "cardAssets": [ "{workspaceRoot}/ghost/core/frontend/src/cards/**/*" ], "reactTests": [ "default", "cardAssets", "{workspaceRoot}/tools/scripts/build/hash-vite-env.ts", { "runtime": "node tools/scripts/build/hash-vite-env.ts --directory=clients/admin" }, { "runtime": "node -v" }, { "runtime": "node -p \"process.platform + ':' + process.arch\"" }, { "runtime": "node -p \"Intl.DateTimeFormat().resolvedOptions().timeZone\"" }, { "env": "CI" }, { "env": "GITHUB_ACTIONS" }, { "env": "NODE_ENV" }, { "env": "TZ" }, { "env": "LANG" }, { "env": "LC_ALL" }, { "env": "GHOST_URL" }, { "env": "GHOST_CDN_URL" }, { "env": "VITE_TEST" }, { "env": "PLAYWRIGHT_BROWSERS_PATH" } ] }, "tags": [ "playwright" ], "targets": { "test": { "executor": "nx:noop", "cache": false, "dependsOn": [ "test:types", "test:unit" ] }, "test:unit": { "inputs": [ "reactTests", "^default" ], "dependsOn": [ { "projects": [ "@tryghost/kg-unsplash-selector", "@tryghost/koenig-lexical" ], "target": "build" } ] }, "test:acceptance": { "cache": true, "inputs": [ "reactTests", "^default" ], "outputs": [ "{projectRoot}/test-results/acceptance.json" ], "dependsOn": [ { "projects": [ "@tryghost/kg-unsplash-selector", "@tryghost/koenig-lexical" ], "target": "build" } ] }, "test:types": { "inputs": [ "default", "^default" ], "outputs": [] }, "dev": { "continuous": true, "executor": "nx:run-commands", "options": { "cwd": "clients/admin", "command": "vite" }, "dependsOn": [ "ghost-monorepo:docker:up", "build:dev" ] }, "dev:host": { "continuous": true, "executor": "nx:run-commands", "options": { "cwd": "clients/admin", "command": "vite optimize --logLevel error && vite", "envFile": ".ghost-dev.env" }, "dependsOn": [ "ghost-monorepo:dev:env", "build:dev" ] }, "build:dev": { "dependsOn": [ { "projects": [ "@tryghost/kg-unsplash-selector", "@tryghost/koenig-lexical" ], "target": "build" } ] }, "build": { "inputs": [ { "env": "GHOST_CDN_URL" }, { "env": "IS_SHIPPING" }, { "env": "GHOST_BUILD_VERSION" }, "default", "cardAssets", "{workspaceRoot}/tools/scripts/build/assemble-admin-assets.ts", "{workspaceRoot}/tools/scripts/build/admin-assets.ts", "^default" ], "outputs": [ "{projectRoot}/dist", "{workspaceRoot}/ghost/core/built/admin", "{workspaceRoot}/ghost/core/built/embed-renderer" ], "dependsOn": [ "^build" ] }, "lint": { "dependsOn": [ "^build" ] }, "assemble:assets": { "cache": false, "outputs": [ "{projectRoot}/dist", "{workspaceRoot}/ghost/core/built/admin", "{workspaceRoot}/ghost/core/built/embed-renderer" ] } } } }