@tscircuit/cli 0.1.127 → 0.1.128
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.
- package/dist/main.js +12 -2
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -441906,7 +441906,7 @@ var getGlobalDepsInstallCommand = (packageManager, deps) => {
|
|
|
441906
441906
|
import { execSync as execSync2 } from "node:child_process";
|
|
441907
441907
|
var import_semver2 = __toESM2(require_semver2(), 1);
|
|
441908
441908
|
// package.json
|
|
441909
|
-
var version = "0.1.
|
|
441909
|
+
var version = "0.1.127";
|
|
441910
441910
|
var package_default = {
|
|
441911
441911
|
name: "@tscircuit/cli",
|
|
441912
441912
|
version,
|
|
@@ -442082,7 +442082,17 @@ var registerInit = (program3) => {
|
|
|
442082
442082
|
message: "Do you want to initialize a new project in the current directory?"
|
|
442083
442083
|
});
|
|
442084
442084
|
if (!continueInCurrentDirectory) {
|
|
442085
|
-
|
|
442085
|
+
const { desiredDirectory } = await prompts({
|
|
442086
|
+
type: "text",
|
|
442087
|
+
name: "desiredDirectory",
|
|
442088
|
+
message: "Enter the desired directory name"
|
|
442089
|
+
});
|
|
442090
|
+
if (desiredDirectory) {
|
|
442091
|
+
directory = desiredDirectory;
|
|
442092
|
+
} else {
|
|
442093
|
+
console.log("Project initialization cancelled.");
|
|
442094
|
+
return process.exit(0);
|
|
442095
|
+
}
|
|
442086
442096
|
}
|
|
442087
442097
|
}
|
|
442088
442098
|
const projectDir = directory ? path9.resolve(process.cwd(), directory) : process.cwd();
|