diff options
author | 2023-03-20 05:57:23 -0700 | |
---|---|---|
committer | 2023-03-20 05:57:23 -0700 | |
commit | 1a25af5e3dde2389c747e18d565cedf39c79a43d (patch) | |
tree | ea07c80c6a6d30a78d1ef930c4a9249a84a40cb8 /test/cli/install/bun-add.test.ts | |
parent | 343721627ee65caf504d67c5046b0da94bfeba72 (diff) | |
download | bun-1a25af5e3dde2389c747e18d565cedf39c79a43d.tar.gz bun-1a25af5e3dde2389c747e18d565cedf39c79a43d.tar.zst bun-1a25af5e3dde2389c747e18d565cedf39c79a43d.zip |
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>
Diffstat (limited to 'test/cli/install/bun-add.test.ts')
-rw-r--r-- | test/cli/install/bun-add.test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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", }, |