litestar-vite-plugin 0.4.1 → 0.4.2
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/index.cjs +5 -4
- package/dist/index.mjs +5 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -72,6 +72,7 @@ function resolveLitestarPlugin(pluginConfig) {
|
|
|
72
72
|
return {
|
|
73
73
|
base: userConfig.base ?? (command === "build" ? resolveBase(pluginConfig, assetUrl) : pluginConfig.assetUrl),
|
|
74
74
|
publicDir: userConfig.publicDir ?? false,
|
|
75
|
+
clearScreen: false,
|
|
75
76
|
build: {
|
|
76
77
|
manifest: userConfig.build?.manifest ?? !ssr,
|
|
77
78
|
outDir: userConfig.build?.outDir ?? resolveOutDir(pluginConfig, ssr),
|
|
@@ -173,9 +174,9 @@ function resolveLitestarPlugin(pluginConfig) {
|
|
|
173
174
|
}
|
|
174
175
|
};
|
|
175
176
|
process.on("exit", clean);
|
|
176
|
-
process.on("SIGINT", process.exit);
|
|
177
|
-
process.on("SIGTERM", process.exit);
|
|
178
|
-
process.on("SIGHUP", process.exit);
|
|
177
|
+
process.on("SIGINT", process.exit(0));
|
|
178
|
+
process.on("SIGTERM", process.exit(0));
|
|
179
|
+
process.on("SIGHUP", process.exit(0));
|
|
179
180
|
exitHandlersBound = true;
|
|
180
181
|
}
|
|
181
182
|
return () => server.middlewares.use((req, res, next) => {
|
|
@@ -212,7 +213,7 @@ function ensureCommandShouldRunInEnvironment(command, env) {
|
|
|
212
213
|
}
|
|
213
214
|
}
|
|
214
215
|
function litestarVersion() {
|
|
215
|
-
return "
|
|
216
|
+
return "";
|
|
216
217
|
}
|
|
217
218
|
function pluginVersion() {
|
|
218
219
|
try {
|
package/dist/index.mjs
CHANGED
|
@@ -43,6 +43,7 @@ function resolveLitestarPlugin(pluginConfig) {
|
|
|
43
43
|
return {
|
|
44
44
|
base: userConfig.base ?? (command === "build" ? resolveBase(pluginConfig, assetUrl) : pluginConfig.assetUrl),
|
|
45
45
|
publicDir: userConfig.publicDir ?? false,
|
|
46
|
+
clearScreen: false,
|
|
46
47
|
build: {
|
|
47
48
|
manifest: userConfig.build?.manifest ?? !ssr,
|
|
48
49
|
outDir: userConfig.build?.outDir ?? resolveOutDir(pluginConfig, ssr),
|
|
@@ -144,9 +145,9 @@ function resolveLitestarPlugin(pluginConfig) {
|
|
|
144
145
|
}
|
|
145
146
|
};
|
|
146
147
|
process.on("exit", clean);
|
|
147
|
-
process.on("SIGINT", process.exit);
|
|
148
|
-
process.on("SIGTERM", process.exit);
|
|
149
|
-
process.on("SIGHUP", process.exit);
|
|
148
|
+
process.on("SIGINT", process.exit(0));
|
|
149
|
+
process.on("SIGTERM", process.exit(0));
|
|
150
|
+
process.on("SIGHUP", process.exit(0));
|
|
150
151
|
exitHandlersBound = true;
|
|
151
152
|
}
|
|
152
153
|
return () => server.middlewares.use((req, res, next) => {
|
|
@@ -183,7 +184,7 @@ function ensureCommandShouldRunInEnvironment(command, env) {
|
|
|
183
184
|
}
|
|
184
185
|
}
|
|
185
186
|
function litestarVersion() {
|
|
186
|
-
return "
|
|
187
|
+
return "";
|
|
187
188
|
}
|
|
188
189
|
function pluginVersion() {
|
|
189
190
|
try {
|