|
4 | 4 | "description": "Lazy Hydration for Server Rendered React Components", |
5 | 5 | "source": "src/index.tsx", |
6 | 6 | "main": "dist/index.js", |
7 | | - "module": "dist/index.m.js", |
8 | | - "typings": "dist/index.d.ts", |
| 7 | + "module": "dist/index.esm.js", |
| 8 | + "browser": { |
| 9 | + "dist/index.js": "dist/index.browser.js", |
| 10 | + "dist/index.esm.js": "dist/index.brower.esm.js" |
| 11 | + }, |
| 12 | + "typings": "types/index.d.ts", |
9 | 13 | "author": { |
10 | 14 | "name": "Hadeeb Farhan", |
11 | 15 | "email": "hadeebfarhan1@gmail.com" |
12 | 16 | }, |
13 | 17 | "license": "MIT", |
14 | 18 | "sideEffects": false, |
15 | 19 | "files": [ |
16 | | - "src", |
17 | | - "dist" |
| 20 | + "dist", |
| 21 | + "types" |
18 | 22 | ], |
19 | 23 | "repository": { |
20 | 24 | "type": "git", |
|
31 | 35 | "hydration" |
32 | 36 | ], |
33 | 37 | "scripts": { |
34 | | - "build": "microbundle build --raw -f es,cjs", |
| 38 | + "prebuild": "rimraf dist types", |
| 39 | + "build": "rollup -c", |
| 40 | + "postbuild": "tsc", |
35 | 41 | "prepublishOnly": "yarn build", |
36 | 42 | "lint": "eslint src/** --fix" |
37 | 43 | }, |
| 44 | + "dependencies": { |
| 45 | + "@babel/runtime": "^7.9.2" |
| 46 | + }, |
38 | 47 | "peerDependencies": { |
39 | 48 | "react": ">=16.8.0" |
40 | 49 | }, |
41 | 50 | "devDependencies": { |
42 | | - "@types/react": "^16.9.17", |
43 | | - "@typescript-eslint/eslint-plugin": "^2.16.0", |
44 | | - "@typescript-eslint/parser": "^2.16.0", |
45 | | - "babel-eslint": "^10.0.3", |
| 51 | + "@babel/core": "^7.9.0", |
| 52 | + "@babel/helper-module-imports": "^7.8.3", |
| 53 | + "@babel/plugin-transform-react-jsx": "^7.9.4", |
| 54 | + "@babel/plugin-transform-runtime": "^7.9.0", |
| 55 | + "@babel/preset-env": "^7.9.5", |
| 56 | + "@babel/preset-typescript": "^7.9.0", |
| 57 | + "@types/react": "^16.9.32", |
| 58 | + "@typescript-eslint/eslint-plugin": "^2.27.0", |
| 59 | + "@typescript-eslint/parser": "^2.27.0", |
| 60 | + "babel-eslint": "^10.1.0", |
| 61 | + "babel-plugin-macros": "^2.8.0", |
46 | 62 | "eslint": "^6.8.0", |
47 | | - "eslint-config-prettier": "^6.9.0", |
48 | | - "eslint-config-react-app": "^5.1.0", |
49 | | - "eslint-plugin-flowtype": "^4.6.0", |
50 | | - "eslint-plugin-import": "^2.20.0", |
| 63 | + "eslint-config-prettier": "^6.10.1", |
| 64 | + "eslint-config-react-app": "^5.2.1", |
| 65 | + "eslint-plugin-flowtype": "^4.7.0", |
| 66 | + "eslint-plugin-import": "^2.20.2", |
51 | 67 | "eslint-plugin-jsx-a11y": "^6.2.3", |
52 | 68 | "eslint-plugin-prettier": "^3.1.2", |
53 | | - "eslint-plugin-react": "^7.18.0", |
54 | | - "eslint-plugin-react-hooks": "^2.3.0", |
55 | | - "eslint-plugin-simple-import-sort": "^5.0.0", |
56 | | - "husky": "^4.0.10", |
57 | | - "lint-staged": "^9.5.0", |
58 | | - "microbundle": "^0.11.0", |
| 69 | + "eslint-plugin-react": "^7.19.0", |
| 70 | + "eslint-plugin-react-hooks": "^3.0.0", |
| 71 | + "eslint-plugin-simple-import-sort": "^5.0.2", |
| 72 | + "husky": "^4.2.3", |
| 73 | + "lint-staged": "^10.1.2", |
59 | 74 | "prettier": "^1.19.1", |
60 | | - "react": "^16.12.0", |
61 | | - "typescript": "^3.7.5" |
| 75 | + "react": "^16.13.1", |
| 76 | + "rimraf": "^3.0.2", |
| 77 | + "rollup": "^2.4.0", |
| 78 | + "rollup-plugin-babel": "^4.4.0", |
| 79 | + "rollup-plugin-node-resolve": "^5.2.0", |
| 80 | + "rollup-plugin-replace": "^2.2.0", |
| 81 | + "typescript": "^3.8.3" |
62 | 82 | }, |
63 | 83 | "husky": { |
64 | 84 | "hooks": { |
65 | 85 | "pre-commit": "lint-staged" |
66 | 86 | } |
67 | 87 | }, |
68 | 88 | "lint-staged": { |
69 | | - "*.js": [ |
| 89 | + "*.{js,ts,tsx}": [ |
70 | 90 | "eslint --fix", |
71 | 91 | "git add" |
72 | 92 | ] |
|
0 commit comments