|
11 | 11 | },
|
12 | 12 | "dependencies": {},
|
13 | 13 | "devDependencies": {
|
14 |
| - "@babel/cli": "7.10.5", |
15 | 14 | "@babel/core": "7.11.1",
|
16 | 15 | "@babel/preset-typescript": "7.10.4",
|
17 | 16 | "@researchgate/babel-preset": "2.0.3",
|
|
20 | 19 | "@storybook/addon-knobs": "5.3.19",
|
21 | 20 | "@storybook/addon-options": "5.3.19",
|
22 | 21 | "@storybook/react": "5.3.19",
|
23 |
| - "@types/react": "16.9.46", |
24 | 22 | "@testing-library/react-hooks": "3.4.1",
|
25 | 23 | "@types/jest": "26.0.10",
|
| 24 | + "@types/react": "16.9.46", |
26 | 25 | "@types/react-dom": "16.9.8",
|
27 | 26 | "@typescript-eslint/eslint-plugin": "3.9.0",
|
28 | 27 | "@typescript-eslint/parser": "3.9.0",
|
29 |
| - "babel-loader": "8.1.0", |
30 |
| - "cross-env": "7.0.2", |
| 28 | + "babel-loader": "^8.1.0", |
31 | 29 | "intersection-observer": "0.11.0",
|
32 | 30 | "npm-run-all": "4.1.5",
|
33 | 31 | "prop-types": "15.7.2",
|
|
56 | 54 | ],
|
57 | 55 | "license": "MIT",
|
58 | 56 | "main": "lib/js/index.js",
|
59 |
| - "module": "lib/es/src/index.js", |
60 |
| - "types": "typings/src/index.d.ts", |
| 57 | + "module": "lib/es/index.js", |
| 58 | + "types": "typings/index.d.ts", |
61 | 59 | "peerDependencies": {
|
62 | 60 | "react": "^16.3.2",
|
63 | 61 | "react-dom": "^16.3.2"
|
|
67 | 65 | "url": "https://github.com/researchgate/react-intersection-observer.git"
|
68 | 66 | },
|
69 | 67 | "prettier": "@researchgate/prettier-config",
|
70 |
| - "resolutions": { |
71 |
| - "serialize-javascript": "3.1.0" |
72 |
| - }, |
73 | 68 | "spire": {
|
74 | 69 | "extends": [
|
75 | 70 | [
|
|
84 | 79 | ]
|
85 | 80 | },
|
86 | 81 | "scripts": {
|
87 |
| - "build": "run-s build:js build:typescript", |
88 |
| - "build:js": "cross-env BABEL_ENV=production BABEL_OUTPUT=cjs babel src -x .ts,.tsx -d lib/js", |
89 |
| - "build:typescript": "cross-env tsc --build", |
| 82 | + "build": "run-s build:esm build:cjs", |
| 83 | + "build:esm": "tsc --build", |
| 84 | + "build:cjs": "tsc --outDir ./lib/js --module CommonJS", |
90 | 85 | "build:storybook": "build-storybook -o .docs",
|
91 | 86 | "clean:lib": "rm -rf lib",
|
92 | 87 | "clean:typescript": "tsc --build --clean",
|
|
0 commit comments