komodo-cli 1.0.0 → 2.0.1

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/index.js +38 -32
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6910,14 +6910,14 @@ async function initNodeEnvironment(options) {
6910
6910
  const packageManager = await detectPackageManager(path3);
6911
6911
  const packageJsonPath = (0, import_path3.join)(path3, "package.json");
6912
6912
  if (!(0, import_fs2.existsSync)(packageJsonPath)) {
6913
- const packageJson = {
6913
+ const packageJson2 = {
6914
6914
  name: name.toLowerCase().replace(/\s+/g, "-"),
6915
6915
  version: "0.1.0",
6916
6916
  private: true,
6917
6917
  type: "module"
6918
6918
  };
6919
6919
  try {
6920
- await (0, import_promises4.writeFile)(packageJsonPath, JSON.stringify(packageJson, null, 2));
6920
+ await (0, import_promises4.writeFile)(packageJsonPath, JSON.stringify(packageJson2, null, 2));
6921
6921
  } catch (error) {
6922
6922
  return {
6923
6923
  success: false,
@@ -7121,8 +7121,8 @@ async function getNodePackages(path3) {
7121
7121
  }
7122
7122
  try {
7123
7123
  const content = await (0, import_promises6.readFile)(packageJsonPath, "utf-8");
7124
- const packageJson = JSON.parse(content);
7125
- const deps = { ...packageJson.dependencies, ...packageJson.devDependencies };
7124
+ const packageJson2 = JSON.parse(content);
7125
+ const deps = { ...packageJson2.dependencies, ...packageJson2.devDependencies };
7126
7126
  const packages = [];
7127
7127
  for (const [name, version] of Object.entries(deps)) {
7128
7128
  packages.push({
@@ -12836,7 +12836,7 @@ var require_thread_stream = __commonJS({
12836
12836
  var { version } = require_package();
12837
12837
  var { EventEmitter } = require("events");
12838
12838
  var { Worker } = require("worker_threads");
12839
- var { join: join4 } = require("path");
12839
+ var { join: join6 } = require("path");
12840
12840
  var { pathToFileURL } = require("url");
12841
12841
  var { wait } = require_wait();
12842
12842
  var {
@@ -12872,7 +12872,7 @@ var require_thread_stream = __commonJS({
12872
12872
  function createWorker(stream, opts) {
12873
12873
  const { filename, workerData } = opts;
12874
12874
  const bundlerOverrides = "__bundlerPathsOverrides" in globalThis ? globalThis.__bundlerPathsOverrides : {};
12875
- const toExecute = bundlerOverrides["thread-stream-worker"] || join4(__dirname, "lib", "worker.js");
12875
+ const toExecute = bundlerOverrides["thread-stream-worker"] || join6(__dirname, "lib", "worker.js");
12876
12876
  const worker = new Worker(toExecute, {
12877
12877
  ...opts.workerOpts,
12878
12878
  trackUnmanagedFds: false,
@@ -13258,7 +13258,7 @@ var require_transport = __commonJS({
13258
13258
  "use strict";
13259
13259
  var { createRequire } = require("module");
13260
13260
  var getCallers = require_caller();
13261
- var { join: join4, isAbsolute, sep } = require("path");
13261
+ var { join: join6, isAbsolute, sep } = require("path");
13262
13262
  var sleep = require_atomic_sleep();
13263
13263
  var onExit2 = require_on_exit_leak_free();
13264
13264
  var ThreadStream = require_thread_stream();
@@ -13321,7 +13321,7 @@ var require_transport = __commonJS({
13321
13321
  throw new Error("only one of target or targets can be specified");
13322
13322
  }
13323
13323
  if (targets) {
13324
- target = bundlerOverrides["pino-worker"] || join4(__dirname, "worker.js");
13324
+ target = bundlerOverrides["pino-worker"] || join6(__dirname, "worker.js");
13325
13325
  options.targets = targets.filter((dest) => dest.target).map((dest) => {
13326
13326
  return {
13327
13327
  ...dest,
@@ -13339,7 +13339,7 @@ var require_transport = __commonJS({
13339
13339
  });
13340
13340
  });
13341
13341
  } else if (pipeline) {
13342
- target = bundlerOverrides["pino-worker"] || join4(__dirname, "worker.js");
13342
+ target = bundlerOverrides["pino-worker"] || join6(__dirname, "worker.js");
13343
13343
  options.pipelines = [pipeline.map((dest) => {
13344
13344
  return {
13345
13345
  ...dest,
@@ -13361,7 +13361,7 @@ var require_transport = __commonJS({
13361
13361
  return origin;
13362
13362
  }
13363
13363
  if (origin === "pino/file") {
13364
- return join4(__dirname, "..", "file.js");
13364
+ return join6(__dirname, "..", "file.js");
13365
13365
  }
13366
13366
  let fixTarget2;
13367
13367
  for (const filePath of callers) {
@@ -14351,7 +14351,7 @@ var require_safe_stable_stringify = __commonJS({
14351
14351
  return circularValue;
14352
14352
  }
14353
14353
  let res = "";
14354
- let join4 = ",";
14354
+ let join6 = ",";
14355
14355
  const originalIndentation = indentation;
14356
14356
  if (Array.isArray(value)) {
14357
14357
  if (value.length === 0) {
@@ -14365,7 +14365,7 @@ var require_safe_stable_stringify = __commonJS({
14365
14365
  indentation += spacer;
14366
14366
  res += `
14367
14367
  ${indentation}`;
14368
- join4 = `,
14368
+ join6 = `,
14369
14369
  ${indentation}`;
14370
14370
  }
14371
14371
  const maximumValuesToStringify = Math.min(value.length, maximumBreadth);
@@ -14373,13 +14373,13 @@ ${indentation}`;
14373
14373
  for (; i < maximumValuesToStringify - 1; i++) {
14374
14374
  const tmp2 = stringifyFnReplacer(String(i), value, stack, replacer, spacer, indentation);
14375
14375
  res += tmp2 !== void 0 ? tmp2 : "null";
14376
- res += join4;
14376
+ res += join6;
14377
14377
  }
14378
14378
  const tmp = stringifyFnReplacer(String(i), value, stack, replacer, spacer, indentation);
14379
14379
  res += tmp !== void 0 ? tmp : "null";
14380
14380
  if (value.length - 1 > maximumBreadth) {
14381
14381
  const removedKeys = value.length - maximumBreadth - 1;
14382
- res += `${join4}"... ${getItemCount(removedKeys)} not stringified"`;
14382
+ res += `${join6}"... ${getItemCount(removedKeys)} not stringified"`;
14383
14383
  }
14384
14384
  if (spacer !== "") {
14385
14385
  res += `
@@ -14400,7 +14400,7 @@ ${originalIndentation}`;
14400
14400
  let separator = "";
14401
14401
  if (spacer !== "") {
14402
14402
  indentation += spacer;
14403
- join4 = `,
14403
+ join6 = `,
14404
14404
  ${indentation}`;
14405
14405
  whitespace = " ";
14406
14406
  }
@@ -14414,13 +14414,13 @@ ${indentation}`;
14414
14414
  const tmp = stringifyFnReplacer(key2, value, stack, replacer, spacer, indentation);
14415
14415
  if (tmp !== void 0) {
14416
14416
  res += `${separator}${strEscape(key2)}:${whitespace}${tmp}`;
14417
- separator = join4;
14417
+ separator = join6;
14418
14418
  }
14419
14419
  }
14420
14420
  if (keyLength > maximumBreadth) {
14421
14421
  const removedKeys = keyLength - maximumBreadth;
14422
14422
  res += `${separator}"...":${whitespace}"${getItemCount(removedKeys)} not stringified"`;
14423
- separator = join4;
14423
+ separator = join6;
14424
14424
  }
14425
14425
  if (spacer !== "" && separator.length > 1) {
14426
14426
  res = `
@@ -14461,7 +14461,7 @@ ${originalIndentation}`;
14461
14461
  }
14462
14462
  const originalIndentation = indentation;
14463
14463
  let res = "";
14464
- let join4 = ",";
14464
+ let join6 = ",";
14465
14465
  if (Array.isArray(value)) {
14466
14466
  if (value.length === 0) {
14467
14467
  return "[]";
@@ -14474,7 +14474,7 @@ ${originalIndentation}`;
14474
14474
  indentation += spacer;
14475
14475
  res += `
14476
14476
  ${indentation}`;
14477
- join4 = `,
14477
+ join6 = `,
14478
14478
  ${indentation}`;
14479
14479
  }
14480
14480
  const maximumValuesToStringify = Math.min(value.length, maximumBreadth);
@@ -14482,13 +14482,13 @@ ${indentation}`;
14482
14482
  for (; i < maximumValuesToStringify - 1; i++) {
14483
14483
  const tmp2 = stringifyArrayReplacer(String(i), value[i], stack, replacer, spacer, indentation);
14484
14484
  res += tmp2 !== void 0 ? tmp2 : "null";
14485
- res += join4;
14485
+ res += join6;
14486
14486
  }
14487
14487
  const tmp = stringifyArrayReplacer(String(i), value[i], stack, replacer, spacer, indentation);
14488
14488
  res += tmp !== void 0 ? tmp : "null";
14489
14489
  if (value.length - 1 > maximumBreadth) {
14490
14490
  const removedKeys = value.length - maximumBreadth - 1;
14491
- res += `${join4}"... ${getItemCount(removedKeys)} not stringified"`;
14491
+ res += `${join6}"... ${getItemCount(removedKeys)} not stringified"`;
14492
14492
  }
14493
14493
  if (spacer !== "") {
14494
14494
  res += `
@@ -14501,7 +14501,7 @@ ${originalIndentation}`;
14501
14501
  let whitespace = "";
14502
14502
  if (spacer !== "") {
14503
14503
  indentation += spacer;
14504
- join4 = `,
14504
+ join6 = `,
14505
14505
  ${indentation}`;
14506
14506
  whitespace = " ";
14507
14507
  }
@@ -14510,7 +14510,7 @@ ${indentation}`;
14510
14510
  const tmp = stringifyArrayReplacer(key2, value[key2], stack, replacer, spacer, indentation);
14511
14511
  if (tmp !== void 0) {
14512
14512
  res += `${separator}${strEscape(key2)}:${whitespace}${tmp}`;
14513
- separator = join4;
14513
+ separator = join6;
14514
14514
  }
14515
14515
  }
14516
14516
  if (spacer !== "" && separator.length > 1) {
@@ -14568,20 +14568,20 @@ ${originalIndentation}`;
14568
14568
  indentation += spacer;
14569
14569
  let res2 = `
14570
14570
  ${indentation}`;
14571
- const join6 = `,
14571
+ const join7 = `,
14572
14572
  ${indentation}`;
14573
14573
  const maximumValuesToStringify = Math.min(value.length, maximumBreadth);
14574
14574
  let i = 0;
14575
14575
  for (; i < maximumValuesToStringify - 1; i++) {
14576
14576
  const tmp2 = stringifyIndent(String(i), value[i], stack, spacer, indentation);
14577
14577
  res2 += tmp2 !== void 0 ? tmp2 : "null";
14578
- res2 += join6;
14578
+ res2 += join7;
14579
14579
  }
14580
14580
  const tmp = stringifyIndent(String(i), value[i], stack, spacer, indentation);
14581
14581
  res2 += tmp !== void 0 ? tmp : "null";
14582
14582
  if (value.length - 1 > maximumBreadth) {
14583
14583
  const removedKeys = value.length - maximumBreadth - 1;
14584
- res2 += `${join6}"... ${getItemCount(removedKeys)} not stringified"`;
14584
+ res2 += `${join7}"... ${getItemCount(removedKeys)} not stringified"`;
14585
14585
  }
14586
14586
  res2 += `
14587
14587
  ${originalIndentation}`;
@@ -14597,16 +14597,16 @@ ${originalIndentation}`;
14597
14597
  return '"[Object]"';
14598
14598
  }
14599
14599
  indentation += spacer;
14600
- const join4 = `,
14600
+ const join6 = `,
14601
14601
  ${indentation}`;
14602
14602
  let res = "";
14603
14603
  let separator = "";
14604
14604
  let maximumPropertiesToStringify = Math.min(keyLength, maximumBreadth);
14605
14605
  if (isTypedArrayWithEntries(value)) {
14606
- res += stringifyTypedArray(value, join4, maximumBreadth);
14606
+ res += stringifyTypedArray(value, join6, maximumBreadth);
14607
14607
  keys = keys.slice(value.length);
14608
14608
  maximumPropertiesToStringify -= value.length;
14609
- separator = join4;
14609
+ separator = join6;
14610
14610
  }
14611
14611
  if (deterministic) {
14612
14612
  keys = sort(keys, comparator);
@@ -14617,13 +14617,13 @@ ${indentation}`;
14617
14617
  const tmp = stringifyIndent(key2, value[key2], stack, spacer, indentation);
14618
14618
  if (tmp !== void 0) {
14619
14619
  res += `${separator}${strEscape(key2)}: ${tmp}`;
14620
- separator = join4;
14620
+ separator = join6;
14621
14621
  }
14622
14622
  }
14623
14623
  if (keyLength > maximumBreadth) {
14624
14624
  const removedKeys = keyLength - maximumBreadth;
14625
14625
  res += `${separator}"...": "${getItemCount(removedKeys)} not stringified"`;
14626
- separator = join4;
14626
+ separator = join6;
14627
14627
  }
14628
14628
  if (separator !== "") {
14629
14629
  res = `
@@ -42678,9 +42678,15 @@ var import_ora = __toESM(require("ora"));
42678
42678
  var import_boxen = __toESM(require("boxen"));
42679
42679
  var readline = __toESM(require("readline"));
42680
42680
  init_dist();
42681
+ var import_fs5 = require("fs");
42682
+ var import_path7 = require("path");
42683
+ var import_url = require("url");
42684
+ var import_meta = {};
42685
+ var __dirname2 = (0, import_path7.dirname)((0, import_url.fileURLToPath)(import_meta.url));
42686
+ var packageJson = JSON.parse((0, import_fs5.readFileSync)((0, import_path7.join)(__dirname2, "../package.json"), "utf-8"));
42681
42687
  var komodo3 = new Komodo();
42682
42688
  var program = new import_commander.Command();
42683
- program.name("komodo").description("The simple way to set up your project").version("0.1.0");
42689
+ program.name("komodo").description("The simple way to set up your project").version(packageJson.version);
42684
42690
  var gradientColors = [
42685
42691
  "#ffffff",
42686
42692
  "#f0fff0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "komodo-cli",
3
- "version": "1.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "The simple way to set up your project. Just say what you want to build.",
5
5
  "bin": {
6
6
  "komodo": "./dist/index.js"