diff options
Diffstat (limited to 'src/cli/create_command.zig')
-rw-r--r-- | src/cli/create_command.zig | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/cli/create_command.zig b/src/cli/create_command.zig index cc486b4a6..688c2e6a0 100644 --- a/src/cli/create_command.zig +++ b/src/cli/create_command.zig @@ -1467,10 +1467,12 @@ pub const CreateCommand = struct { std.os.ftruncate(package_json_file.?.handle, written + 1) catch {}; - if (needs.bun_bun_for_nextjs) { - try postinstall_tasks.append(ctx.allocator, InjectionPrefill.bun_bun_for_nextjs_task); - } else if (bun_bun_for_react_scripts) { - try postinstall_tasks.append(ctx.allocator, try std.fmt.allocPrint(ctx.allocator, "bun bun {s}", .{create_react_app_entry_point_path})); + if (!create_options.skip_install) { + if (needs.bun_bun_for_nextjs) { + try postinstall_tasks.append(ctx.allocator, InjectionPrefill.bun_bun_for_nextjs_task); + } else if (bun_bun_for_react_scripts) { + try postinstall_tasks.append(ctx.allocator, try std.fmt.allocPrint(ctx.allocator, "bun bun {s}", .{create_react_app_entry_point_path})); + } } } } @@ -1669,6 +1671,7 @@ pub const CreateCommand = struct { \\ <b><cyan>cd {s}<r> \\ <b><cyan>bun<r> \\ + \\ , .{ filesystem.relativeTo(destination), }); |