@browserbasehq/bb9
Advanced tools
Comparing version 1.2.17 to 1.2.18
import { createProjectStructure, promptForOptions } from "../utils/config.js"; | ||
import path from "path"; | ||
import chalk from "chalk"; | ||
import { readFileSync } from "fs"; | ||
export function registerInitCommand(program) { | ||
@@ -17,3 +18,13 @@ const welcomeMessage = "Welcome to Browserbase CLI"; | ||
.option("--ignore-git", "Skip git checks and initialization") | ||
.option("--version", "Version of the project") | ||
.action(async (projectName, options) => { | ||
if (options.version) { | ||
console.log(chalk.yellow(border)); | ||
console.log(chalk.yellow(welcomeMessageFmt)); | ||
console.log(chalk.yellow(border)); | ||
const packageJson = JSON.parse(readFileSync(path.join(process.cwd(), "package.json"), "utf8")); | ||
console.log(chalk.yellow(`Version: ${packageJson.version}`)); | ||
console.log(chalk.yellow(border)); | ||
return; | ||
} | ||
try { | ||
@@ -20,0 +31,0 @@ const projectPath = path.join(process.cwd(), projectName); |
{ | ||
"name": "@browserbasehq/bb9", | ||
"version": "1.2.17", | ||
"version": "1.2.18", | ||
"description": "CLI to scaffold and manage Browserbase applications", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
38918
448
9