@sokusystems/react-ui
v0.2.0
Published
Shared React UI primitives for Soku applications such as Conduit, Panorama, and Soku Suite.
Downloads
319
Readme
@sokusystems/react-ui
Shared React UI primitives for Soku applications such as Conduit, Panorama, and Soku Suite.
Distribution Strategy
The official distribution path for this package is the npm registry.
- Consumers should depend on a published
@sokusystems/react-uiversion. - Local tarballs are allowed only as a temporary validation workflow during development.
- Consumer repos should not commit long-term
file:dependencies or one-off ad hoc tarball paths.
This keeps package consumption stable and makes upgrades reproducible across repos.
Install
npm install @sokusystems/react-uiThis package expects the consumer app to provide compatible peer dependencies:
react >= 18react-dom >= 18
Development
Install local dependencies:
npm installBuild the package:
npm run buildLocal Consumer Validation
When you need to test an unreleased package build in a sibling app repo, use the scripted local pack flow instead of a one-off manual tarball workflow.
- In
react-ui, create a local package tarball:
npm run pack:localThis writes a tarball to .local-packages/ and keeps npm cache output in .npm-cache/.
- In the consumer repo, install the generated tarball:
npm install ../react-ui/.local-packages/sokusystems-react-ui-<version>.tgz --saveRun the consumer app build/tests there.
Before merging consumer changes, update the consumer back to the intended published version unless you are explicitly coordinating a release cut at the same time.
This gives a repeatable local integration path without making tarball installs the primary distribution strategy.
Release Workflow
Use npm publish as the source of truth.
- Make and merge package changes in
react-ui. - Bump the package version:
npm version patchUse minor or major when appropriate.
- Run the release verification script:
npm run release:check- Publish the package:
npm publish- Update consuming repos to the new published version and verify their builds.
Scripts
npm run build: compilesrc/intodist/npm run pack:local: build and create a local tarball in.local-packages/npm run release:check: build and dry-run the publish payload
prepack ensures dist/ is rebuilt before npm pack or npm publish.
Auth
Keep auth out of the repo.
- Copy
.npmrc.exampleto.npmrclocally, or configure the same values in your user-level npm config. - Set a valid
NPM_TOKENin your shell before publishing.
Example:
set NPM_TOKEN=your_token_hereThe checked-in example keeps the @sokusystems scope configuration without storing a real token in git.
