UNPKG

@alessiofrittoli/react-api

Version:
124 lines (123 loc) 3.98 kB
{ "name": "@alessiofrittoli/react-api", "version": "1.2.0", "description": "TypeScript React API utilities", "author": { "name": "Alessio Frittoli", "email": "info@alessiofrittoli.it", "url": "https://alessiofrittoli.it" }, "license": "MIT", "funding": [ { "type": "github", "url": "https://github.com/sponsors/alessiofrittoli" } ], "keywords": [ "react", "react-utilities" ], "homepage": "https://github.com/alessiofrittoli/react-api#readme", "bugs": { "url": "https://github.com/alessiofrittoli/react-api/issues", "email": "info@alessiofrittoli.it" }, "repository": { "type": "git", "url": "git+https://github.com/alessiofrittoli/react-api.git" }, "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "files": [ "dist" ], "exports": { ".": { "import": { "types": "./dist/index.d.mts", "default": "./dist/index.mjs" }, "require": { "types": "./dist/index.d.ts", "default": "./dist/index.js" } }, "./utils": { "import": { "types": "./dist/utils.d.mts", "default": "./dist/utils.mjs" }, "require": { "types": "./dist/utils.d.ts", "default": "./dist/utils.js" } } }, "sideEffects": false, "scripts": { "//1a": "*********************************************************************", "//1b": "******************** DEV - BUILD - LINT - RELEASE *******************", "//1c": "*********************************************************************", "dev": "cross-env NODE_ENV=development tsup --watch", "build:prod": "cross-env NODE_ENV=production tsup", "build": "pnpm lint && pnpm test:ci && pnpm build:prod", "lint": "eslint", "release": "node scripts/release.js --verbose --npm", "//2a": "*********************************************************************", "//2b": "***************************** UNIT TESTS ****************************", "//2c": "*********************************************************************", "test": "jest --verbose", "test:watch": "jest --watchAll --verbose", "test:ci": "jest --ci --verbose", "//3a": "*********************************************************************", "//3b": "************************ UNIT TESTS COVERAGE ************************", "//3c": "*********************************************************************", "test:coverage": "pnpm test:watch --coverage", "test:coverage:ci": "pnpm test:ci --coverage", "test:serve-coverage": "http-server ./coverage/lcov-report --gzip true -p 0 -o --silent", "test:coverage:serve": "concurrently --prefix none --kill-others \"pnpm test:coverage\" \"pnpm test:serve-coverage\"", "//4a": "*********************************************************************", "//4b": "************************ TARGETED UNIT TESTS ************************", "//4c": "*********************************************************************", "test:utils": "pnpm test:watch utils.test.tsx" }, "peerDependencies": { "@types/react": ">=19", "@types/react-dom": ">=19", "react": ">=19", "react-dom": ">=19" }, "devDependencies": { "@alessiofrittoli/node-scripts": "^3.2.0", "@eslint/compat": "^2.0.0", "@eslint/eslintrc": "^3.3.3", "@eslint/js": "^9.39.1", "@jest/globals": "^30.2.0", "@testing-library/jest-dom": "^6.9.1", "@testing-library/react": "^16.3.0", "@types/jest": "^30.0.0", "@types/node": "^24.10.1", "@types/react": ">=19", "@types/react-dom": ">=19", "concurrently": "^9.2.1", "cross-env": "^10.1.0", "dotenv": "^17.2.3", "eslint": "^9.39.1", "eslint-plugin-react": "^7.37.5", "eslint-plugin-react-hooks": "^7.0.1", "eslint-plugin-react-server-components": "^1.2.0", "globals": "^16.5.0", "http-server": "^14.1.1", "jest": "^30.2.0", "jest-environment-jsdom": "^30.2.0", "react": ">=19", "react-dom": ">=19", "ts-jest": "^29.4.6", "ts-node": "^10.9.2", "tsup": "^8.5.1", "typescript": "^5.9.3", "typescript-eslint": "^8.48.1" } }