|
14 | 14 | "unpkg": "dist/react-query.development.js", |
15 | 15 | "types": "types/index.d.ts", |
16 | 16 | "module": "es/index.js", |
| 17 | + "sideEffects": [ |
| 18 | + "es/react/setBatchUpdatesFn.js", |
| 19 | + "es/react/setLogger.js", |
| 20 | + "lib/react/setBatchUpdatesFn.js", |
| 21 | + "lib/react/setLogger.js" |
| 22 | + ], |
17 | 23 | "scripts": { |
18 | 24 | "test": "is-ci \"test:ci\" \"test:dev\"", |
19 | 25 | "test:dev": "npm run test:types && npm run test:eslint && jest --watch", |
|
22 | 28 | "test:types": "tsc", |
23 | 29 | "test:eslint": "eslint --ext .ts,.tsx ./src", |
24 | 30 | "build": "yarn build:commonjs && yarn build:es && yarn build:umd && yarn build:types", |
25 | | - "build:commonjs": "rimraf ./lib && cross-env BABEL_ENV=commonjs babel --extensions .ts,.tsx --ignore ./src/**/*.test.tsx ./src --out-dir lib", |
26 | | - "build:es": "rimraf ./es && babel --extensions .ts,.tsx --ignore ./src/**/*.test.tsx ./src --out-dir es", |
| 31 | + "build:commonjs": "rimraf ./lib && cross-env BABEL_ENV=commonjs babel --extensions .ts,.tsx --ignore ./src/**/tests/**/* ./src --out-dir lib", |
| 32 | + "build:es": "rimraf ./es && babel --extensions .ts,.tsx --ignore ./src/**/tests/**/* ./src --out-dir es", |
27 | 33 | "build:umd": "rimraf ./dist && cross-env NODE_ENV=production rollup -c && rollup-plugin-visualizer stats-react.json", |
28 | 34 | "build:types": "rimraf ./types && tsc --project ./tsconfig.types.json && replace 'import type' 'import' ./types -r --silent && replace 'export type' 'export' ./types -r --silent", |
29 | 35 | "now-build": "yarn && cd www && yarn && yarn build", |
|
88 | 94 | "eslint-config-standard": "^14.1.1", |
89 | 95 | "eslint-config-standard-react": "^9.2.0", |
90 | 96 | "eslint-plugin-flowtype": "5.x", |
91 | | - "eslint-plugin-import": "2.x", |
| 97 | + "eslint-plugin-import": "^2.22.1", |
92 | 98 | "eslint-plugin-jsx-a11y": "6.x", |
93 | 99 | "eslint-plugin-node": "^11.1.0", |
94 | 100 | "eslint-plugin-prettier": "^3.1.3", |
|
0 commit comments