From 1a82354be92f968766ce1a1f8789b4459a337f8d Mon Sep 17 00:00:00 2001 From: dave caruso Date: Thu, 7 Sep 2023 03:50:17 -0700 Subject: [PATCH] dfshaj --- src/cli.zig | 7 ++++++- src/cli/package_manager_command.zig | 2 +- test/js/node/fs/fs.test.ts | 6 +++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/cli.zig b/src/cli.zig index e9e7fc44e6d99..2326f346aca01 100644 --- a/src/cli.zig +++ b/src/cli.zig @@ -861,6 +861,7 @@ pub const HelpCommand = struct { "@evan/duckdb", "@zarfjs/zarf", "zod", + "tailwindcss", }; pub const packages_to_x_filler = [_]string{ @@ -869,6 +870,8 @@ pub const HelpCommand = struct { "vite", "prisma", "nuxi", + "prettier", + "eslint", }; pub const packages_to_create_filler = [_]string{ @@ -876,6 +879,7 @@ pub const HelpCommand = struct { "vite", "astro", "svelte", + "elysia", }; pub fn printWithReason(comptime reason: Reason) void { @@ -884,6 +888,7 @@ pub const HelpCommand = struct { \\ run ./my-script.ts Run JavaScript with Bun, a package.json script, or a bin \\ test Run unit tests with Bun \\ x {s:<16} Install and execute a package bin (bunx) + // \\ repl Start a REPL session with Bun \\ \\ init Start an empty Bun project from a blank template \\ create {s:<16} Create a new project from a template (bun c) @@ -918,8 +923,8 @@ pub const HelpCommand = struct { packages_to_x_filler[package_x_i], packages_to_create_filler[package_create_i], packages_to_add_filler[package_add_i], - packages_to_add_filler[(package_add_i + 1) % packages_to_add_filler.len], packages_to_remove_filler[package_remove_i], + packages_to_add_filler[(package_add_i + 1) % packages_to_add_filler.len], }; switch (reason) { diff --git a/src/cli/package_manager_command.zig b/src/cli/package_manager_command.zig index 35a9c29e75500..a70dec02083ff 100644 --- a/src/cli/package_manager_command.zig +++ b/src/cli/package_manager_command.zig @@ -259,7 +259,7 @@ pub const PackageManagerCommand = struct { \\ bun pm cache print the path to the cache folder \\ bun pm cache rm clear the cache \\ - \\Learn more about these at https://bun.sh/docs/install/utilities + \\Learn more about these at https://bun.sh/docs/install/utilities \\ , .{}); diff --git a/test/js/node/fs/fs.test.ts b/test/js/node/fs/fs.test.ts index 384230dd9e1b6..0578e0fc7c99a 100644 --- a/test/js/node/fs/fs.test.ts +++ b/test/js/node/fs/fs.test.ts @@ -2025,7 +2025,11 @@ it("BigIntStats", () => { it("test syscall errno, issue#4198", () => { const path = `${tmpdir()}/non-existent-${Date.now()}.txt`; expect(() => openSync(path, "r")).toThrow("No such file or directory"); - expect(() => readSync(2147483640, Buffer.alloc(0))).toThrow("EBADF"); + if (process.platform == "darwin") { + expect(() => readSync(2147483640, Buffer.alloc(0))).toThrow("Bad file descriptor"); + } else { + expect(() => readSync(2147483640, Buffer.alloc(0))).toThrow("Bad file number"); + } expect(() => readlinkSync(path)).toThrow("No such file or directory"); expect(() => realpathSync(path)).toThrow("No such file or directory"); expect(() => readFileSync(path)).toThrow("No such file or directory");