Update Relay's GraphQL scalar types by adding explicit type definitions in package.json. This change: - Defines custom scalar types for Datetime and CursorKey as strings - Updates generated TypeScript files to use string types instead of any - Improves type safety across the application by replacing any with proper types This change provides better TypeScript type checking and reduces implicit any usage throughout the codebase. Signed-off-by: gearnode <bryan@frimin.fr>
81 lines
2.5 KiB
JSON
81 lines
2.5 KiB
JSON
{
|
|
"name": "@probo/console",
|
|
"version": "0.0.1",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "npx node --env-file .env.development scripts/esbuild.mjs watch",
|
|
"build": "npx node --env-file .env.production scripts/esbuild.mjs",
|
|
"relay": "npx relay-compiler --output quiet-with-errors",
|
|
"relay:watch": "npx relay-compiler --output quiet-with-errors --watch",
|
|
"lint": "eslint src --ext .ts,.tsx",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@radix-ui/react-avatar": "^1.1.3",
|
|
"@radix-ui/react-checkbox": "^1.0.4",
|
|
"@radix-ui/react-collapsible": "^1.1.3",
|
|
"@radix-ui/react-dialog": "^1.1.6",
|
|
"@radix-ui/react-dropdown-menu": "^2.1.6",
|
|
"@radix-ui/react-label": "^2.0.2",
|
|
"@radix-ui/react-progress": "^1.1.2",
|
|
"@radix-ui/react-radio-group": "^1.1.3",
|
|
"@radix-ui/react-select": "^2.0.0",
|
|
"@radix-ui/react-separator": "^1.1.2",
|
|
"@radix-ui/react-slot": "^1.1.2",
|
|
"@radix-ui/react-toast": "^1.2.6",
|
|
"@radix-ui/react-tooltip": "^1.1.8",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"fuse.js": "^7.1.0",
|
|
"lucide-react": "^0.475.0",
|
|
"posthog-js": "^1.215.1",
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"react-helmet-async": "^2.0.5",
|
|
"react-relay": "^18.2.0",
|
|
"react-router": "^7.1.5",
|
|
"relay-runtime": "^18.2.0",
|
|
"tailwind-merge": "^3.0.1",
|
|
"tailwindcss-animate": "^1.0.7"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.26.7",
|
|
"@babel/preset-env": "^7.26.7",
|
|
"@babel/preset-typescript": "^7.26.0",
|
|
"@deanc/esbuild-plugin-postcss": "^1.0.2",
|
|
"@eslint/js": "^9.21.0",
|
|
"@probo/tsconfig": "^0.0.1",
|
|
"@types/babel-core": "^6.25.10",
|
|
"@types/node": "^22.13.0",
|
|
"@types/react": "^18.3.18",
|
|
"@types/react-dom": "^18.3.5",
|
|
"@types/react-relay": "^18.2.0",
|
|
"@types/relay-runtime": "^18.2.5",
|
|
"autoprefixer": "^10.4.20",
|
|
"babel-plugin-relay": "^18.2.0",
|
|
"esbuild": "^0.25.0",
|
|
"eslint": "^9.21.0",
|
|
"eslint-plugin-react": "^7.37.4",
|
|
"globals": "^16.0.0",
|
|
"relay-compiler": "^18.2.0",
|
|
"tailwindcss": "^3.4.17",
|
|
"typescript": "^5.7.3",
|
|
"typescript-eslint": "^8.25.0"
|
|
},
|
|
"relay": {
|
|
"src": "src",
|
|
"language": "typescript",
|
|
"schema": "../../pkg/api/console/v1/schema.graphql",
|
|
"noFutureProofEnums": true,
|
|
"customScalarTypes": {
|
|
"Datetime": "string",
|
|
"CursorKey": "string"
|
|
},
|
|
"excludes": [
|
|
"**/node_modules/**",
|
|
"**/__mocks__/**",
|
|
"**/__generated__/**"
|
|
]
|
|
}
|
|
}
|