0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/apps/admin-x-framework/package.json
Jono M 5e057dee11
Added tests to AdminX framework package (#19022)
refs https://github.com/TryGhost/Product/issues/4159

---

<!-- Leave the line below if you'd like GitHub Copilot to generate a
summary from your commit -->
<!--
copilot:summary
-->
### <samp>🤖[[deprecated]](https://githubnext.com/copilot-for-prs-sunset)
Generated by Copilot at 9e68f4d</samp>

This pull request refactors several components in the `admin-x-settings`
app to use common hooks from the `@tryghost/admin-x-framework` package,
which reduces code duplication and improves consistency. It also updates
the `package.json` file and adds unit tests for the `admin-x-framework`
package, which improves the formatting, testing, and dependency
management. Additionally, it makes some minor changes to the `hooks.ts`,
`FrameworkProvider.tsx`, and `.eslintrc.cjs` files in the
`admin-x-framework` package, which enhance the public API and the
linting configuration.
2023-11-20 11:00:51 +00:00

89 lines
2.2 KiB
JSON

{
"name": "@tryghost/admin-x-framework",
"type": "module",
"version": "0.0.0",
"repository": "https://github.com/TryGhost/Ghost/tree/main/apps/admin-x-framework",
"author": "Ghost Foundation",
"private": true,
"exports": {
".": {
"import": "./es/index.js",
"types": "./types/index.d.ts"
},
"./errors": {
"import": "./es/errors.js",
"types": "./types/errors.d.ts"
},
"./helpers": {
"import": "./es/helpers.js",
"types": "./types/helpers.d.ts"
},
"./hooks": {
"import": "./es/hooks.js",
"types": "./types/hooks.d.ts"
},
"./routing": {
"import": "./es/routing.js",
"types": "./types/routing.d.ts"
},
"./api/*": {
"import": "./es/api/*.js",
"types": "./types/api/*.d.ts"
}
},
"sideEffects": false,
"scripts": {
"build": "vite build && tsc -p tsconfig.declaration.json",
"prepare": "yarn build",
"test": "yarn test:types && yarn test:unit",
"test:types": "tsc --noEmit",
"test:unit": "vitest run --coverage",
"lint:code": "eslint --ext .js,.ts,.cjs,.tsx src/ --cache",
"lint": "yarn lint:code && yarn lint:test",
"lint:test": "eslint -c test/.eslintrc.cjs --ext .js,.ts,.cjs,.tsx test/ --cache"
},
"files": [
"es",
"types"
],
"devDependencies": {
"@testing-library/react": "14.1.0",
"@types/mocha": "10.0.1",
"@vitejs/plugin-react": "4.2.0",
"c8": "8.0.1",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-react-refresh": "0.4.3",
"mocha": "10.2.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"sinon": "17.0.0",
"ts-node": "10.9.1",
"typescript": "5.2.2",
"vite": "4.5.0"
},
"dependencies": {
"@sentry/react": "7.80.1",
"@tanstack/react-query": "4.36.1",
"@tryghost/admin-x-design-system": "0.0.0"
},
"peerDependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"nx": {
"targets": {
"build": {
"dependsOn": [
"build",
{"projects": ["@tryghost/admin-x-design-system"], "target": "build"}
]
},
"test:unit": {
"dependsOn": [
"test:unit",
{"projects": ["@tryghost/admin-x-design-system"], "target": "build"}
]
}
}
}
}