react-form-with-constraints
Version:
Simple form validation for React
66 lines (65 loc) • 2.21 kB
JSON
{
"name": "react-form-with-constraints",
"version": "0.19.1",
"description": "Simple form validation for React",
"repository": "github:tkrotoff/react-form-with-constraints",
"license": "MIT",
"keywords": [
"react",
"form",
"validation",
"form-validation",
"input-validation",
"constraints",
"html5"
],
"main": "dist/cjs/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist/"
],
"sideEffects": false,
"scripts": {
"clean": "rm -rf dist coverage README.md LICENSE CHANGELOG.md",
"tsc": "tsc",
"build": "npm run build:dts && npm run build:esm && npm run build:cjs",
"build:dts": "tsc --project tsconfig.dist.json --declaration --emitDeclarationOnly --outDir dist",
"build:esm": "tsc --project tsconfig.dist.json --removeComments --outDir dist",
"build:cjs": "tsc --project tsconfig.dist.json --removeComments --module commonjs --outDir dist/cjs",
"build:umd": "npm run build:umd:dev && npm run build:umd:prod",
"build:umd:dev": "NODE_ENV=development rollup --config",
"build:umd:prod": "NODE_ENV=production rollup --config",
"prepublishOnly": "npm run clean && npm run build && npm run build:umd",
"prepack": "cp ../../README.md ../../LICENSE ../../CHANGELOG.md . && jscodeshift --transform=../../removeConsoleTransform.ts dist",
"postpack": "rm README.md LICENSE CHANGELOG.md",
"test": "jest --verbose",
"test:coverage": "jest --coverage"
},
"peerDependencies": {
"react": ">=16"
},
"dependencies": {
"prop-types": ">=15.8.1"
},
"devDependencies": {
"@types/enzyme": "^3.10.12",
"@types/enzyme-adapter-react-16": "^1.0.6",
"@types/jest": "^28.1.6",
"@types/js-beautify": "^1.13.3",
"@types/jscodeshift": "^0.11.5",
"@types/prop-types": "^15.7.5",
"@types/react": "^18.0.15",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.6",
"jest": "^26.6.3",
"js-beautify": "^1.14.4",
"jscodeshift": "^0.13.1",
"react": "^16.14.0",
"rollup": "^2.77.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.32.1",
"ts-jest": "^26.5.6",
"typescript": "^4.7.4"
}
}