Skip to content

Commit 7f58935

Browse files
committed
chore: oops
1 parent bffca9c commit 7f58935

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/cli.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,14 @@ ${chalk.yellow(
4040

4141
create('create-create-app', {
4242
templateRoot,
43-
caveat,
44-
promptForTemplate: true,
45-
4643
modifyName: (name) => (name.startsWith('create-') ? name : `create-${name}`),
4744

45+
promptForTemplate: true,
46+
skipNpmInstall: true,
47+
4848
after: async ({ installNpmPackage }: AfterHookOptions) => {
4949
console.log('Installing the latest version of create-create-app');
5050
await installNpmPackage('create-create-app');
5151
},
52+
caveat,
5253
});

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,10 @@ export async function create(appName: string, options: Options) {
276276
if (exists('package.json', packageDir)) {
277277
// guess which package manager to use
278278
const packageManager = args['node-pm'] ?? whichPm();
279-
console.log(args);
279+
280280
// install deps only if skipNpmInstall is not falsy
281281
if (!(skipNpmInstall || args['skip-install'])) {
282+
console.log(`\nInstalling dependencies using ${packageManager}`);
282283
await installDeps(packageDir, packageManager);
283284
}
284285

src/npm.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ export async function installDeps(rootDir: string, pm: PackageManager) {
2323
let command: string;
2424
let args: string[];
2525

26-
console.log(`Installing dependencies using ${pm}`);
27-
2826
switch (pm) {
2927
case 'npm': {
3028
command = 'npm';

0 commit comments

Comments
 (0)