File tree Expand file tree Collapse file tree 3 files changed +9
-12
lines changed
packages/react-query-devtools Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 1515 "test:jest:dev" : " jest --config ./jest.config.ts --watch" ,
1616 "test:size" : " npm run build && bundlewatch" ,
1717 "build" : " rollup --config rollup.config.js && npm run typecheck" ,
18+ "postbuild" : " cp ./packages/react-query-devtools/src/noop.ts ./packages/react-query-devtools/build/esm/noop.js" ,
1819 "typecheck" : " tsc -b" ,
1920 "watch" : " concurrently --kill-others \" rollup --config rollup.config.js -w\" \" npm run typecheck -- --watch\" \" npm run test\" " ,
2021 "linkAll" : " lerna exec 'npm run link' --parallel" ,
Original file line number Diff line number Diff line change 1010 "type" : " github" ,
1111 "url" : " https://github.com/sponsors/tannerlinsley"
1212 },
13+ "module" : " build/esm/index.js" ,
1314 "main" : " build/cjs/packages/react-query-devtools/src/index.js" ,
1415 "browser" : " build/umd/index.production.js" ,
1516 "types" : " build/types/react-query-devtools/src/index.d.ts" ,
1617 "files" : [
1718 " build/*" ,
1819 " src"
1920 ],
21+ "exports" : {
22+ "development" : {
23+ "default" : " ./build/esm/index.js"
24+ },
25+ "default" : " ./build/esm/noop.js"
26+ },
2027 "scripts" : {
2128 "test:eslint" : " ../../node_modules/.bin/eslint --ext .ts,.tsx ./src" ,
2229 "compile" : " ../../node_modules/.bin/tsc -p tsconfig.json --noEmit --emitDeclarationOnly false"
Original file line number Diff line number Diff line change 1- if ( process . env . NODE_ENV !== 'development' ) {
2- module . exports = {
3- ReactQueryDevtools : function ( ) {
4- return null
5- } ,
6- ReactQueryDevtoolsPanel : function ( ) {
7- return null
8- } ,
9- }
10- } else {
11- module . exports = require ( './devtools' )
12- }
1+ export * from './devtools'
You can’t perform that action at this time.
0 commit comments