This release is 50 versions behind 1.5.0 ā the latest version of @reliverse/cli. Jump to latest
@reliverse/cli@1.4.20
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




JSR Score
94%
Published
a month ago (1.4.20)
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960// š 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", ), );