create-video 4.0.0-newpathfunctions.13 → 4.0.0-newpaths.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/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export declare const CreateVideoInternals: {
2
2
  FEATURED_TEMPLATES: import("./templates").Template[];
3
+ listOfRemotionPackages: string[];
3
4
  };
4
5
  export { Template } from './templates';
5
6
  declare const _default: () => never;
package/dist/index.js CHANGED
@@ -1,9 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CreateVideoInternals = void 0;
4
+ const list_of_remotion_packages_1 = require("./list-of-remotion-packages");
4
5
  const templates_1 = require("./templates");
5
6
  exports.CreateVideoInternals = {
6
7
  FEATURED_TEMPLATES: templates_1.FEATURED_TEMPLATES,
8
+ listOfRemotionPackages: list_of_remotion_packages_1.listOfRemotionPackages,
7
9
  };
8
10
  exports.default = () => {
9
11
  throw new Error('create-video is a CLI tool only. Run `npm init video`, `pnpm create video` or `yarn create video` instead!');
@@ -0,0 +1 @@
1
+ export declare const listOfRemotionPackages: string[];
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.listOfRemotionPackages = void 0;
4
+ exports.listOfRemotionPackages = [
5
+ '@remotion/bundler',
6
+ '@remotion/cli',
7
+ '@remotion/eslint-config',
8
+ '@remotion/eslint-plugin',
9
+ '@remotion/renderer',
10
+ '@remotion/skia',
11
+ '@remotion/lottie',
12
+ '@remotion/media-utils',
13
+ '@remotion/motion-blur',
14
+ '@remotion/google-fonts',
15
+ '@remotion/noise',
16
+ '@remotion/paths',
17
+ '@remotion/babel-loader',
18
+ '@remotion/lambda',
19
+ '@remotion/player',
20
+ '@remotion/preload',
21
+ '@remotion/three',
22
+ '@remotion/gif',
23
+ '@remotion/shapes',
24
+ 'remotion',
25
+ ];
@@ -1,5 +1,4 @@
1
1
  import type { PackageManager } from './pkg-managers';
2
- export declare const listOfRemotionPackages: string[];
3
2
  export declare const patchPackageJson: ({ projectRoot, projectName, latestRemotionVersion, packageManager, }: {
4
3
  projectRoot: string;
5
4
  projectName: string;
@@ -3,29 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.patchPackageJson = exports.listOfRemotionPackages = void 0;
6
+ exports.patchPackageJson = void 0;
7
7
  const fs_1 = __importDefault(require("fs"));
8
8
  const path_1 = __importDefault(require("path"));
9
- exports.listOfRemotionPackages = [
10
- '@remotion/bundler',
11
- '@remotion/cli',
12
- '@remotion/eslint-config',
13
- '@remotion/renderer',
14
- '@remotion/skia',
15
- '@remotion/lottie',
16
- '@remotion/media-utils',
17
- '@remotion/motion-blur',
18
- '@remotion/google-fonts',
19
- '@remotion/noise',
20
- '@remotion/paths',
21
- '@remotion/babel-loader',
22
- '@remotion/lambda',
23
- '@remotion/player',
24
- '@remotion/preload',
25
- '@remotion/three',
26
- '@remotion/gif',
27
- 'remotion',
28
- ];
9
+ const list_of_remotion_packages_1 = require("./list-of-remotion-packages");
29
10
  const patchPackageJson = ({ projectRoot, projectName, latestRemotionVersion, packageManager, }, { getPackageJson = (filename) => fs_1.default.readFileSync(filename, 'utf-8'), setPackageJson = (filename, content) => fs_1.default.writeFileSync(filename, content), } = {}) => {
30
11
  const fileName = path_1.default.join(projectRoot, 'package.json');
31
12
  const contents = getPackageJson(fileName);
@@ -33,7 +14,7 @@ const patchPackageJson = ({ projectRoot, projectName, latestRemotionVersion, pac
33
14
  const { name, dependencies, ...others } = packageJson;
34
15
  const newDependencies = Object.keys(dependencies)
35
16
  .map((d) => {
36
- if (exports.listOfRemotionPackages.includes(d)) {
17
+ if (list_of_remotion_packages_1.listOfRemotionPackages.includes(d)) {
37
18
  return [d, latestRemotionVersion];
38
19
  }
39
20
  return [d, dependencies[d]];
@@ -102,7 +102,7 @@ const getFileForTemplate = (template, file) => {
102
102
  (0, vitest_1.expect)(contents).not.toContain('Config.Puppeteer');
103
103
  (0, vitest_1.expect)(contents).not.toContain('Config.Output');
104
104
  (0, vitest_1.expect)(contents).not.toContain('Config.Preview');
105
- });
105
+ }, 12000);
106
106
  }
107
107
  });
108
108
  const findFile = async (options) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-video",
3
- "version": "4.0.0-newpathfunctions.13+40cc970bd",
3
+ "version": "4.0.0-newpaths.1+2111c6d63",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -39,5 +39,5 @@
39
39
  "typescript": "^4.7.0",
40
40
  "vitest": "0.24.3"
41
41
  },
42
- "gitHead": "40cc970bd20f2c9fde0c1644f1c9f33cd47f3dc7"
42
+ "gitHead": "2111c6d63fe0c6b7d858b595775f090e88616aac"
43
43
  }