bun-dev-server 0.9.84 → 0.9.85
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/dist/bunServeConfig.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +3 -3
package/dist/bunServeConfig.d.ts
CHANGED
|
@@ -117,13 +117,13 @@ export interface BunDevServerConfig extends Partial<BunServeConfig> {
|
|
|
117
117
|
* Event listener to execute before Bun builds
|
|
118
118
|
* @param env Supplied environment for the build
|
|
119
119
|
*/
|
|
120
|
-
beforeBuild?: (env: BuildEnv) => void;
|
|
120
|
+
beforeBuild?: (env: BuildEnv) => Promise<void> | void;
|
|
121
121
|
/**
|
|
122
122
|
* Event listener to execute after Bun builds
|
|
123
123
|
* @param output The output of the build
|
|
124
124
|
* @param env Supplied environment for the build
|
|
125
125
|
*/
|
|
126
|
-
afterBuild?: (output: BuildOutput, env: BuildEnv) => void;
|
|
126
|
+
afterBuild?: (output: BuildOutput, env: BuildEnv) => Promise<void> | void;
|
|
127
127
|
}
|
|
128
128
|
export interface BunServeConfig {
|
|
129
129
|
port: number;
|
package/dist/index.js
CHANGED
|
@@ -1777,7 +1777,7 @@ async function cleanBuildAndNotify(importerMeta, finalConfig, destinationPath, b
|
|
|
1777
1777
|
bunServer,
|
|
1778
1778
|
event
|
|
1779
1779
|
};
|
|
1780
|
-
finalConfig.beforeBuild?.(buildEnv);
|
|
1780
|
+
await finalConfig.beforeBuild?.(buildEnv);
|
|
1781
1781
|
try {
|
|
1782
1782
|
const output = await build(buildCfg);
|
|
1783
1783
|
publishOutputLogs(bunServer, output, finalConfig, event);
|
|
@@ -1787,7 +1787,7 @@ async function cleanBuildAndNotify(importerMeta, finalConfig, destinationPath, b
|
|
|
1787
1787
|
if (finalConfig.writeManifest) {
|
|
1788
1788
|
writeManifest(output, destinationPath, finalConfig.manifestWithHash, finalConfig.manifestName);
|
|
1789
1789
|
}
|
|
1790
|
-
finalConfig.afterBuild?.(output, buildEnv);
|
|
1790
|
+
await finalConfig.afterBuild?.(output, buildEnv);
|
|
1791
1791
|
if (finalConfig.reloadOnChange && !finalConfig.waitForTSCSuccessBeforeReload) {
|
|
1792
1792
|
bunServer.publish("message", JSON.stringify({ type: "reload" }));
|
|
1793
1793
|
}
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"exports": {
|
|
25
25
|
".": "./dist/index.js"
|
|
26
26
|
},
|
|
27
|
-
"version": "0.9.
|
|
27
|
+
"version": "0.9.85",
|
|
28
28
|
"module": "index.ts",
|
|
29
29
|
"type": "module",
|
|
30
30
|
"license": "MIT",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"build": "bun run ./build.ts"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@types/bun": "^1.2.
|
|
35
|
+
"@types/bun": "^1.2.20"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"typescript": "^5.
|
|
38
|
+
"typescript": "^5.9.2"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@types/ejs": "^3.1.5",
|