@tscircuit/cli 0.1.88 → 0.1.89

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 +7 -1
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -433425,7 +433425,7 @@ import readline from "node:readline";
433425
433425
  import { execSync as execSync2 } from "node:child_process";
433426
433426
  var import_semver = __toESM2(require_semver2(), 1);
433427
433427
  // package.json
433428
- var version = "0.1.87";
433428
+ var version = "0.1.88";
433429
433429
  var package_default = {
433430
433430
  name: "@tscircuit/cli",
433431
433431
  version,
@@ -433539,6 +433539,12 @@ var askConfirmation = (question) => {
433539
433539
  var registerInit = (program3) => {
433540
433540
  program3.command("init").description("Initialize a new TSCircuit project in the specified directory (or current directory if none is provided)").argument("[directory]", "Directory name (optional, defaults to current directory)").action(async (directory) => {
433541
433541
  await checkForTsciUpdates();
433542
+ if (!directory) {
433543
+ const continueInCurrentDirectory = await askConfirmation("Do you want to initialize a new project in the current directory?");
433544
+ if (!continueInCurrentDirectory) {
433545
+ return;
433546
+ }
433547
+ }
433542
433548
  const projectDir = directory ? path5.resolve(process.cwd(), directory) : process.cwd();
433543
433549
  fs4.mkdirSync(projectDir, { recursive: true });
433544
433550
  writeFileIfNotExists(path5.join(projectDir, "index.tsx"), `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/cli",
3
- "version": "0.1.88",
3
+ "version": "0.1.89",
4
4
  "main": "dist/main.js",
5
5
  "devDependencies": {
6
6
  "@babel/standalone": "^7.26.9",