From 1a25af5e3dde2389c747e18d565cedf39c79a43d Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Mon, 20 Mar 2023 05:57:23 -0700 Subject: Implement simple `workspaces` glob support in bun install (#2435) * [bun install] Implement `packages/*`-style globs * Fix incorrect assertion * :nail_care: * remove extraneous console.log * Fix pointer to stack memory * Add a test with a scoped package name from a glob workspace * Fixup --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> --- test/cli/install/bun-add.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/cli/install/bun-add.test.ts') diff --git a/test/cli/install/bun-add.test.ts b/test/cli/install/bun-add.test.ts index d1222993b..310341560 100644 --- a/test/cli/install/bun-add.test.ts +++ b/test/cli/install/bun-add.test.ts @@ -366,7 +366,7 @@ it("should add dependency alongside workspaces", async () => { JSON.stringify({ name: "foo", version: "0.0.1", - workspaces: ["packages/bar"], + workspaces: ["packages/*"], }), ); await mkdir(join(package_dir, "packages", "bar"), { recursive: true }); @@ -417,7 +417,7 @@ it("should add dependency alongside workspaces", async () => { expect(await file(join(package_dir, "package.json")).json()).toEqual({ name: "foo", version: "0.0.1", - workspaces: ["packages/bar"], + workspaces: ["packages/*"], dependencies: { baz: "^0.0.3", }, -- cgit v1.2.3