@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.
- package/dist/index.js +13 -5
- 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.
|
|
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
|
|
631
|
-
const args =
|
|
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
|
-
|
|
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: {
|