Skip to main content
This release is 50 versions behind 1.5.0 ā€” the latest version of @reliverse/cli. Jump to latest

This superapp tool can help you easily create new web projects and automatically make advanced codebase modifications, with more features coming soon.

This package works with Node.js, BunIt is unknown whether this package works with Cloudflare Workers, Deno, Browsers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
It is unknown whether this package works with Deno
This package works with Bun
It is unknown whether this package works with Browsers
JSR Score
94%
Published
a month ago (1.4.20)
Package root>publish.ts
// šŸ‘‰ usage example: `bun pub --bump=1.2.3` import { defineCommand, errorHandler, runMain } from "npm:@reliverse/prompts@^1.4.4"; import { execa } from "npm:execa@^9.5.2"; import { relinka } from "./~/utils/loggerRelinka.js"; const main = defineCommand({ meta: { name: "pub", }, args: { bump: { type: "string", description: "Bump the version", valueHint: "1.2.3", }, dryRun: { type: "boolean", description: "Dry run the publish process", }, jsr: { type: "boolean", description: "Publish the JSR version", }, npm: { type: "boolean", description: "Publish the NPM version", }, }, run: async ({ args }) => { if (args.jsr) { relinka("info", "Publishing the JSR version"); await execa("bun", ["build.publish.ts", args.bump, "--jsr"], { stdio: "inherit", }); } else if (args.npm) { relinka("info", "Publishing the NPM version"); await execa("bun", ["build.publish.ts", args.bump], { stdio: "inherit" }); } else if (args.dryRun) { relinka("info", "Dry run the publish process"); await execa("bun", ["pub:jsr", "--dry-run"], { stdio: "inherit" }); await execa("bun", ["pub:npm", "--dry-run"], { stdio: "inherit" }); } else { relinka("info", "Publishing the JSR version"); await execa("bun", ["build.publish.ts", args.bump, "--jsr"], { stdio: "inherit", }); relinka("info", "Publishing the NPM version"); await execa("bun", ["pub:npm", args.bump], { stdio: "inherit" }); } }, }); await runMain(main).catch((error: unknown) => errorHandler( error instanceof Error ? error : new Error(String(error)), "If this issue is related to @reliverse/cli itself, please\nā”‚ report the details at https://github.com/reliverse/cli", ), );