Files
2026-04-13 09:30:59 +08:00

75 lines
2.0 KiB
JSON

{
"name": "@inertiajs/react",
"version": "2.3.13",
"license": "MIT",
"description": "The React adapter for Inertia.js",
"contributors": [
"Jonathan Reinink <jonathan@reinink.ca>",
"Sebastian De Deyne <sebastiandedeyne@gmail.com>"
],
"homepage": "https://inertiajs.com/",
"repository": {
"type": "git",
"url": "https://github.com/inertiajs/inertia.git",
"directory": "packages/react"
},
"bugs": {
"url": "https://github.com/inertiajs/inertia/issues"
},
"files": [
"dist",
"types"
],
"type": "module",
"main": "dist/index.js",
"types": "types/index.d.ts",
"exports": {
".": {
"types": "./types/index.d.ts",
"import": "./dist/index.esm.js",
"require": "./dist/index.js"
},
"./server": {
"types": "./types/server.d.ts",
"import": "./dist/server.esm.js",
"require": "./dist/server.js"
}
},
"typesVersions": {
"*": {
"server": [
"types/server.d.ts"
]
}
},
"devDependencies": {
"@types/react": "^19.2.8",
"@types/react-dom": "^19.2.3",
"axios": "^1.13.2",
"es-check": "^9.5.3",
"esbuild": "^0.27.2",
"esbuild-node-externals": "^1.20.1",
"react": "^19.2.3",
"react-dom": "^19.2.3",
"typescript": "^5.9.3"
},
"peerDependencies": {
"react": "^16.9.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^16.9.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
},
"dependencies": {
"@types/lodash-es": "^4.17.12",
"laravel-precognition": "^1.0.1",
"lodash-es": "^4.17.23",
"@inertiajs/core": "2.3.13"
},
"scripts": {
"build": "pnpm clean && ./build.js && tsc",
"build:with-deps": "./build.js --with-deps",
"clean": "rm -rf types && rm -rf dist",
"dev": "pnpx concurrently -c \"#ffcf00,#3178c6\" \"pnpm dev:build\" \"pnpm dev:types\" --names build,types",
"dev:build": "./build.js --watch",
"dev:types": "tsc --watch --preserveWatchOutput",
"es2020-check": "pnpm build:with-deps && es-check es2020 \"dist/index.esm.js\" --checkFeatures --module --noCache --verbose"
}
}