create-routify 1.5.6 → 1.5.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-routify",
3
- "version": "v1.5.6",
3
+ "version": "v1.5.8",
4
4
  "description": "A powerful cli for super-powering your routify development experience",
5
5
  "main": "index.js",
6
6
  "type": "module",
package/src/index.js CHANGED
@@ -184,7 +184,7 @@ async function runPrompts(options, configs) {
184
184
  }
185
185
 
186
186
  options.template = options.templates.find(
187
- (t) => t.name === options.starterTemplate,
187
+ (t) => t.manifest.name === options.starterTemplate,
188
188
  );
189
189
 
190
190
  if (!options.template)
@@ -327,7 +327,9 @@ const removeExcludedFiles = async (options) => {
327
327
  export const run = async (options) => {
328
328
  const s = p.spinner();
329
329
  emitter.on('download', (url) => s.start(`Downloading ${url}`));
330
- emitter.on('downloaded', (url) => s.stop(`Downloaded ${url}`));
330
+ emitter.on('downloaded', ({ url, path }) =>
331
+ s.stop(`Downloaded ${url} -> ${path}`),
332
+ );
331
333
  const configs = (await import('../config.js')).default;
332
334
 
333
335
  const tools = { prompts: p };
@@ -342,9 +344,9 @@ export const run = async (options) => {
342
344
  await handleFeatures(options);
343
345
  const { preInstall, postInstall } = options.template.manifest;
344
346
  await preInstall(options, tools);
347
+ await removeExcludedFiles(options);
345
348
  await install(options);
346
349
  await postInstall(options, tools);
347
- await removeExcludedFiles(options);
348
350
 
349
351
  p.note(
350
352
  prompts.nextSteps(options.dir, options.packageManager) +
@@ -31,7 +31,7 @@ const ensureRepo = async (url, force, onDownload) => {
31
31
  else resolve(null);
32
32
  }),
33
33
  );
34
- emitter.emit('downloaded', url);
34
+ emitter.emit('downloaded', { url, path: repoPath });
35
35
  }
36
36
 
37
37
  // return path to repo