c97cc08455
refs https://github.com/TryGhost/DevOps/issues/50 - `react-app` comes from `eslint-config-react-app`, which is a CRA package - we're moving away from that so this commit switches the linting over to a more recently updated plugin - once that was removed, we started using a newer version of `@typescript-eslint/eslint-plugin`, so there were plenty of updates/exemptions to make
94 lines
2.2 KiB
JSON
94 lines
2.2 KiB
JSON
{
|
|
"name": "@tryghost/sodo-search",
|
|
"version": "1.1.0",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/TryGhost/Ghost.git"
|
|
},
|
|
"author": "Ghost Foundation",
|
|
"files": [
|
|
"umd/",
|
|
"LICENSE",
|
|
"README.md"
|
|
],
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"registry": "https://registry.npmjs.org/"
|
|
},
|
|
"dependencies": {
|
|
"@tryghost/content-api": "1.11.7",
|
|
"flexsearch": "0.7.31",
|
|
"react": "17.0.2",
|
|
"react-dom": "17.0.2"
|
|
},
|
|
"scripts": {
|
|
"dev": "concurrently \"vite preview -l silent\" \"yarn build:watch\" \"yarn tailwind\"",
|
|
"build": "vite build && yarn tailwind:base",
|
|
"build:watch": "vite build --watch",
|
|
"tailwind": "yarn tailwind:base --watch ",
|
|
"tailwind:base": "npx tailwindcss -i ./src/index.css -o ./umd/main.css --minify",
|
|
"test": "vitest run",
|
|
"test:ci": "yarn test --coverage",
|
|
"test:unit": "yarn test:ci",
|
|
"lint": "eslint src --ext .js --cache",
|
|
"preship": "yarn lint",
|
|
"ship": "STATUS=$(git status --porcelain); echo $STATUS; if [ -z \"$STATUS\" ]; then yarn version; fi",
|
|
"postship": "git push ${GHOST_UPSTREAM:-origin} --follow-tags && npm publish",
|
|
"prepublishOnly": "yarn 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"
|
|
},
|
|
"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": {
|
|
"@testing-library/jest-dom": "5.16.5",
|
|
"@testing-library/react": "12.1.5",
|
|
"@vitejs/plugin-react": "4.0.3",
|
|
"nock": "13.1.2",
|
|
"vite": "4.4.7",
|
|
"vite-plugin-svgr": "3.2.0",
|
|
"vitest": "0.33.0"
|
|
}
|
|
}
|