bun-workspaces 1.8.0 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -12,7 +12,7 @@ This is a CLI and TypeScript API to enhance your monorepo development with Bun's
12
12
  - Get metadata about your monorepo 🤖
13
13
  - Orchestrate your workspaces' `package.json` scripts 📋
14
14
  - Run inline [Bun Shell](https://bun.com/docs/runtime/shell) scripts in workspaces 🐚
15
- Use the [MCP server](https://bunworkspaces.com/ai/mcp) for your AI tooling to learn how to use `bun-workspaces` and add project metadata to context! 🛠️
15
+ - Use the [MCP server](https://bunworkspaces.com/ai/mcp) for your AI tooling to learn how to use `bun-workspaces` and add project metadata to context! 🛠️
16
16
 
17
17
  This is a tool to help manage a Bun monorepo, offering features beyond what [Bun's --filter feature](https://bun.com/docs/pm/filter) can do. It can be used to get a variety of metadata about your project and run scripts across your workspaces with advanced control.
18
18
 
@@ -254,7 +254,8 @@ Workspace configs can be placed in a workspace's directory at `bw.workspace.ts`.
254
254
  ```typescript
255
255
  // bw.workspace.ts — place in a workspace directory
256
256
 
257
- // Also supported: bw.workspace.js, bw.workspace.json, bw.workspace.jsonc, or a "bw" key in package.json
257
+ // Also supported: bw.workspace.js, bw.workspace.json, bw.workspace.jsonc,
258
+ // or a "bw" key in package.json
258
259
 
259
260
  import { defineWorkspaceConfig } from "bun-workspaces/config";
260
261
 
@@ -288,7 +289,9 @@ which can also apply workspace configs in bulk by using workspace patterns.
288
289
 
289
290
  ```typescript
290
291
  // bw.root.ts — place in your project root directory
291
- // Also supported: bw.root.js, bw.root.json, bw.root.jsonc, or a "bw" key in package.json
292
+ // Also supported: bw.root.js, bw.root.json, bw.root.jsonc,
293
+ // or a "bw-root" key in package.json
294
+
292
295
  import { defineRootConfig } from "bun-workspaces/config";
293
296
 
294
297
  export default defineRootConfig({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bun-workspaces",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "A monorepo management tool for Bun, with a CLI and API to enhance Bun's native workspaces.",
5
5
  "license": "MIT",
6
6
  "exports": {
@@ -4,11 +4,7 @@ import {
4
4
  defineErrors,
5
5
  } from "../../internal/core/index.mjs";
6
6
 
7
- const ERRORS = defineErrors(
8
- BunWorkspacesError,
9
- "OutputStreamStarted",
10
- "OutputStreamDone",
11
- );
7
+ const ERRORS = defineErrors(BunWorkspacesError, "OutputStreamStarted");
12
8
  class _ProcessOutput {
13
9
  constructor(stream, metadata) {
14
10
  this.#inputStream = stream;
@@ -95,11 +91,6 @@ class _ProcessOutput {
95
91
  return this.#error;
96
92
  }
97
93
  #onStart() {
98
- if (this.#isDone) {
99
- throw new ERRORS.OutputStreamDone(
100
- "The output stream has already been closed.",
101
- );
102
- }
103
94
  if (this.#isStarted) {
104
95
  throw new ERRORS.OutputStreamStarted(
105
96
  "Only one stream can be opened via .bytes() or .text(). This stream has already been opened.",