diff options
author | 2021-10-16 23:49:39 -0700 | |
---|---|---|
committer | 2021-10-16 23:49:39 -0700 | |
commit | e63fbcefe9260cc8e3766da8cd78099d5404502c (patch) | |
tree | a4d37912df063d43a2ef20b3a5f07b706e4af21c /src/cli/create_command.zig | |
parent | dcc29d3db670ef84d2ea32708b62f5727b1933b2 (diff) | |
download | bun-e63fbcefe9260cc8e3766da8cd78099d5404502c.tar.gz bun-e63fbcefe9260cc8e3766da8cd78099d5404502c.tar.zst bun-e63fbcefe9260cc8e3766da8cd78099d5404502c.zip |
bump!
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), }); |