👀 This package is primarily intended for internal use at Cleverse. The repository is public for convenience, but we do not actively maintain it as an open-source project.
Shared utilities and common configurations for TypeScript projects at Cleverse.
Note:
There are some packages that are peer dependencies and required you to add them manually to your project (such as
eslint,typescript,zod,pino-pretty).Recommended to add
auto-install-peers=trueto.npmrcfile to automatically install them.
This package is not published to npm. Install directly from GitHub:
pnpm add git+https://github.com/cleverse/ts-utilities.git
# or
pnpm add git+ssh://git@github.com:cleverse/ts-utilities.git
# with specific version/tag/commit
pnpm add git+ssh://git@github.com:cleverse/ts-utilities.git#v1.0.0💡 Recommend install package manually by editing package.json to ensure installation compatibility on CI/CD such as
GitHub Actions.
// package.json
{
"dependencies": {
"@cleverse/ts-utilities": "git+https://github.com/cleverse/ts-utilities.git#v1.0.0"
}
}Import specific modules:
import { logger } from "@cleverse/ts-utilities/logger"
import { sleep, errors } from "@cleverse/ts-utilities/utils"
import { awaitAbort } from "@cleverse/ts-utilities/utils/aborts"See dotrc for available configurations
// tsconfig.json
{
"extends": "@cleverse/ts-utilities/dotrc/tsconfig/node.json",
"exclude": ["node_modules", "dist"]
}// eslint.config.mjs
import base from "@cleverse/ts-utilities/dotrc/eslint/base.mjs"
export default [
...base,
{
ignores: ["*.config.mjs", "*.config.ts", "dist/**", "dist"],
},
]- mise (recommended) or Node.js 24+
- pnpm 10+ (automatically installed by mise or running
$ corepack enable)
# Install dependencies
pnpm install# Build the package
pnpm build
# Watch mode during development
pnpm dev
# Run tests
pnpm test
# Run tests in watch mode
pnpm test:watch
# Type checking
pnpm typecheck
# Linting
pnpm lint
pnpm lint:fix
# Formatting
pnpm format
pnpm format:fix
# Check for dependency updates
pnpm check-update
pnpm check-update:fix- Update version in
package.json - Commit and push changes
- Create a git tag:
git tag v1.x.x && git push origin v1.x.x - Wait for the release workflow to complete and check the release notes.
Consumers can then update by referencing the new tag.
MIT © Cleverse Corporation Co., Ltd.