@rafael_nicoleti/jatai 1.2.1 → 1.2.2

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/jatai.cjs CHANGED
@@ -42,7 +42,8 @@ var brand_default = {
42
42
  name: "jatai",
43
43
  displayName: "Jata\xED",
44
44
  package: {
45
- name: "jatai"
45
+ name: "jatai",
46
+ cli: "@rafael_nicoleti/jatai"
46
47
  },
47
48
  commandPrefix: "jatai",
48
49
  configSection: "jatai",
@@ -2723,6 +2724,7 @@ var CONFIG_FILENAME = BRAND.files.config;
2723
2724
  var LEGACY_CONFIG_FILENAMES = BRAND.legacy.configFiles;
2724
2725
  var CONFIG_FILENAMES = [CONFIG_FILENAME, ...LEGACY_CONFIG_FILENAMES];
2725
2726
  function kitVersion() {
2727
+ const names = [BRAND.package.name, BRAND.package.cli];
2726
2728
  for (const candidate of [
2727
2729
  path.join(__dirname, "package.json"),
2728
2730
  // pacote npm da CLI: bundle na raiz do pacote
@@ -2733,7 +2735,7 @@ function kitVersion() {
2733
2735
  ]) {
2734
2736
  try {
2735
2737
  const pkg = JSON.parse(fs.readFileSync(candidate, "utf-8"));
2736
- if (pkg.name === BRAND.package.name && pkg.version) return pkg.version;
2738
+ if (pkg.name !== void 0 && names.includes(pkg.name) && pkg.version) return pkg.version;
2737
2739
  } catch {
2738
2740
  }
2739
2741
  }
@@ -27121,7 +27121,8 @@ var brand_default = {
27121
27121
  name: "jatai",
27122
27122
  displayName: "Jata\xED",
27123
27123
  package: {
27124
- name: "jatai"
27124
+ name: "jatai",
27125
+ cli: "@rafael_nicoleti/jatai"
27125
27126
  },
27126
27127
  commandPrefix: "jatai",
27127
27128
  configSection: "jatai",
@@ -11432,7 +11432,8 @@ var brand_default = {
11432
11432
  name: "jatai",
11433
11433
  displayName: "Jata\xED",
11434
11434
  package: {
11435
- name: "jatai"
11435
+ name: "jatai",
11436
+ cli: "@rafael_nicoleti/jatai"
11436
11437
  },
11437
11438
  commandPrefix: "jatai",
11438
11439
  configSection: "jatai",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rafael_nicoleti/jatai",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "CLI do Jataí — instala, atualiza e diagnostica o kit de agentes no seu projeto.",
5
5
  "license": "MIT",
6
6
  "bin": {