|
23 | 23 | "type": "opencollective",
|
24 | 24 | "url": "https://opencollective.com/react-three-fiber"
|
25 | 25 | },
|
26 |
| - "main": "dist/index.cjs.js", |
27 |
| - "module": "dist/index.js", |
| 26 | + "main": "dist/react-three-fiber.cjs.js", |
| 27 | + "module": "dist/react-three-fiber.esm.js", |
| 28 | + "types": "dist/react-three-fiber.cjs.d.ts", |
28 | 29 | "react-native": "dist/native.js",
|
29 |
| - "types": "dist/web/index.d.ts", |
30 | 30 | "sideEffects": false,
|
31 | 31 | "husky": {
|
32 | 32 | "hooks": {
|
|
39 | 39 | ]
|
40 | 40 | },
|
41 | 41 | "scripts": {
|
42 |
| - "prebuild": "rimraf dist && npm run typegen", |
43 |
| - "build": "rollup -c && rimraf dist/__tests__", |
| 42 | + "build": "preconstruct build", |
| 43 | + "dev": "preconstruct dev", |
44 | 44 | "prepare": "husky install",
|
45 | 45 | "eslint": "eslint --fix src/**/*.{ts,tsx}",
|
46 |
| - "dev": "yarn --cwd ./examples start", |
47 | 46 | "test": "echo null",
|
48 |
| - "typecheck": "tsc --noEmit --emitDeclarationOnly false --strict --jsx react", |
49 |
| - "typegen": "tsc && mv dist/src/* dist && rm -rf dist/src || true" |
| 47 | + "typecheck": "tsc --noEmit --emitDeclarationOnly false --strict --jsx react" |
50 | 48 | },
|
51 | 49 | "size-limit": [
|
52 | 50 | {
|
53 |
| - "path": "dist/index.js", |
| 51 | + "path": "dist/react-three-fiber.cjs.prod.js", |
| 52 | + "import": "{ render }", |
54 | 53 | "limit": "4500 ms"
|
55 | 54 | }
|
56 | 55 | ],
|
|
62 | 61 | "react-use-measure": "^2.0.3",
|
63 | 62 | "resize-observer-polyfill": "^1.5.1",
|
64 | 63 | "scheduler": "0.20.1",
|
65 |
| - "size-limit": "^4.10.0", |
66 |
| - "tiny-emitter": "^2.1.0", |
67 | 64 | "use-asset": "^1.0.2",
|
68 | 65 | "utility-types": "^3.10.0",
|
69 | 66 | "zustand": "^3.3.3"
|
|
74 | 71 | "three": ">=0.126"
|
75 | 72 | },
|
76 | 73 | "devDependencies": {
|
77 |
| - "@ampproject/rollup-plugin-closure-compiler": "^0.26.0", |
78 | 74 | "@babel/core": "7.13.8",
|
79 |
| - "@babel/helper-call-delegate": "^7.12.13", |
80 |
| - "@babel/plugin-transform-modules-commonjs": "7.13.8", |
81 |
| - "@babel/plugin-transform-parameters": "7.13.0", |
82 |
| - "@babel/plugin-transform-runtime": "7.13.9", |
83 |
| - "@babel/plugin-transform-template-literals": "7.13.0", |
84 | 75 | "@babel/preset-env": "7.13.9",
|
85 | 76 | "@babel/preset-react": "7.12.13",
|
86 | 77 | "@babel/preset-typescript": "^7.13.0",
|
87 |
| - "@rollup/plugin-commonjs": "^17.1.0", |
88 |
| - "@rollup/plugin-inject": "^4.0.2", |
89 |
| - "@rollup/plugin-strip": "^2.0.0", |
| 78 | + "@preconstruct/cli": "^2.0.6", |
90 | 79 | "@types/jest": "^26.0.20",
|
91 | 80 | "@types/lodash-es": "^4.17.4",
|
92 |
| - "@types/react": "^17.0.2", |
93 | 81 | "@types/react-dom": "^17.0.1",
|
94 | 82 | "@types/react-native": "^0.63.51",
|
95 | 83 | "@types/react-reconciler": "^0.26.0",
|
96 | 84 | "@types/react-test-renderer": "^17.0.1",
|
| 85 | + "@types/react": "^17.0.2", |
97 | 86 | "@types/scheduler": "^0.16.1",
|
98 | 87 | "@types/three": "^0.126.0",
|
99 | 88 | "@typescript-eslint/eslint-plugin": "^4.16.1",
|
100 | 89 | "@typescript-eslint/parser": "^4.16.1",
|
101 |
| - "babel-eslint": "^10.1.0", |
102 |
| - "babel-plugin-transform-react-remove-prop-types": "^0.4.24", |
103 | 90 | "copyfiles": "^2.4.1",
|
104 |
| - "cypress": "^6.6.0", |
105 |
| - "eslint": "^7.21.0", |
106 | 91 | "eslint-config-prettier": "^8.1.0",
|
107 | 92 | "eslint-import-resolver-alias": "^1.1.2",
|
108 | 93 | "eslint-plugin-import": "^2.22.1",
|
109 | 94 | "eslint-plugin-jest": "^24.1.7",
|
110 | 95 | "eslint-plugin-prettier": "^3.3.1",
|
111 |
| - "eslint-plugin-react": "^7.22.0", |
112 | 96 | "eslint-plugin-react-hooks": "^4.2.0",
|
113 |
| - "expo-gl": "^10.1.0", |
114 |
| - "expo-three": "^5.6.2", |
| 97 | + "eslint-plugin-react": "^7.22.0", |
| 98 | + "eslint": "^7.21.0", |
115 | 99 | "husky": "^5.1.3",
|
116 |
| - "jest": "^26.6.3", |
117 | 100 | "jest-cli": "^26.6.3",
|
118 | 101 | "jest-image-snapshot": "^4.4.0",
|
119 | 102 | "jest-puppeteer": "^4.4.0",
|
120 |
| - "json": "^10.0.0", |
| 103 | + "jest": "^26.6.3", |
121 | 104 | "lint-staged": "^10.5.4",
|
122 | 105 | "prettier": "^2.2.1",
|
123 | 106 | "puppeteer": "^8.0.0",
|
124 |
| - "react": "^16.11.0", |
125 | 107 | "react-dom": "^16.11.0",
|
126 | 108 | "react-native": "^0.63.4",
|
127 | 109 | "react-test-renderer": "^17.0.1",
|
128 |
| - "rimraf": "^3.0.2", |
129 |
| - "rollup": "^2.40.0", |
130 |
| - "rollup-plugin-babel": "^4.4.0", |
131 |
| - "rollup-plugin-commonjs": "^10.1.0", |
132 |
| - "rollup-plugin-json": "^4.0.0", |
133 |
| - "rollup-plugin-node-resolve": "^5.2.0", |
134 |
| - "rollup-plugin-terser": "^7.0.2", |
| 110 | + "react": "^16.11.0", |
| 111 | + "size-limit": "^4.10.0", |
135 | 112 | "three": "^0.126.1",
|
136 | 113 | "ts-jest": "^26.5.3",
|
137 |
| - "typescript": "^4.2.3", |
138 |
| - "wait-on": "^5.2.1" |
| 114 | + "typescript": "^4.2.3" |
139 | 115 | }
|
140 | 116 | }
|
0 commit comments