92 lines
1.9 KiB
JSON
92 lines
1.9 KiB
JSON
{
|
|
"name": "@tryghost/announcement-bar",
|
|
"version": "1.1.17",
|
|
"license": "MIT",
|
|
"repository": "https://github.com/TryGhost/Ghost",
|
|
"author": "Ghost Foundation",
|
|
"files": [
|
|
"umd/",
|
|
"LICENSE",
|
|
"README.md"
|
|
],
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"registry": "https://registry.npmjs.org/"
|
|
},
|
|
"dependencies": {
|
|
"@tryghost/content-api": "1.12.6",
|
|
"react": "17.0.2",
|
|
"react-dom": "17.0.2"
|
|
},
|
|
"scripts": {
|
|
"dev": "concurrently \"vite preview -l silent\" \"pnpm build:watch\"",
|
|
"build": "vite build",
|
|
"build:watch": "vite build --watch",
|
|
"test": "vitest run",
|
|
"test:ci": "pnpm test --coverage",
|
|
"test:unit": "pnpm test:ci",
|
|
"lint": "eslint src --ext .js --cache",
|
|
"preship": "pnpm lint",
|
|
"ship": "node ../../.github/scripts/release-apps.js",
|
|
"prepublishOnly": "pnpm build"
|
|
},
|
|
"eslintConfig": {
|
|
"env": {
|
|
"browser": true,
|
|
"jest": true
|
|
},
|
|
"parserOptions": {
|
|
"sourceType": "module",
|
|
"ecmaVersion": 2022
|
|
},
|
|
"extends": [
|
|
"plugin:ghost/browser",
|
|
"plugin:react/recommended"
|
|
],
|
|
"plugins": [
|
|
"ghost"
|
|
],
|
|
"rules": {
|
|
"react/prop-types": "off",
|
|
"ghost/filenames/match-regex": [
|
|
"error",
|
|
"^[a-z0-9.-]+$",
|
|
false
|
|
]
|
|
},
|
|
"settings": {
|
|
"react": {
|
|
"version": "detect"
|
|
}
|
|
}
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
},
|
|
"jest": {
|
|
"coverageReporters": [
|
|
"cobertura",
|
|
"text-summary",
|
|
"html"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@vitejs/plugin-react": "4.7.0",
|
|
"@vitest/coverage-v8": "~3.2.4",
|
|
"cross-fetch": "4.1.0",
|
|
"jsdom": "28.1.0",
|
|
"vite": "5.4.21",
|
|
"vite-plugin-svgr": "3.3.0",
|
|
"vitest": "3.2.4"
|
|
}
|
|
}
|