2023-11-14 16:50:08 +03:00
|
|
|
{
|
|
|
|
"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": {
|
|
|
|
".": {
|
2023-11-22 16:39:32 +03:00
|
|
|
"import": "./dist/index.js",
|
|
|
|
"require": "./dist/index.cjs",
|
2023-11-20 14:00:51 +03:00
|
|
|
"types": "./types/index.d.ts"
|
2023-11-14 16:50:08 +03:00
|
|
|
},
|
|
|
|
"./errors": {
|
2023-11-22 16:39:32 +03:00
|
|
|
"import": "./dist/errors.js",
|
|
|
|
"require": "./dist/errors.cjs",
|
2023-11-20 14:00:51 +03:00
|
|
|
"types": "./types/errors.d.ts"
|
2023-11-14 16:50:08 +03:00
|
|
|
},
|
|
|
|
"./helpers": {
|
2023-11-22 16:39:32 +03:00
|
|
|
"import": "./dist/helpers.js",
|
|
|
|
"require": "./dist/helpers.cjs",
|
2023-11-20 14:00:51 +03:00
|
|
|
"types": "./types/helpers.d.ts"
|
2023-11-14 16:50:08 +03:00
|
|
|
},
|
|
|
|
"./hooks": {
|
2023-11-22 16:39:32 +03:00
|
|
|
"import": "./dist/hooks.js",
|
|
|
|
"require": "./dist/hooks.cjs",
|
2023-11-20 14:00:51 +03:00
|
|
|
"types": "./types/hooks.d.ts"
|
2023-11-14 16:50:08 +03:00
|
|
|
},
|
|
|
|
"./routing": {
|
2023-11-22 16:39:32 +03:00
|
|
|
"import": "./dist/routing.js",
|
|
|
|
"require": "./dist/routing.cjs",
|
2023-11-20 14:00:51 +03:00
|
|
|
"types": "./types/routing.d.ts"
|
2023-11-14 16:50:08 +03:00
|
|
|
},
|
|
|
|
"./api/*": {
|
2023-11-22 16:39:32 +03:00
|
|
|
"import": "./dist/api/*.js",
|
|
|
|
"require": "./dist/api/*.cjs",
|
2023-11-20 14:00:51 +03:00
|
|
|
"types": "./types/api/*.d.ts"
|
2023-11-20 16:30:15 +03:00
|
|
|
},
|
|
|
|
"./vite": {
|
2023-11-22 16:39:32 +03:00
|
|
|
"import": "./dist/vite.js",
|
|
|
|
"require": "./dist/vite.cjs",
|
2023-11-20 16:30:15 +03:00
|
|
|
"types": "./types/vite.d.ts"
|
2023-11-22 16:39:32 +03:00
|
|
|
},
|
|
|
|
"./playwright": {
|
|
|
|
"import": "./dist/playwright.js",
|
|
|
|
"require": "./dist/playwright.cjs",
|
|
|
|
"types": "./types/playwright.d.ts"
|
|
|
|
},
|
|
|
|
"./test/*": {
|
|
|
|
"import": "./dist/test/*.js",
|
|
|
|
"require": "./dist/test/*.cjs",
|
|
|
|
"types": "./types/test/*.d.ts"
|
2023-11-14 16:50:08 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"sideEffects": false,
|
|
|
|
"scripts": {
|
2023-12-13 11:55:58 +03:00
|
|
|
"build": "concurrently \"vite build\" \"tsc -p tsconfig.declaration.json\"",
|
2023-11-14 16:50:08 +03:00
|
|
|
"prepare": "yarn build",
|
2023-11-20 14:00:51 +03:00
|
|
|
"test": "yarn test:types && yarn test:unit",
|
2023-11-14 16:50:08 +03:00
|
|
|
"test:types": "tsc --noEmit",
|
2023-11-20 14:00:51 +03:00
|
|
|
"test:unit": "vitest run --coverage",
|
2023-11-14 16:50:08 +03:00
|
|
|
"lint:code": "eslint --ext .js,.ts,.cjs,.tsx src/ --cache",
|
2023-11-20 14:00:51 +03:00
|
|
|
"lint": "yarn lint:code && yarn lint:test",
|
2023-11-14 16:50:08 +03:00
|
|
|
"lint:test": "eslint -c test/.eslintrc.cjs --ext .js,.ts,.cjs,.tsx test/ --cache"
|
|
|
|
},
|
|
|
|
"files": [
|
|
|
|
"es",
|
|
|
|
"types"
|
|
|
|
],
|
|
|
|
"devDependencies": {
|
2023-11-20 14:00:51 +03:00
|
|
|
"@testing-library/react": "14.1.0",
|
|
|
|
"@types/mocha": "10.0.1",
|
2023-11-14 16:50:08 +03:00
|
|
|
"c8": "8.0.1",
|
|
|
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
|
|
"eslint-plugin-react-refresh": "0.4.3",
|
|
|
|
"mocha": "10.2.0",
|
2023-11-20 14:00:51 +03:00
|
|
|
"react": "18.2.0",
|
|
|
|
"react-dom": "18.2.0",
|
2023-11-14 16:50:08 +03:00
|
|
|
"sinon": "17.0.0",
|
2023-12-08 17:18:56 +03:00
|
|
|
"ts-node": "10.9.2",
|
2023-12-06 22:57:27 +03:00
|
|
|
"typescript": "5.3.3"
|
2023-11-14 16:50:08 +03:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2023-12-10 23:04:32 +03:00
|
|
|
"@sentry/react": "7.86.0",
|
2023-11-14 16:50:08 +03:00
|
|
|
"@tanstack/react-query": "4.36.1",
|
2023-11-20 16:30:15 +03:00
|
|
|
"@tryghost/admin-x-design-system": "0.0.0",
|
2023-12-13 10:24:20 +03:00
|
|
|
"@types/react": "18.2.45",
|
2023-11-22 07:06:50 +03:00
|
|
|
"@types/react-dom": "18.2.17",
|
2023-12-04 21:17:20 +03:00
|
|
|
"@vitejs/plugin-react": "4.2.1",
|
2023-11-20 16:30:15 +03:00
|
|
|
"react": "^18.2.0",
|
|
|
|
"react-dom": "^18.2.0",
|
2023-12-13 11:11:05 +03:00
|
|
|
"vite": "4.5.1",
|
2023-11-20 16:30:15 +03:00
|
|
|
"vite-plugin-css-injected-by-js": "^3.3.0",
|
|
|
|
"vite-plugin-svgr": "3.3.0",
|
2023-12-13 11:11:05 +03:00
|
|
|
"vitest": "0.34.3"
|
2023-11-14 16:50:08 +03:00
|
|
|
},
|
|
|
|
"peerDependencies": {
|
|
|
|
"react": "^18.2.0",
|
|
|
|
"react-dom": "^18.2.0"
|
|
|
|
},
|
|
|
|
"nx": {
|
|
|
|
"targets": {
|
|
|
|
"build": {
|
|
|
|
"dependsOn": [
|
|
|
|
"build",
|
|
|
|
{"projects": ["@tryghost/admin-x-design-system"], "target": "build"}
|
|
|
|
]
|
2023-11-20 14:00:51 +03:00
|
|
|
},
|
|
|
|
"test:unit": {
|
|
|
|
"dependsOn": [
|
|
|
|
"test:unit",
|
|
|
|
{"projects": ["@tryghost/admin-x-design-system"], "target": "build"}
|
|
|
|
]
|
2023-11-14 16:50:08 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|