reachable errors (#10190)

Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
This commit is contained in:
Dylan Conway
2024-04-12 19:02:45 -07:00
committed by GitHub
parent 1820d08d25
commit 176af5cf58
4 changed files with 25 additions and 5 deletions

View File

@@ -378,7 +378,7 @@ pub const CreateCommand = struct {
progress.refresh();
var pluckers: [1]Archive.Plucker = if (!create_options.skip_package_json)
[1]Archive.Plucker{try Archive.Plucker.init("package.json", 2048, ctx.allocator)}
[1]Archive.Plucker{try Archive.Plucker.init(comptime strings.literal(bun.OSPathChar, "package.json"), 2048, ctx.allocator)}
else
[1]Archive.Plucker{undefined};