|
3 | 3 | "version": "1.2.5", |
4 | 4 | "description": "The same useRef, but with callback", |
5 | 5 | "main": "dist/es5/index.js", |
| 6 | + "jsnext:main": "dist/es2015/index.js", |
| 7 | + "module": "dist/es2015/index.js", |
| 8 | + "types": "dist/es5/index.d.ts", |
| 9 | + "module:es2019": "dist/es2019/index.js", |
6 | 10 | "sideEffects": false, |
7 | 11 | "scripts": { |
8 | | - "test": "ts-react-toolbox test", |
9 | | - "bootstrap": "ts-react-toolbox init", |
10 | | - "dev": "ts-react-toolbox dev", |
11 | | - "test:ci": "ts-react-toolbox test --runInBand --coverage", |
12 | | - "build": "ts-react-toolbox build", |
13 | | - "prepublish": "yarn build", |
14 | | - "release": "ts-react-toolbox release", |
15 | | - "lint": "ts-react-toolbox lint", |
16 | | - "static": "ts-react-toolbox publish", |
17 | | - "format": "ts-react-toolbox format", |
18 | | - "analyze": "ts-react-toolbox analyze" |
| 12 | + "dev": "lib-builder dev", |
| 13 | + "test": "jest", |
| 14 | + "test:ci": "jest --runInBand --coverage", |
| 15 | + "build": "lib-builder build && yarn size:report", |
| 16 | + "release": "yarn build && yarn test", |
| 17 | + "size": "npx size-limit", |
| 18 | + "size:report": "npx size-limit --json > .size.json", |
| 19 | + "lint": "lib-builder lint", |
| 20 | + "format": "lib-builder format", |
| 21 | + "update": "lib-builder update", |
| 22 | + "prepublish": "yarn build && yarn changelog", |
| 23 | + "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s", |
| 24 | + "changelog:rewrite": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0" |
19 | 25 | }, |
20 | 26 | "repository": "https://github.com/theKashey/use-callback-ref/", |
21 | 27 | "author": "theKashey <thekashey@gmail.com>", |
22 | 28 | "license": "MIT", |
23 | | - "dependencies": {}, |
| 29 | + "dependencies": { |
| 30 | + "tslib": "^2.0.0" |
| 31 | + }, |
24 | 32 | "devDependencies": { |
25 | | - "ts-react-toolbox": "^0.2.11" |
| 33 | + "@theuiteam/lib-builder": "^0.1.4", |
| 34 | + "@size-limit/preset-small-lib": "^2.1.6" |
26 | 35 | }, |
27 | 36 | "peerDependencies": { |
28 | | - "react": "^16.8.0 || ^17.0.0", |
29 | | - "@types/react": "^16.8.0 || ^17.0.0" |
| 37 | + "react": "^16.8.0 || ^17.0.0 || ^18.0.0", |
| 38 | + "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0" |
30 | 39 | }, |
31 | 40 | "peerDependenciesMeta": { |
32 | 41 | "@types/react": { |
33 | 42 | "optional": true |
34 | 43 | } |
35 | 44 | }, |
36 | 45 | "engines": { |
37 | | - "node": ">=8.5.0" |
| 46 | + "node": ">=10" |
38 | 47 | }, |
39 | | - "jsnext:main": "dist/es2015/index.js", |
40 | | - "module": "dist/es2015/index.js", |
41 | | - "types": "dist/es5/index.d.ts", |
42 | 48 | "files": [ |
43 | 49 | "dist" |
44 | 50 | ], |
|
48 | 54 | "useRef", |
49 | 55 | "createRef" |
50 | 56 | ], |
51 | | - "size-limit": [ |
52 | | - { |
53 | | - "path": "dist/es2015/index.js", |
54 | | - "limit": "0.4 KB" |
55 | | - }, |
56 | | - { |
57 | | - "path": "dist/es2015/useRef.js", |
58 | | - "limit": "0.2 KB" |
59 | | - }, |
60 | | - { |
61 | | - "path": "dist/es2015/useMergeRef.js", |
62 | | - "limit": "0.2 KB" |
| 57 | + "husky": { |
| 58 | + "hooks": { |
| 59 | + "pre-commit": "lint-staged" |
63 | 60 | } |
64 | | - ] |
| 61 | + }, |
| 62 | + "lint-staged": { |
| 63 | + "*.{ts,tsx}": [ |
| 64 | + "prettier --write", |
| 65 | + "eslint --fix", |
| 66 | + "git add" |
| 67 | + ], |
| 68 | + "*.{js,css,json,md}": [ |
| 69 | + "prettier --write", |
| 70 | + "git add" |
| 71 | + ] |
| 72 | + }, |
| 73 | + "prettier": { |
| 74 | + "printWidth": 120, |
| 75 | + "trailingComma": "es5", |
| 76 | + "tabWidth": 2, |
| 77 | + "semi": true, |
| 78 | + "singleQuote": true |
| 79 | + } |
65 | 80 | } |
0 commit comments