bun-dev-server 1.0.4 → 1.1.0
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 +1 -3
- package/dist/buildManager.d.ts +1 -1
- package/dist/bunServeConfig.d.ts +0 -15
- package/dist/fileWatcher.d.ts +3 -2
- package/dist/index.js +892 -183
- package/dist/index.js.map +14 -13
- package/package.json +9 -8
- package/dist/bunTSWatcher.d.ts +0 -2
- package/dist/tsChecker.d.ts +0 -5
package/README.md
CHANGED
|
@@ -55,7 +55,6 @@ Options that are available for configuration
|
|
|
55
55
|
| buildConfig | true | N/A | The build configuration to use for the server. |
|
|
56
56
|
| watchDir | true | N/A | The directory to watch for changes. |
|
|
57
57
|
| watchDelay | false | 1000 | The delay in milliseconds to wait before starting <br> a new build once a file has changed.<br> Used in debounce function, in case many changes <br>happen in file system at once. |
|
|
58
|
-
| enableTSC | false | false | Whether to enable TypeScript checking <br>it will use `tscConfigPath` in your project directory. |
|
|
59
58
|
| tscConfigPath | false | `./tsconfig.json` | The path to the TypeScript configuration file. |
|
|
60
59
|
| writeManifest | false | false | Whether to write the manifest file. |
|
|
61
60
|
| manifestName | false | `bun_server_manifest.json`| The name of the manifest file. |
|
|
@@ -75,5 +74,4 @@ Options that are available for configuration
|
|
|
75
74
|
| static | false | undefined | Static bun responses, can be used for things like `/favicon.ico` etc. |
|
|
76
75
|
| waitForTSCSuccessBeforeReload | false | undefined | Whether to wait for the TypeScript check to finish before reloading the page. |
|
|
77
76
|
| broadcastBuildOutputToClient | false | `true` | Whether to broadcast the build output to the browser.
|
|
78
|
-
| broadcastBuildOutputToConsole | false | `true` | Whether to broadcast the build output to the console.
|
|
79
|
-
| broadcastTSCErrorToClient | false | undefined | Whether to broadcast the TypeScript check error to the client.
|
|
77
|
+
| broadcastBuildOutputToConsole | false | `true` | Whether to broadcast the build output to the console.
|
package/dist/buildManager.d.ts
CHANGED
package/dist/bunServeConfig.d.ts
CHANGED
|
@@ -29,16 +29,6 @@ export interface BunDevServerConfig extends Partial<BunServeConfig> {
|
|
|
29
29
|
* @default 1000
|
|
30
30
|
*/
|
|
31
31
|
watchDelay?: number;
|
|
32
|
-
/**
|
|
33
|
-
* Whether to enable TypeScript checking it will use `tscConfigPath` in your project directory.
|
|
34
|
-
* @default false
|
|
35
|
-
*/
|
|
36
|
-
enableTSC?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Whether to broadcast the TypeScript check error to the client.
|
|
39
|
-
* @default false
|
|
40
|
-
*/
|
|
41
|
-
broadcastTSCErrorToClient?: boolean;
|
|
42
32
|
/**
|
|
43
33
|
* The path to the TypeScript configuration file.
|
|
44
34
|
* @default "./tsconfig.json".
|
|
@@ -64,11 +54,6 @@ export interface BunDevServerConfig extends Partial<BunServeConfig> {
|
|
|
64
54
|
* @default "none"
|
|
65
55
|
*/
|
|
66
56
|
hotReload?: "plugin" | "footer" | "none";
|
|
67
|
-
/**
|
|
68
|
-
* Whether to wait for the TypeScript check to finish before reloading the page.
|
|
69
|
-
* @default false
|
|
70
|
-
*/
|
|
71
|
-
waitForTSCSuccessBeforeReload?: boolean;
|
|
72
57
|
/**
|
|
73
58
|
* Whether to broadcast the build output to the browser.
|
|
74
59
|
* @default true
|
package/dist/fileWatcher.d.ts
CHANGED
|
@@ -6,8 +6,9 @@ import { type BuildEnvPaths } from "./buildManager";
|
|
|
6
6
|
* @param srcWatch - The absolute path to watch for changes
|
|
7
7
|
* @param importMeta - The ImportMeta object from the caller
|
|
8
8
|
* @param finalConfig - The final server configuration
|
|
9
|
-
* @param
|
|
9
|
+
* @param paths - The absolute paths used for building, serving and watching
|
|
10
10
|
* @param buildCfg - The build configuration
|
|
11
11
|
* @param bunServer - The Bun server instance
|
|
12
|
+
* @param signal - Optional AbortSignal that stops watching when aborted
|
|
12
13
|
*/
|
|
13
|
-
export declare function startFileWatcher(srcWatch: string, importMeta: ImportMeta, finalConfig: BunDevServerConfig, paths: BuildEnvPaths, buildCfg: BuildConfig, bunServer: Server<any
|
|
14
|
+
export declare function startFileWatcher(srcWatch: string, importMeta: ImportMeta, finalConfig: BunDevServerConfig, paths: BuildEnvPaths, buildCfg: BuildConfig, bunServer: Server<any>, signal?: AbortSignal): Promise<void>;
|