create-video 4.0.520 → 4.0.521

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.
@@ -1,10 +1,10 @@
1
1
  import type { Template } from './templates';
2
- export type PackageManager = 'npm' | 'yarn' | 'pnpm' | 'bun';
2
+ export type PackageManager = 'npm' | 'yarn' | 'pnpm' | 'bun' | 'nub';
3
3
  export declare const selectPackageManager: () => PackageManager;
4
- export declare const getInstallCommand: (manager: PackageManager) => "bun install" | "npm i" | "pnpm i" | "yarn" | undefined;
5
- export declare const getRunCommand: (manager: PackageManager) => "bun run" | "npm run" | "pnpm run" | "yarn run";
6
- export declare const getRenderCommand: (manager: PackageManager) => "bunx remotion render" | "npx remotion render" | "pnpm exec remotion render" | "yarn remotion render";
7
- export declare const getUpgradeCommand: (manager: PackageManager) => "bunx remotion upgrade" | "npx remotion upgrade" | "pnpm exec remotion upgrade" | "yarn remotion upgrade";
4
+ export declare const getInstallCommand: (manager: PackageManager) => "bun install" | "npm i" | "nub install" | "pnpm i" | "yarn" | undefined;
5
+ export declare const getRunCommand: (manager: PackageManager) => "bun run" | "npm run" | "nub run" | "pnpm run" | "yarn run";
6
+ export declare const getRenderCommand: (manager: PackageManager) => "bunx remotion render" | "npx remotion render" | "nubx remotion render" | "pnpm exec remotion render" | "yarn remotion render";
7
+ export declare const getUpgradeCommand: (manager: PackageManager) => "bunx remotion upgrade" | "npx remotion upgrade" | "nubx remotion upgrade" | "pnpm exec remotion upgrade" | "yarn remotion upgrade";
8
8
  export declare const getDevCommand: (manager: PackageManager, template: Template) => string | undefined;
9
9
  export declare const getPackageManagerVersion: (manager: PackageManager) => Promise<string>;
10
10
  export declare const getPackageManagerVersionOrNull: (manager: PackageManager) => Promise<string | null>;
@@ -36,6 +36,10 @@ const shouldUsePnpm = () => {
36
36
  }
37
37
  };
38
38
  const selectPackageManager = () => {
39
+ var _a;
40
+ if ((_a = process.env.npm_config_user_agent) === null || _a === void 0 ? void 0 : _a.includes('nub/')) {
41
+ return 'nub';
42
+ }
39
43
  if (shouldUseYarn()) {
40
44
  return 'yarn';
41
45
  }
@@ -61,6 +65,9 @@ const getInstallCommand = (manager) => {
61
65
  if (manager === 'bun') {
62
66
  return `bun install`;
63
67
  }
68
+ if (manager === 'nub') {
69
+ return `nub install`;
70
+ }
64
71
  };
65
72
  exports.getInstallCommand = getInstallCommand;
66
73
  const getStartCommand = (manager) => {
@@ -76,6 +83,9 @@ const getStartCommand = (manager) => {
76
83
  if (manager === 'bun') {
77
84
  return `bun run dev`;
78
85
  }
86
+ if (manager === 'nub') {
87
+ return `nub run dev`;
88
+ }
79
89
  };
80
90
  const getRunCommand = (manager) => {
81
91
  if (manager === 'npm') {
@@ -90,6 +100,9 @@ const getRunCommand = (manager) => {
90
100
  if (manager === 'bun') {
91
101
  return `bun run`;
92
102
  }
103
+ if (manager === 'nub') {
104
+ return `nub run`;
105
+ }
93
106
  throw new TypeError('unknown package manager');
94
107
  };
95
108
  exports.getRunCommand = getRunCommand;
@@ -106,6 +119,9 @@ const getRenderCommand = (manager) => {
106
119
  if (manager === 'bun') {
107
120
  return `bunx remotion render`;
108
121
  }
122
+ if (manager === 'nub') {
123
+ return `nubx remotion render`;
124
+ }
109
125
  throw new TypeError('unknown package manager');
110
126
  };
111
127
  exports.getRenderCommand = getRenderCommand;
@@ -122,6 +138,9 @@ const getUpgradeCommand = (manager) => {
122
138
  if (manager === 'bun') {
123
139
  return `bunx remotion upgrade`;
124
140
  }
141
+ if (manager === 'nub') {
142
+ return `nubx remotion upgrade`;
143
+ }
125
144
  throw new TypeError('unknown package manager');
126
145
  };
127
146
  exports.getUpgradeCommand = getUpgradeCommand;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/create-video"
4
4
  },
5
5
  "name": "create-video",
6
- "version": "4.0.520",
6
+ "version": "4.0.521",
7
7
  "description": "Create a new Remotion project",
8
8
  "main": "dist/index.js",
9
9
  "bin": {
@@ -29,7 +29,7 @@
29
29
  "@types/minimist": "1.2.2",
30
30
  "@types/prompts": "2.4.9",
31
31
  "react": "19.2.3",
32
- "@remotion/eslint-config-internal": "4.0.520",
32
+ "@remotion/eslint-config-internal": "4.0.521",
33
33
  "eslint": "9.19.0",
34
34
  "@typescript/native-preview": "7.0.0-dev.20260217.1"
35
35
  },