flash-builder 1.0.10 → 1.0.12

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/index.cjs CHANGED
@@ -9819,7 +9819,7 @@ var meow = (helpText, options = {}) => {
9819
9819
  };
9820
9820
 
9821
9821
  // version.ts
9822
- var version = "1.0.10";
9822
+ var version = "1.0.12";
9823
9823
  var version_default = version;
9824
9824
 
9825
9825
  // src/banner.ts
@@ -9838,9 +9838,8 @@ var import_path2 = __toESM(require("path"));
9838
9838
  var import_dotenv = __toESM(require_main(), 1);
9839
9839
  import_dotenv.default.config({ path: ".env", quiet: true });
9840
9840
  var ENV = process.env;
9841
- var IS_NPMJS = ENV["_"]?.includes(".bin/fbi");
9841
+ var IS_NPMJS = typeof ENV["npm_package_bin_fbi"] != "string";
9842
9842
  var PWD = IS_NPMJS ? process.cwd() : import_path2.default.join(process.cwd(), "isolate");
9843
- console.log({ ENV, PWD, IS_NPMJS });
9844
9843
  var PROJECT_TARGET_URL = ENV.PROJECT_TARGET_URL;
9845
9844
  var LLM_PROVIDER = ENV.LLM_PROVIDER;
9846
9845
  var LLM_MODEL = ENV.LLM_MODEL;
@@ -9934,7 +9933,7 @@ function beCommand(projectName, verbose, targetPath) {
9934
9933
  projectPath = import_node_path3.join(PWD, projectName);
9935
9934
  actualProjectName = projectName;
9936
9935
  }
9937
- if (import_node_fs2.existsSync(projectPath)) {
9936
+ if (import_node_fs2.existsSync(projectPath) && !isCurrentDir) {
9938
9937
  if (IS_NPMJS) {
9939
9938
  console.error(`\u274C Error: Directory '${projectName}' already exists`);
9940
9939
  process.exit(1);
@@ -10119,7 +10118,6 @@ ${banner_default}
10119
10118
  }
10120
10119
  });
10121
10120
  var [command, ...args] = cli.input;
10122
- console.log({ args });
10123
10121
  switch (command) {
10124
10122
  case "be":
10125
10123
  beCommand(args[0] || "", cli.flags.verbose, args[1]);
package/dist/index.js CHANGED
@@ -9820,7 +9820,7 @@ var meow = (helpText, options = {}) => {
9820
9820
  };
9821
9821
 
9822
9822
  // version.ts
9823
- var version = "1.0.10";
9823
+ var version = "1.0.12";
9824
9824
  var version_default = version;
9825
9825
 
9826
9826
  // src/banner.ts
@@ -9839,9 +9839,8 @@ var import_dotenv = __toESM(require_main(), 1);
9839
9839
  import path3 from "path";
9840
9840
  import_dotenv.default.config({ path: ".env", quiet: true });
9841
9841
  var ENV = process.env;
9842
- var IS_NPMJS = ENV["_"]?.includes(".bin/fbi");
9842
+ var IS_NPMJS = typeof ENV["npm_package_bin_fbi"] != "string";
9843
9843
  var PWD = IS_NPMJS ? process.cwd() : path3.join(process.cwd(), "isolate");
9844
- console.log({ ENV, PWD, IS_NPMJS });
9845
9844
  var PROJECT_TARGET_URL = ENV.PROJECT_TARGET_URL;
9846
9845
  var LLM_PROVIDER = ENV.LLM_PROVIDER;
9847
9846
  var LLM_MODEL = ENV.LLM_MODEL;
@@ -9935,7 +9934,7 @@ function beCommand(projectName, verbose, targetPath) {
9935
9934
  projectPath = join(PWD, projectName);
9936
9935
  actualProjectName = projectName;
9937
9936
  }
9938
- if (existsSync(projectPath)) {
9937
+ if (existsSync(projectPath) && !isCurrentDir) {
9939
9938
  if (IS_NPMJS) {
9940
9939
  console.error(`\u274C Error: Directory '${projectName}' already exists`);
9941
9940
  process.exit(1);
@@ -10120,7 +10119,6 @@ ${banner_default}
10120
10119
  }
10121
10120
  });
10122
10121
  var [command, ...args] = cli.input;
10123
- console.log({ args });
10124
10122
  switch (command) {
10125
10123
  case "be":
10126
10124
  beCommand(args[0] || "", cli.flags.verbose, args[1]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flash-builder",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/jefripunza/flash-builder-cli#readme",
6
6
  "repository": {