|
4 | 4 | "keywords": [ |
5 | 5 | "context-api", |
6 | 6 | "react", |
7 | | - "nexpy" |
| 7 | + "nexpy", |
| 8 | + "context", |
| 9 | + "hooks" |
8 | 10 | ], |
9 | | - "version": "1.0.0", |
| 11 | + "version": "1.0.1", |
10 | 12 | "license": "MIT", |
11 | | - "main": "dist/index.js", |
12 | 13 | "author": "AllanOliveiraM", |
13 | | - "dependencies": { |
14 | | - "use-context-selector": "^1.3.9" |
15 | | - }, |
| 14 | + "main": "./dist/index.js", |
| 15 | + "module": "./dist/index.js", |
| 16 | + "react-native": "./dist/index.native.js", |
| 17 | + "types": "./dist/index.d.ts", |
| 18 | + "dependencies": {}, |
16 | 19 | "scripts": { |
17 | 20 | "husky:install": "husky install", |
18 | | - "build": "rollup -c", |
19 | | - "start": "rollup -c -w", |
| 21 | + "precompile:native": ". automation/precompile-native.sh", |
| 22 | + "build": "yarn --silent precompile:native && rollup -c", |
| 23 | + "start": "yarn --silent precompile:native && rollup -c -w", |
20 | 24 | "commit": "npx git-cz", |
21 | 25 | "type-check": "tsc --project tsconfig.json --pretty --noEmit", |
22 | 26 | "prettier": "prettier --loglevel warn --write .", |
|
29 | 33 | "@commitlint/config-conventional": "^15.0.0", |
30 | 34 | "@rollup/plugin-commonjs": "^21.0.1", |
31 | 35 | "@rollup/plugin-node-resolve": "^13.0.6", |
| 36 | + "@testing-library/react": "^12.1.2", |
| 37 | + "@types/jest": "^27.4.0", |
32 | 38 | "@types/node": "^16.11.11", |
33 | 39 | "@types/react": "^17.0.0", |
34 | 40 | "@types/react-dom": "^17.0.0", |
| 41 | + "@types/react-native": "^0.66.15", |
35 | 42 | "@typescript-eslint/eslint-plugin": "^5.5.0", |
36 | 43 | "@typescript-eslint/parser": "^5.5.0", |
37 | 44 | "commitlint": "^15.0.0", |
|
46 | 53 | "eslint-plugin-react": "^7.27.1", |
47 | 54 | "eslint-plugin-react-hooks": "^4.3.0", |
48 | 55 | "husky": "^7.0.4", |
| 56 | + "jest": "^27.4.7", |
49 | 57 | "lint-staged": "^12.1.2", |
50 | 58 | "prettier": "^2.5.0", |
51 | 59 | "react": "^17.0.2", |
52 | 60 | "react-dom": "^17.0.2", |
| 61 | + "react-native": "^0.67.1", |
53 | 62 | "rollup": "^2.62.0", |
| 63 | + "rollup-plugin-terser": "^7.0.2", |
54 | 64 | "rollup-plugin-typescript2": "^0.31.1", |
55 | | - "rollup-plugin-uglify": "^6.0.4", |
56 | 65 | "scheduler": "^0.20.2", |
| 66 | + "ts-jest": "^27.1.3", |
57 | 67 | "typescript": "^4.5.2" |
58 | 68 | }, |
59 | 69 | "peerDependencies": { |
|
62 | 72 | "react-native": "*", |
63 | 73 | "scheduler": ">=0.19.0" |
64 | 74 | }, |
| 75 | + "peerDependenciesMeta": { |
| 76 | + "react-dom": { |
| 77 | + "optional": true |
| 78 | + }, |
| 79 | + "react-native": { |
| 80 | + "optional": true |
| 81 | + } |
| 82 | + }, |
| 83 | + "jest": { |
| 84 | + "testEnvironment": "jsdom", |
| 85 | + "preset": "ts-jest/presets/js-with-ts" |
| 86 | + }, |
65 | 87 | "config": { |
66 | 88 | "commitizen": { |
67 | 89 | "path": "./node_modules/cz-conventional-changelog" |
|
0 commit comments