@tscircuit/cli 0.1.64 → 0.1.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/main.js +17 -5
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -426343,8 +426343,14 @@ function setupTsciProject(directory = process.cwd(), dependencies = ["@types/rea
426343
426343
  process.chdir(projectPath);
426344
426344
  if (!fs2.existsSync("package.json")) {
426345
426345
  const initCommand = packageManager === "yarn" ? "yarn init -y" : packageManager === "pnpm" ? "pnpm init" : packageManager === "bun" ? "bun init -y" : "npm init -y";
426346
- execSync(initCommand, { stdio: "inherit" });
426347
- console.log("Project initialized successfully.");
426346
+ try {
426347
+ execSync(initCommand, { stdio: "inherit" });
426348
+ console.log("Project initialized successfully.");
426349
+ } catch (error) {
426350
+ console.warn("Failed to automatically inititialize project.");
426351
+ console.warn("Please inititialize using the command:");
426352
+ console.warn(` ${initCommand}`);
426353
+ }
426348
426354
  }
426349
426355
  const packageJsonPath = path.join(projectPath, "package.json");
426350
426356
  const packageJson = JSON.parse(fs2.readFileSync(packageJsonPath, "utf-8"));
@@ -426353,8 +426359,14 @@ function setupTsciProject(directory = process.cwd(), dependencies = ["@types/rea
426353
426359
  if (dependencies.length > 0) {
426354
426360
  console.log("Installing dependencies...");
426355
426361
  const installCommand = packageManager === "yarn" ? `yarn add -D ${dependencies.join(" ")}` : packageManager === "pnpm" ? `pnpm add -D ${dependencies.join(" ")}` : packageManager === "bun" ? `bun add -D ${dependencies.join(" ")}` : `npm install -D ${dependencies.join(" ")}`;
426356
- execSync(installCommand, { stdio: "inherit" });
426357
- console.log("Dependencies installed successfully.");
426362
+ try {
426363
+ execSync(installCommand, { stdio: "inherit" });
426364
+ console.log("Dependencies installed successfully.");
426365
+ } catch (error) {
426366
+ console.warn("Failed to automatically install the required dependencies.");
426367
+ console.warn("Please install them manually using the command:");
426368
+ console.warn(` ${installCommand}`);
426369
+ }
426358
426370
  }
426359
426371
  return packageJson.name || "unknown";
426360
426372
  }
@@ -426972,7 +426984,7 @@ import readline from "node:readline";
426972
426984
  import { execSync as execSync2 } from "node:child_process";
426973
426985
  var import_semver = __toESM2(require_semver2(), 1);
426974
426986
  // package.json
426975
- var version = "0.1.63";
426987
+ var version = "0.1.64";
426976
426988
  var package_default = {
426977
426989
  name: "@tscircuit/cli",
426978
426990
  version,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/cli",
3
- "version": "0.1.64",
3
+ "version": "0.1.65",
4
4
  "main": "dist/main.js",
5
5
  "devDependencies": {
6
6
  "@babel/standalone": "^7.26.9",