@skaile/workspaces 0.12.0 → 0.12.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.12.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`3ec05df`](https://github.com/skaile-ai/workspaces/commit/3ec05dfb162c5d40003d4eae012753c460bac754) - `skaile --version` (and the new `-v` short alias) now prints the real package version read from `package.json` at startup, instead of the hardcoded `0.1.0` placeholder that the CLI had been shipping with. This keeps the flag in sync with whatever changesets-driven release the binary was built from, so users can reliably check which release of `@skaile/workspaces` they have installed.
8
+
3
9
  ## 0.12.0
4
10
 
5
11
  ### Minor Changes
package/dist/cli/index.js CHANGED
@@ -53,11 +53,12 @@ import '../chunk-6FNCZYJY.js';
53
53
  import '../chunk-NELZIQ2E.js';
54
54
  import '../chunk-CGYEHQOX.js';
55
55
  import '../chunk-NSBPE2FW.js';
56
+ import * as fs10 from 'fs';
57
+ import fs10__default, { readFileSync, existsSync, writeFileSync, statSync } from 'fs';
56
58
  import * as path16 from 'path';
57
59
  import path16__default, { resolve, join } from 'path';
60
+ import { fileURLToPath } from 'url';
58
61
  import { Help, Command, Option } from 'commander';
59
- import * as fs10 from 'fs';
60
- import fs10__default, { existsSync, readFileSync, writeFileSync, statSync } from 'fs';
61
62
  import * as p5 from '@clack/prompts';
62
63
  import pc6 from 'picocolors';
63
64
  import * as readline from 'readline';
@@ -4057,7 +4058,7 @@ async function runCompileTest(opts) {
4057
4058
  const { logOk: logOk2, logErr: logErr2, logInfo: logInfo2, S: S2 } = await import('../helpers-I3SREIC3.js');
4058
4059
  const { tmpdir } = await import('os');
4059
4060
  const { dirname: dirname3, join: join4, resolve: resolve3 } = await import('path');
4060
- const { fileURLToPath } = await import('url');
4061
+ const { fileURLToPath: fileURLToPath2 } = await import('url');
4061
4062
  const { unlinkSync, existsSync: existsSync11 } = await import('fs');
4062
4063
  const { spawn } = await import('child_process');
4063
4064
  const { portableSpawnSync: portableSpawnSync2 } = await import('../core/index.js');
@@ -4069,7 +4070,7 @@ async function runCompileTest(opts) {
4069
4070
  return;
4070
4071
  }
4071
4072
  const outfile = join4(tmpdir(), `skaile-compile-test-${Date.now()}`);
4072
- const __thisFile = fileURLToPath(import.meta.url);
4073
+ const __thisFile = fileURLToPath2(import.meta.url);
4073
4074
  const entryPoint = resolve3(dirname3(__thisFile), "..", "index.ts");
4074
4075
  logInfo2(`Building compiled binary...`);
4075
4076
  logInfo2(`Entry: ${S2.dim(entryPoint)}`);
@@ -5508,7 +5509,13 @@ function makeWhyCommand() {
5508
5509
 
5509
5510
  // cli/src/index.ts
5510
5511
  var _defaultFormatHelp = Help.prototype.formatHelp;
5511
- var program = new Command("skaile").description("AI asset manager").version("0.1.0").enablePositionalOptions().configureHelp({
5512
+ var pkg = JSON.parse(
5513
+ readFileSync(
5514
+ path16__default.resolve(path16__default.dirname(fileURLToPath(import.meta.url)), "../../package.json"),
5515
+ "utf-8"
5516
+ )
5517
+ );
5518
+ var program = new Command("skaile").description("AI asset manager").version(pkg.version, "-v, --version", "Show the skaile CLI version").enablePositionalOptions().configureHelp({
5512
5519
  formatHelp(cmd, helper) {
5513
5520
  if (cmd.name() !== "skaile") return _defaultFormatHelp.call(helper, cmd, helper);
5514
5521
  return `