@revideo/create 0.1.4-alpha.875 → 0.1.4-alpha.876

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/index.js +2 -3
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -111,7 +111,7 @@ const PLUGINS = {
111
111
  `template-2d-${language}`,
112
112
  );
113
113
  copyDirectory(templateDir, response.path);
114
- createConfig(response, plugins, language);
114
+ createConfig(response, PLUGINS, language);
115
115
 
116
116
  const manifest = JSON.parse(
117
117
  fs.readFileSync(path.join(templateDir, `package.json`), 'utf-8'),
@@ -183,8 +183,7 @@ function copy(src, dest) {
183
183
 
184
184
  function createConfig(response, plugins, language) {
185
185
  const imports = [];
186
- for (const plugin of plugins) {
187
- const data = PLUGINS[plugin];
186
+ for (const data of plugins) {
188
187
  imports.push(`import ${data.variable} from '${data.package}';\n`);
189
188
  plugins.push(`${data.variable}(${data.options?.(response) ?? ''}),`);
190
189
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revideo/create",
3
- "version": "0.1.4-alpha.875+4ebe905",
3
+ "version": "0.1.4-alpha.876+062cccb",
4
4
  "description": "Quickly scaffold revideo projects",
5
5
  "main": "index.js",
6
6
  "author": "revideo",
@@ -29,5 +29,5 @@
29
29
  "minimist": "^1.2.8",
30
30
  "prompts": "^2.4.2"
31
31
  },
32
- "gitHead": "4ebe9050d130e79de7e08d1c57616f2ca741ff65"
32
+ "gitHead": "062cccbd390d0c4eb076e6ddeba60bc2d344067c"
33
33
  }