qunitx-cli 0.21.0 → 0.21.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/dist/cli.js +6 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2918,6 +2918,9 @@ async function run(config) {
|
|
|
2918
2918
|
]);
|
|
2919
2919
|
config.webServer = connections.server;
|
|
2920
2920
|
setupKeyboardEvents(config, cachedContent, connections);
|
|
2921
|
+
process.once("SIGTERM", () => {
|
|
2922
|
+
connections.server.close().finally(() => process.exit(EXIT_CODE_SIGTERM));
|
|
2923
|
+
});
|
|
2921
2924
|
const isHeadedWatchMode = config.open === true && config.watch;
|
|
2922
2925
|
if (config.open && !isHeadedWatchMode) {
|
|
2923
2926
|
void openOutputInBrowser(config);
|
|
@@ -3261,7 +3264,7 @@ function normalizeInternalAssetPathFromHTML(projectRoot, assetPath, htmlPath) {
|
|
|
3261
3264
|
const currentDirectory = htmlPath ? htmlPath.split("/").slice(0, -1).join("/") : projectRoot;
|
|
3262
3265
|
return assetPath.startsWith("./") ? normalize(`${currentDirectory}/${assetPath.slice(2)}`) : normalize(`${currentDirectory}/${assetPath}`);
|
|
3263
3266
|
}
|
|
3264
|
-
var WATCH_NAV_TIMEOUT_MS, PAGE_CLOSE_GRACE_MS, STDOUT_FLUSH_GRACE_MS, KEEP_ALIVE_INTERVAL_MS;
|
|
3267
|
+
var WATCH_NAV_TIMEOUT_MS, PAGE_CLOSE_GRACE_MS, STDOUT_FLUSH_GRACE_MS, KEEP_ALIVE_INTERVAL_MS, EXIT_CODE_SIGTERM;
|
|
3265
3268
|
var init_run = __esm({
|
|
3266
3269
|
"lib/commands/run.ts"() {
|
|
3267
3270
|
init_browser();
|
|
@@ -3285,6 +3288,7 @@ var init_run = __esm({
|
|
|
3285
3288
|
PAGE_CLOSE_GRACE_MS = 1e4;
|
|
3286
3289
|
STDOUT_FLUSH_GRACE_MS = 5e3;
|
|
3287
3290
|
KEEP_ALIVE_INTERVAL_MS = 1e4;
|
|
3291
|
+
EXIT_CODE_SIGTERM = 128 + 15;
|
|
3288
3292
|
}
|
|
3289
3293
|
});
|
|
3290
3294
|
|
|
@@ -3299,7 +3303,7 @@ init_color();
|
|
|
3299
3303
|
var package_default = {
|
|
3300
3304
|
name: "qunitx-cli",
|
|
3301
3305
|
type: "module",
|
|
3302
|
-
version: "0.21.
|
|
3306
|
+
version: "0.21.1",
|
|
3303
3307
|
description: "Browser runner for QUnitx: run your qunitx tests in google-chrome",
|
|
3304
3308
|
author: "Izel Nakri",
|
|
3305
3309
|
license: "MIT",
|