@aspects-ai/workspace-cli 0.1.16 → 0.1.18
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 -7
- package/package.json +2 -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.18",
|
|
10
10
|
private: false,
|
|
11
11
|
description: "Lightweight CLI for installing libraries into workspaces",
|
|
12
12
|
type: "module",
|
|
@@ -24,6 +24,7 @@ var package_default = {
|
|
|
24
24
|
"src/registry"
|
|
25
25
|
],
|
|
26
26
|
dependencies: {
|
|
27
|
+
"@remotion/cli": "4.0.356",
|
|
27
28
|
chalk: "^5.3.0",
|
|
28
29
|
commander: "^12.0.0",
|
|
29
30
|
execa: "^8.0.0",
|
|
@@ -625,16 +626,21 @@ import { execa as execa2 } from "execa";
|
|
|
625
626
|
import { createRequire } from "module";
|
|
626
627
|
import path7 from "path";
|
|
627
628
|
function createRemotionCommand() {
|
|
628
|
-
const command = new Command5("remotion").description("Run remotion CLI commands using the bundled remotion installation").allowUnknownOption().allowExcessArguments().action(async (
|
|
629
|
-
const
|
|
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) : [];
|
|
630
632
|
const require2 = createRequire(import.meta.url);
|
|
631
|
-
const remotionCliPath = require2.resolve("remotion/cli");
|
|
632
|
-
const
|
|
633
|
-
const remotionBin = path7.join(
|
|
633
|
+
const remotionCliPath = require2.resolve("@remotion/cli/package.json");
|
|
634
|
+
const remotionCliDir = path7.dirname(remotionCliPath);
|
|
635
|
+
const remotionBin = path7.join(remotionCliDir, "remotion-cli.js");
|
|
634
636
|
try {
|
|
635
637
|
await execa2("node", [remotionBin, ...args], {
|
|
636
638
|
stdio: "inherit",
|
|
637
|
-
cwd: process.cwd()
|
|
639
|
+
cwd: process.cwd(),
|
|
640
|
+
env: {
|
|
641
|
+
...process.env,
|
|
642
|
+
ANIMATION_SSR_MODE: "true"
|
|
643
|
+
}
|
|
638
644
|
});
|
|
639
645
|
} catch (error) {
|
|
640
646
|
process.exit(error.exitCode || 1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aspects-ai/workspace-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Lightweight CLI for installing libraries into workspaces",
|
|
6
6
|
"type": "module",
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"src/registry"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
+
"@remotion/cli": "4.0.356",
|
|
21
22
|
"chalk": "^5.3.0",
|
|
22
23
|
"commander": "^12.0.0",
|
|
23
24
|
"execa": "^8.0.0",
|