fix: react client access
This commit is contained in:
parent
daa8d6e937
commit
e24183767b
|
@ -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": [
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user