diff --git a/packages/react/package.json b/packages/react/package.json index bd17af2..80d72ae 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -9,7 +9,7 @@ "clean": "rm -rf yarn.lock node_modules $(node -e \"process.stdout.write(require('./package.json').files.filter((file) => {const parts = file.split('/'); return 1 === parts.length || 'test' !== parts[0];}).join(' '));\") && yarn", "forcepub": "npm unpublish --force $(node -e 'const {name, version} = require(`./package.json`); process.stdout.write(`${name}@${version}`)') && npm publish", "lint": "NODE_PATH=./node_modules eslint --format codeframe --ext mjs,js .", - "postinstall": "mkdir -p node_modules/@latus/react && ln -fs ../../../src/client.js node_modules/@latus/react", + "postinstall": "touch client.js && mkdir -p node_modules/@latus/react && ln -fs ../../../client.js node_modules/@latus/react", "test": "yarn --silent run build --display none && mocha --colors test.js" }, "files": [ diff --git a/packages/react/src/index.js b/packages/react/src/index.js index b521bcd..a80f9cd 100644 --- a/packages/react/src/index.js +++ b/packages/react/src/index.js @@ -3,6 +3,8 @@ export * from 'react'; export {default as ReactDom} from 'react-dom'; export {default as PropTypes} from 'prop-types'; +// eslint-disable-next-line import/no-extraneous-dependencies +export {LatusContext} from '@latus/react/client'; export {default as useLatus} from './hooks/use-latus'; export default {