cedar-ui-kit
v1.1.29
Published
### 1. In the `ui-kit` project - Link the package: ```sh pnpm link --global ``` ```sh pnpm run build ``` ⚠️ The consuming project uses the dist/ output. If you don’t build, changes won’t appear.
Readme
📖 UI Kit
1. In the ui-kit project
- Link the package:
pnpm link --globalpnpm run build⚠️ The consuming project uses the dist/ output. If you don’t build, changes won’t appear.
2. In the consuming project (the app where you use the UI Kit)
- Link the local UI Kit:
pnpm link cedar-ui-kit(adjust the path if your UI Kit folder is located elsewhere)
- After each update in ui-kit, repeat:
# inside ui-kit
pnpm run build
# inside your app
pnpm install📦 Publishing to npm registry
Prerequisites
- Node.js and pnpm installed
- npm account (create one at https://www.npmjs.com/signup)
- Logged in to npm in your terminal
Publishing Steps
Login to npm (if not already):
npm loginEnter your username, password, and email when prompted.
Build the package:
pnpm run buildThis ensures the latest version of your components is compiled into the
dist/directory.Update the package version:
pnpm version patch- Use
patchfor bug fixes,minorfor new features, andmajorfor breaking changes. - This command automatically updates your
package.jsonversion and creates a Git tag.
- Use
Publish to npm:
pnpm publish --access publicVerify the publish: Visit https://www.npmjs.com/package/cedar-ui-kit to confirm that your latest version is live.
(Optional) Push tags and commits to Git:
git push && git push --tags
🧩 After Publishing
- In the consuming project:
or to upgrade to the latest version:pnpm install cedar-ui-kit@latestpnpm update cedar-ui-kit
