canicode 0.6.2 → 0.6.3

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/cli/index.js CHANGED
@@ -2,6 +2,7 @@
2
2
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'fs';
3
3
  import { writeFile, readFile, appendFile } from 'fs/promises';
4
4
  import { join, resolve, dirname, basename } from 'path';
5
+ import { createRequire } from 'module';
5
6
  import { config } from 'dotenv';
6
7
  import cac from 'cac';
7
8
  import { z } from 'zod';
@@ -4052,11 +4053,13 @@ defineRule({
4052
4053
 
4053
4054
  // src/cli/index.ts
4054
4055
  config();
4056
+ var require2 = createRequire(import.meta.url);
4057
+ var pkg = require2("../../package.json");
4055
4058
  var cli = cac("canicode");
4056
4059
  {
4057
4060
  const monitoringConfig = {
4058
4061
  environment: "cli",
4059
- version: "0.3.3",
4062
+ version: pkg.version,
4060
4063
  enabled: getTelemetryEnabled()
4061
4064
  };
4062
4065
  const phKey = getPosthogApiKey() || POSTHOG_API_KEY;