-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
96 lines (96 loc) · 3.14 KB
/
Copy pathpackage.json
File metadata and controls
96 lines (96 loc) · 3.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"name": "@dedalik/use-react",
"version": "1.1.2",
"description": "Collection of React Hook Utilities",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/esm/index.d.ts",
"sideEffects": false,
"exports": {
".": {
"types": "./dist/esm/index.d.ts",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
},
"./*": {
"types": "./dist/esm/hooks/*.d.ts",
"import": "./dist/esm/hooks/*.js",
"require": "./dist/cjs/hooks/*.js"
},
"./package.json": "./package.json"
},
"private": false,
"scripts": {
"build2": "npm run build:types && npm run build:js",
"build": "rm -rf dist && NODE_ENV=production && npm run build:types && npm run build:esm && npm run build:cjs",
"build:js": "rm -rf dist && NODE_ENV=production babel src/hooks --out-dir dist --copy-files --extensions \".ts,.tsx\" --source-maps true",
"build:types": "./node_modules/.bin/tsc --project ./tsconfig.json",
"build:esm": "tsc",
"build:cjs": "tsc --module commonjs --outDir dist/cjs",
"lint": "eslint \"{**/*,*}.{js,ts,jsx,tsx}\"",
"format": "prettier --write \"{src,tests,example/src}/**/*.{js,ts,jsx,tsx}\"",
"format:check": "prettier --check \"{src,tests,example/src}/**/*.{js,ts,jsx,tsx}\"",
"prepare": "npm run build && husky install",
"prepublishOnly": "npm run format:check && npm run lint && npm run test",
"prettier": "npm run format",
"test": "jest --config jestconfig.json",
"test:coverage": "jest --coverage --config jestconfig.json",
"version:bump:patch": "npm version patch --no-git-tag-version",
"version:bump:minor": "npm version minor --no-git-tag-version",
"version:bump:major": "npm version major --no-git-tag-version",
"release:tag": "node ./scripts/release-tag.mjs"
},
"keywords": [
"react",
"hooks",
"utilities",
"collection",
"typescript"
],
"author": "dedalik",
"license": "MIT",
"devDependencies": {
"@babel/cli": "^7.23.4",
"@babel/core": "^7.23.7",
"@babel/preset-env": "^7.23.8",
"@babel/preset-react": "^7.23.3",
"@babel/preset-typescript": "^7.23.3",
"@testing-library/jest-dom": "^6.2.0",
"@testing-library/react": "^14.1.2",
"@types/jest": "^29.5.10",
"@types/react": "^18.2.41",
"@typescript-eslint/eslint-plugin": "^6.13.1",
"@typescript-eslint/parser": "^6.13.1",
"eslint": "^8.55.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.3",
"jest": "^29.7.0",
"jest-canvas-mock": "^2.5.2",
"jest-environment-jsdom": "^30.3.0",
"prettier": "^3.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-test-renderer": "^18.2.0",
"ts-jest": "^29.1.1",
"typescript": "^5.3.2"
},
"repository": {
"type": "git",
"url": "git+https://github.com/dedalik/use-react.git"
},
"peerDependencies": {
"react": ">=17 || >=18.2.0",
"react-dom": ">=17 || >=18.2.0"
},
"files": [
"dist",
"LICENSE",
"README.md"
],
"dependencies": {
"tslib": "^2.8.1"
}
}