139 lines
3.3 KiB
JSON
139 lines
3.3 KiB
JSON
{
|
|
"name": "@tryghost/portal",
|
|
"version": "2.68.10",
|
|
"license": "MIT",
|
|
"repository": "https://github.com/TryGhost/Ghost",
|
|
"author": "Ghost Foundation",
|
|
"files": [
|
|
"umd/",
|
|
"LICENSE",
|
|
"README.md"
|
|
],
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"registry": "https://registry.npmjs.org/"
|
|
},
|
|
"scripts": {
|
|
"dev": "concurrently \"pnpm preview -l silent\" \"pnpm build:watch\"",
|
|
"build": "vite build",
|
|
"build:watch": "vite build --watch",
|
|
"preview": "vite preview",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:ci": "pnpm test --coverage",
|
|
"test:unit": "pnpm test:ci",
|
|
"lint:code": "eslint src test --ext .js,.ts --cache",
|
|
"lint:types": "tsc --noEmit",
|
|
"lint": "pnpm lint:code && pnpm lint:types",
|
|
"preship": "pnpm lint",
|
|
"ship": "node ../../.github/scripts/release-apps.js",
|
|
"prepublishOnly": "pnpm build"
|
|
},
|
|
"eslintConfig": {
|
|
"env": {
|
|
"browser": true
|
|
},
|
|
"globals": {
|
|
"vi": "readonly",
|
|
"describe": "readonly",
|
|
"it": "readonly",
|
|
"test": "readonly",
|
|
"expect": "readonly",
|
|
"beforeEach": "readonly",
|
|
"afterEach": "readonly",
|
|
"beforeAll": "readonly",
|
|
"afterAll": "readonly",
|
|
"require": "readonly"
|
|
},
|
|
"parserOptions": {
|
|
"sourceType": "module",
|
|
"ecmaVersion": 2022
|
|
},
|
|
"extends": [
|
|
"plugin:ghost/browser",
|
|
"plugin:i18next/recommended",
|
|
"plugin:react/recommended",
|
|
"plugin:react/jsx-runtime"
|
|
],
|
|
"plugins": [
|
|
"ghost",
|
|
"i18next"
|
|
],
|
|
"rules": {
|
|
"react/prop-types": "off",
|
|
"ghost/filenames/match-regex": [
|
|
"error",
|
|
"^[a-z0-9.-]+$",
|
|
false
|
|
]
|
|
},
|
|
"settings": {
|
|
"react": {
|
|
"version": "detect"
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": [
|
|
"*.ts",
|
|
"*.tsx"
|
|
],
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"sourceType": "module",
|
|
"ecmaVersion": 2022,
|
|
"ecmaFeatures": {
|
|
"jsx": true
|
|
},
|
|
"project": "./tsconfig.json"
|
|
},
|
|
"extends": [
|
|
"plugin:@typescript-eslint/recommended"
|
|
],
|
|
"plugins": [
|
|
"@typescript-eslint"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@babel/eslint-parser": "7.28.4",
|
|
"@doist/react-interpolate": "2.2.1",
|
|
"@sentry/react": "7.120.4",
|
|
"@testing-library/jest-dom": "6.9.1",
|
|
"@testing-library/react": "12.1.5",
|
|
"@testing-library/user-event": "14.6.1",
|
|
"@tryghost/i18n": "workspace:*",
|
|
"@vitejs/plugin-react": "4.7.0",
|
|
"@vitest/coverage-v8": "3.2.4",
|
|
"@vitest/ui": "3.2.4",
|
|
"concurrently": "8.2.2",
|
|
"cross-fetch": "4.1.0",
|
|
"dompurify": "3.3.1",
|
|
"eslint": "catalog:",
|
|
"eslint-plugin-i18next": "6.1.3",
|
|
"jsdom": "28.1.0",
|
|
"react": "17.0.2",
|
|
"react-dom": "17.0.2",
|
|
"vite": "5.4.21",
|
|
"vite-plugin-css-injected-by-js": "3.5.2",
|
|
"vite-plugin-svgr": "3.3.0",
|
|
"vitest": "3.2.4"
|
|
},
|
|
"dependencies": {
|
|
"@tryghost/debug": "0.1.40"
|
|
}
|
|
}
|