Permalink
Find file Copy path
147 lines (146 sloc) 3.93 KB
{
"name": "formik",
"description": "Forms in React, without tears",
"version": "1.4.2",
"license": "MIT",
"author": "Jared Palmer <jared@palmer.net>",
"repository": "jaredpalmer/formik",
"keywords": [
"formik",
"react",
"react-dom",
"form",
"validation",
"forms",
"higher order component",
"hoc"
],
"main": "dist/index.js",
"module": "dist/formik.esm.js",
"typings": "dist/index.d.ts",
"files": [
"dist"
],
"peerDependencies": {
"react": ">=15"
},
"scripts": {
"test": "jest --env=jsdom",
"test:watch": "npm run test -- --watch",
"start": "cp ./index.js ./dist/index.js && cross-env NODE_ENV=development rollup -w -c | tsc -w -p tsconfig.base.json",
"prebuild": "rimraf dist",
"build": "cross-env NODE_ENV=production tsc -p tsconfig.base.json && rollup -c && rimraf compiled && cp ./index.js ./dist/index.js",
"prepublish": "npm run build",
"format": "prettier --trailing-comma es5 --single-quote --write 'src/**/*' 'test/**/*' 'README.md'",
"precommit": "lint-staged",
"storybook": "start-storybook -p 9001",
"addc": "all-contributors add",
"start-website": "cd website && yarn start",
"build-website": "cd website && yarn install && yarn build",
"gen-docs": "all-contributors generate && doctoc README.md",
"size": "size-limit"
},
"dependencies": {
"create-react-context": "^0.2.2",
"deepmerge": "^2.1.1",
"hoist-non-react-statics": "^2.5.5",
"lodash": "^4.17.11",
"lodash-es": "^4.17.11",
"prop-types": "^15.6.1",
"react-fast-compare": "^2.0.1",
"tiny-warning": "^1.0.2",
"tslib": "^1.9.3"
},
"optionalDependencies": {},
"resolutions": {
"@types/react": "^16.7.6",
"@types/react-dom": "^16.0.9"
},
"devDependencies": {
"@babel/core": "^7.1.2",
"@storybook/addon-options": "^3.4.8",
"@storybook/react": "^3.4.0",
"@types/jest": "^22.2.3",
"@types/lodash": "^4.14.119",
"@types/react": "^16.7.6",
"@types/react-dom": "^16.0.9",
"@types/yup": "^0.24.9",
"all-contributors-cli": "^4.4.0",
"awesome-typescript-loader": "^3.4.1",
"babel-plugin-annotate-pure-calls": "^0.4.0",
"babel-plugin-dev-expression": "^0.2.1",
"babel-plugin-transform-rename-import": "^2.3.0",
"cross-env": "5.0.5",
"doctoc": "^1.3.0",
"husky": "0.14.3",
"jest": "^23.1.0",
"jest-cli": "^23.1.0",
"lint-staged": "4.0.2",
"prettier": "1.11.1",
"raw-loader": "^0.5.1",
"react": "^16.6.3",
"react-dom": "^16.6.3",
"react-testing-library": "^5.2.3",
"rimraf": "^2.6.2",
"rollup": "^0.66.4",
"rollup-plugin-babel": "^4.0.3",
"rollup-plugin-commonjs": "^9.1.8",
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-replace": "^2.1.0",
"rollup-plugin-size-snapshot": "^0.7.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"rollup-plugin-uglify": "^6.0.0",
"size-limit": "^0.17.0",
"ts-jest": "^22.4.6",
"tsc-watch": "^1.0.21",
"tslint": "^5.11.0",
"tslint-react": "^3.6.0",
"typescript": "^3.1.6",
"yup": "0.21.3"
},
"lint-staged": {
"**/*.{ts,tsx}": [
"prettier --trailing-comma es5 --single-quote --write",
"git add"
]
},
"prettier": {
"trailingComma": "es5",
"singleQuote": true,
"semi": true
},
"jest": {
"collectCoverageFrom": [
"src/**/*.{ts,tsx}"
],
"transform": {
".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js"
},
"testMatch": [
"<rootDir>/test/**/?(*.)(spec|test).ts?(x)"
],
"transformIgnorePatterns": [
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"json"
]
},
"size-limit": [
{
"path": "./dist/index.js",
"limit": "14 kB"
},
{
"path": "./dist/formik.esm.js",
"limit": "14 kB"
},
{
"path": "./dist/formik.umd.production.js",
"limit": "14 kB"
}
]
}