tufarm-shared-utils
v1.0.8
Published
Shared utilities for TuFarm applications
Readme
@tufarm/utils
Shared utilities package for TuFarm applications (Admin Panel, Backend Base, Mini App).
Setup & Publishing to GitHub Packages
1. Authenticate with GitHub Packages
You need a GitHub Personal Access Token (PAT) with write:packages and read:packages permissions.
Create or update your ~/.npmrc file with the following content:
//npm.pkg.github.com/:_authToken=YOUR_GITHUB_PAT
@tufarm:registry=https://npm.pkg.github.com2. Publish
npm install
npm run build
npm publishLocal Development (Without Publishing)
When you are developing and don't want to publish every change, you can link this package locally.
In this directory (tufarm-utils):
npm run dev # Starts tsup in watch mode
# In a new terminal:
pnpm link --global # Or npm link / yarn linkIn the target projects (admin-panel, backend-base, etc):
pnpm link --global @tufarm/utils # If using pnpm
# Or yarn link @tufarm/utils