@aspects-ai/workspace-cli 0.1.20 → 0.1.22

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 +13 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { Command as Command9 } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@aspects-ai/workspace-cli",
9
- version: "0.1.19",
9
+ version: "0.1.21",
10
10
  private: false,
11
11
  description: "Lightweight CLI for installing libraries into workspaces",
12
12
  type: "module",
@@ -626,15 +626,23 @@ import { execa as execa2 } from "execa";
626
626
  import { createRequire } from "module";
627
627
  import path7 from "path";
628
628
  function createRemotionCommand() {
629
- const command = new Command5("remotion").description("Run remotion CLI commands using the bundled remotion installation").allowUnknownOption().allowExcessArguments().action(async () => {
630
- const remotionIndex = process.argv.findIndex((arg) => arg === "remotion");
631
- const args = remotionIndex !== -1 ? process.argv.slice(remotionIndex + 1) : [];
629
+ const command = new Command5("remotion").description("Run remotion CLI commands using the bundled remotion installation").allowUnknownOption().allowExcessArguments().action(async (...actionArgs) => {
630
+ const cmd = actionArgs[actionArgs.length - 1];
631
+ const args = cmd.parent?.args.slice(1) || process.argv.slice(process.argv.indexOf("remotion") + 1);
632
+ console.error("DEBUG actionArgs length:", actionArgs.length);
633
+ console.error("DEBUG cmd.args:", cmd.args);
634
+ console.error("DEBUG cmd.parent?.args:", cmd.parent?.args);
635
+ console.error("DEBUG process.argv:", process.argv);
636
+ console.error("DEBUG final args:", args);
632
637
  const require2 = createRequire(import.meta.url);
633
638
  const remotionCliPath = require2.resolve("@remotion/cli/package.json");
634
639
  const remotionCliDir = path7.dirname(remotionCliPath);
635
640
  const remotionBin = path7.join(remotionCliDir, "remotion-cli.js");
636
641
  try {
637
- await execa2("node", [remotionBin, ...args], {
642
+ const execArgs = [remotionBin, ...args];
643
+ console.error("DEBUG remotionBin:", remotionBin);
644
+ console.error("DEBUG execArgs:", execArgs);
645
+ await execa2("node", execArgs, {
638
646
  stdio: "inherit",
639
647
  cwd: process.cwd(),
640
648
  env: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aspects-ai/workspace-cli",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "private": false,
5
5
  "description": "Lightweight CLI for installing libraries into workspaces",
6
6
  "type": "module",