Closed bertearazvan closed 4 years ago
@material-ui/styles/esm/useTheme/ThemeContext.js
error.To reproduce the errors simply follow the guideline on how to set up the development environment https://webpack.js.org/guides/development/
:tada: This PR is included in version 1.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
In this PR I am adding the package
yalc
for local testing in other local apps.yarn add file:./../
which actually adds everything from the directory inside thenode_modules/@dhi-gras/react-components
and it's unrealistic because when publishing to npm, we are only publishing the/dist
folder.fix()
versions every time I make a change, I have found this package https://www.npmjs.com/package/yalc which mimics the waynpm
ispublishing packages
, without actually publishing it to npm and giving the possibility to share it between local apps. In order to make it work, thepeerDependencies
needs to be added to the app where the testing is happening.The script that needs to run is
yarn yalc:link
which builds the package and shares it onyalc store
and after that, it can simply be imported in other local apps usingyalc add @dhi-gras/react-components
as a regular package.The main documentation suggests adding it as a global package, which I also advise.