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 +1 -1
- package/src/index.js +5 -3
- package/src/utils/repos.js +1 -1
package/package.json
CHANGED
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
|
|
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) +
|