UNPKG

3.42 kBJSONView Raw
1{
2 "name": "react-swipeable",
3 "version": "7.0.1",
4 "description": "React Swipe event handler hook",
5 "source": "./src/index.ts",
6 "main": "./lib/index.js",
7 "module": "es/index.js",
8 "types": "./es/index.d.ts",
9 "unpkg": "dist/react-swipeable.js",
10 "sideEffects": false,
11 "scripts": {
12 "build": "yarn run build:types && yarn run build:outputs",
13 "build:outputs": "rollup -c",
14 "build:types": "tsc --project tsconfig.types.json",
15 "check:ci": "yarn run prettier && yarn run lint && yarn run test:unit",
16 "clean": "rimraf lib dist es",
17 "examples:build": "cd ./examples && yarn && yarn build",
18 "examples:build:publish": "yarn run examples:build && rimraf examples/node_modules && gh-pages -d examples",
19 "prettier": "prettier --check src __tests__",
20 "format": "prettier --write src __tests__",
21 "lint": "eslint . --ext .ts,.tsx",
22 "prebuild": "yarn run clean",
23 "prepare": "yarn run build",
24 "pretest": "yarn run prettier && yarn run lint",
25 "preversion": "yarn test",
26 "size": "size-limit",
27 "start:examples": "cd ./examples && yarn && yarn start",
28 "start:examples:local": "cd ./examples && yarn && yarn start:dev:local",
29 "test": "yarn run test:unit && yarn run build && yarn run size",
30 "test:unit": "jest",
31 "test:unit:watch": "jest --watch",
32 "test:cover": "jest --coverage"
33 },
34 "size-limit": [
35 {
36 "limit": "1.7 KB",
37 "path": "lib/index.js"
38 },
39 {
40 "limit": "1.8 KB",
41 "path": "dist/react-swipeable.js"
42 },
43 {
44 "limit": "1.8 KB",
45 "path": "es/index.js"
46 }
47 ],
48 "jest": {
49 "preset": "ts-jest",
50 "testEnvironment": "jsdom",
51 "testMatch": [
52 "<rootDir>/__tests__/**/*.(test|spec).ts?(x)"
53 ]
54 },
55 "keywords": [
56 "react swipe",
57 "react touch",
58 "react hook",
59 "touch",
60 "swipe",
61 "swipeable",
62 "react",
63 "hook"
64 ],
65 "authors": [
66 "Josh Perez <josh@goatslacker.com> (https://github.com/goatslacker)",
67 "Brian Emil Hartz <brianhartz@gmail.com> (https://github.com/hartzis)"
68 ],
69 "repository": {
70 "type": "git",
71 "url": "https://github.com/FormidableLabs/react-swipeable.git"
72 },
73 "bugs": {
74 "url": "https://github.com/FormidableLabs/react-swipeable/issues"
75 },
76 "homepage": "https://github.com/FormidableLabs/react-swipeable",
77 "files": [
78 "dist",
79 "es",
80 "lib",
81 "src"
82 ],
83 "license": "MIT",
84 "devDependencies": {
85 "@changesets/cli": "^2.26.1",
86 "@rollup/plugin-typescript": "^8.3.0",
87 "@size-limit/preset-small-lib": "^7.0.8",
88 "@svitejs/changesets-changelog-github-compact": "^0.1.1",
89 "@testing-library/react": "^13.0.1",
90 "@types/jest": "^27.4.1",
91 "@types/react": "^18.0.8",
92 "@types/react-dom": "^18.0.0",
93 "@typescript-eslint/eslint-plugin": "^5.20.0",
94 "@typescript-eslint/parser": "^5.20.0",
95 "coveralls": "^3.0.3",
96 "eslint": "^7.18.0",
97 "eslint-config-prettier": "^6.11.0",
98 "eslint-plugin-react": "^7.29.4",
99 "eslint-plugin-react-hooks": "^4.4.0",
100 "gh-pages": "^3.0.0",
101 "jest": "^27.5.1",
102 "prettier": "^2.0.5",
103 "react": "^18.1.0",
104 "react-dom": "^18.1.0",
105 "rimraf": "^3.0.2",
106 "rollup": "^2.60.0",
107 "size-limit": "^7.0.8",
108 "ts-jest": "^27.1.4",
109 "typescript": "^4.6.3"
110 },
111 "dependencies": {},
112 "peerDependencies": {
113 "react": "^16.8.3 || ^17 || ^18"
114 },
115 "publishConfig": {
116 "provenance": true
117 }
118}