@alessiofrittoli/react-api
Version:
TypeScript React API utilities and Components
129 lines (128 loc) • 4.07 kB
JSON
{
"name": "@alessiofrittoli/react-api",
"version": "1.0.0",
"description": "TypeScript React API utilities and Components",
"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": "NODE_ENV=development tsup --watch",
"build:prod": "NODE_ENV=production tsup",
"build": "pnpm lint && pnpm test:ci && pnpm build:prod",
"lint": "eslint",
"release": "node scripts/publish.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:components": "pnpm test:watch components/*",
"test:utils": "pnpm test:watch utils.test.tsx"
},
"pnpm": {
"onlyBuiltDependencies": [
"esbuild"
]
},
"devDependencies": {
"@alessiofrittoli/node-scripts": "^2.5.0",
"@eslint/compat": "^1.2.9",
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.27.0",
"@jest/globals": "^29.7.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.3.0",
"@types/jest": "^29.5.14",
"@types/node": "^22.15.18",
"@types/react": ">=19",
"@types/react-dom": ">=19",
"concurrently": "^9.1.2",
"dotenv": "^16.5.0",
"eslint": "^9.27.0",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-server-components": "^1.2.0",
"globals": "^16.1.0",
"http-server": "^14.1.1",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"react": ">=19",
"react-dom": ">=19",
"ts-jest": "^29.3.4",
"ts-node": "^10.9.2",
"tsup": "^8.5.0",
"typescript": "^5.8.3",
"typescript-eslint": "^8.32.1"
},
"peerDependencies": {
"@types/react": ">=19",
"@types/react-dom": ">=19",
"react": ">=19",
"react-dom": ">=19"
}
}