canicode 0.7.0 → 0.7.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.
- package/dist/cli/index.js +7 -7
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -2563,11 +2563,11 @@ async function runCalibration(config2, executor, options) {
|
|
|
2563
2563
|
};
|
|
2564
2564
|
}
|
|
2565
2565
|
}
|
|
2566
|
-
|
|
2567
|
-
|
|
2566
|
+
var require2 = createRequire(import.meta.url);
|
|
2567
|
+
var pkg = require2("../../package.json");
|
|
2568
2568
|
function printDocsIndex() {
|
|
2569
2569
|
console.log(`
|
|
2570
|
-
CANICODE DOCUMENTATION
|
|
2570
|
+
CANICODE DOCUMENTATION (v${pkg.version})
|
|
2571
2571
|
|
|
2572
2572
|
canicode docs setup Full setup guide (CLI, MCP, Skills)
|
|
2573
2573
|
canicode docs rules Custom rules guide + example
|
|
@@ -4070,13 +4070,13 @@ defineRule({
|
|
|
4070
4070
|
|
|
4071
4071
|
// src/cli/index.ts
|
|
4072
4072
|
config();
|
|
4073
|
-
var
|
|
4074
|
-
var
|
|
4073
|
+
var require3 = createRequire(import.meta.url);
|
|
4074
|
+
var pkg2 = require3("../../package.json");
|
|
4075
4075
|
var cli = cac("canicode");
|
|
4076
4076
|
{
|
|
4077
4077
|
const monitoringConfig = {
|
|
4078
4078
|
environment: "cli",
|
|
4079
|
-
version:
|
|
4079
|
+
version: pkg2.version,
|
|
4080
4080
|
enabled: getTelemetryEnabled()
|
|
4081
4081
|
};
|
|
4082
4082
|
const phKey = getPosthogApiKey() || POSTHOG_API_KEY;
|
|
@@ -4620,7 +4620,7 @@ cli.help((sections) => {
|
|
|
4620
4620
|
}
|
|
4621
4621
|
);
|
|
4622
4622
|
});
|
|
4623
|
-
cli.version(
|
|
4623
|
+
cli.version(pkg2.version);
|
|
4624
4624
|
cli.parse();
|
|
4625
4625
|
//# sourceMappingURL=index.js.map
|
|
4626
4626
|
//# sourceMappingURL=index.js.map
|