Skip to content

Commit

Permalink
publish latests
Browse files Browse the repository at this point in the history
  • Loading branch information
dmail committed Aug 20, 2024
1 parent 36fb29a commit 1762938
Show file tree
Hide file tree
Showing 10 changed files with 46 additions and 32 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsenv/core",
"version": "39.5.1",
"version": "39.5.2",
"description": "Tool to develop, test and build js projects",
"license": "MIT",
"author": {
Expand Down Expand Up @@ -76,8 +76,8 @@
"@jsenv/integrity": "0.0.2",
"@jsenv/js-module-fallback": "1.3.38",
"@jsenv/node-esm-resolution": "1.0.6",
"@jsenv/plugin-bundling": "2.7.8",
"@jsenv/plugin-minification": "1.5.5",
"@jsenv/plugin-bundling": "2.7.9",
"@jsenv/plugin-minification": "1.5.6",
"@jsenv/plugin-supervisor": "1.5.19",
"@jsenv/plugin-transpilation": "1.4.22",
"@jsenv/runtime-compat": "1.3.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/related/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsenv/cli",
"version": "0.1.39",
"version": "0.1.40",
"description": "Command Line Interface for jsenv",
"license": "MIT",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions packages/related/cli/template-node-package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
},
"devDependencies": {
"@jsenv/assert": "4.4.1",
"@jsenv/core": "39.5.1",
"@jsenv/core": "39.5.2",
"@jsenv/eslint-config-relax": "1.2.0",
"@jsenv/test": "3.5.1",
"@jsenv/test": "3.5.2",
"eslint": "9.9.0",
"prettier": "3.3.3"
}
Expand Down
8 changes: 4 additions & 4 deletions packages/related/cli/template-web-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
"@babel/plugin-syntax-import-assertions": "7.24.7",
"@jsenv/custom-elements-redefine": "0.0.1",
"@jsenv/assert": "4.4.1",
"@jsenv/core": "39.5.1",
"@jsenv/plugin-bundling": "2.7.8",
"@jsenv/plugin-minification": "1.5.5",
"@jsenv/core": "39.5.2",
"@jsenv/plugin-bundling": "2.7.9",
"@jsenv/plugin-minification": "1.5.6",
"@jsenv/eslint-config-relax": "1.2.0",
"@jsenv/test": "3.5.1",
"@jsenv/test": "3.5.2",
"eslint": "9.9.0",
"open": "10.1.0",
"@playwright/browser-chromium": "1.46.1",
Expand Down
8 changes: 4 additions & 4 deletions packages/related/cli/template-web-preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
"@babel/plugin-syntax-import-assertions": "7.24.7",
"@babel/plugin-transform-react-jsx": "7.25.2",
"@jsenv/assert": "4.4.1",
"@jsenv/core": "39.5.1",
"@jsenv/core": "39.5.2",
"@jsenv/plugin-preact": "1.6.18",
"@jsenv/plugin-bundling": "2.7.8",
"@jsenv/plugin-minification": "1.5.5",
"@jsenv/plugin-bundling": "2.7.9",
"@jsenv/plugin-minification": "1.5.6",
"@jsenv/eslint-config-relax": "1.2.0",
"@jsenv/test": "3.5.1",
"@jsenv/test": "3.5.2",
"eslint": "9.9.0",
"open": "10.1.0",
"@playwright/browser-chromium": "1.46.1",
Expand Down
10 changes: 5 additions & 5 deletions packages/related/cli/template-web-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
"@babel/plugin-syntax-import-assertions": "7.24.7",
"@babel/plugin-transform-react-jsx": "7.25.2",
"@jsenv/assert": "4.4.1",
"@jsenv/core": "39.5.1",
"@jsenv/plugin-react": "1.5.26",
"@jsenv/plugin-bundling": "2.7.8",
"@jsenv/plugin-minification": "1.5.5",
"@jsenv/core": "39.5.2",
"@jsenv/plugin-react": "1.5.27",
"@jsenv/plugin-bundling": "2.7.9",
"@jsenv/plugin-minification": "1.5.6",
"@jsenv/eslint-config-relax": "1.2.0",
"@jsenv/test": "3.5.1",
"@jsenv/test": "3.5.2",
"eslint": "9.9.0",
"open": "10.1.0",
"@playwright/browser-chromium": "1.46.1",
Expand Down
8 changes: 4 additions & 4 deletions packages/related/cli/template-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
"devDependencies": {
"@babel/plugin-syntax-import-assertions": "7.24.7",
"@jsenv/assert": "4.4.1",
"@jsenv/core": "39.5.1",
"@jsenv/core": "39.5.2",
"@jsenv/eslint-config-relax": "1.2.0",
"@jsenv/plugin-bundling": "2.7.8",
"@jsenv/plugin-minification": "1.5.5",
"@jsenv/test": "3.5.1",
"@jsenv/plugin-bundling": "2.7.9",
"@jsenv/plugin-minification": "1.5.6",
"@jsenv/test": "3.5.2",
"eslint": "9.9.0",
"open": "10.1.0",
"@playwright/browser-chromium": "1.46.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/related/plugin-as-js-classic/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsenv/plugin-as-js-classic",
"version": "1.5.53",
"version": "1.5.54",
"license": "MIT",
"repository": {
"type": "git",
Expand All @@ -23,6 +23,6 @@
"dependencies": {
"@jsenv/urls": "2.5.2",
"@jsenv/js-module-fallback": "1.3.38",
"@jsenv/plugin-bundling": "2.7.8"
"@jsenv/plugin-bundling": "2.7.9"
}
}
4 changes: 2 additions & 2 deletions packages/related/plugin-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jsenv/plugin-react",
"version": "1.5.26",
"version": "1.5.27",
"license": "MIT",
"repository": {
"type": "git",
Expand All @@ -24,7 +24,7 @@
"@babel/plugin-transform-react-jsx": "7.25.2",
"@babel/plugin-transform-react-jsx-development": "7.24.7",
"@jsenv/ast": "6.2.17",
"@jsenv/plugin-commonjs": "2.8.13",
"@jsenv/plugin-commonjs": "2.8.14",
"@jsenv/sourcemap": "1.2.23",
"@jsenv/url-meta": "8.5.2",
"react-refresh": "0.14.2"
Expand Down
24 changes: 19 additions & 5 deletions packages/related/test/dist/jsenv_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5499,13 +5499,21 @@ const startServerUsingCommand = async (
// stderr.on("line", (data) => {
// logger.debug(`[pid=${spawnedProcess.pid}][err] ${data}`);
// });
let isAbort = false;
let isTeardown = false;
let processClosed = false;
const closedPromise = new Promise((resolve) => {
spawnedProcess.once("exit", (exitCode, signal) => {
logger.debug(
`[pid=${spawnedProcess.pid}] <process did exit: exitCode=${exitCode}, signal=${signal}>`,
);
processClosed = true;
if (isAbort || isTeardown) {
logger.debug(
`web server process exit exitCode=${exitCode}, exitSignal=${signal}, pid=${spawnedProcess.pid}`,
);
} else {
logger.error(
`web server process premature exit exitCode=${exitCode}, exitSignal=${signal}, pid=${spawnedProcess.pid}`,
);
}
resolve();
});
});
Expand Down Expand Up @@ -5550,8 +5558,14 @@ const startServerUsingCommand = async (
const startOperation = Abort.startOperation();
startOperation.addAbortSignal(signal);
const timeoutAbortSource = startOperation.timeout(allocatedMs);
startOperation.addAbortCallback(killProcess);
teardownCallbackSet.add(killProcess);
startOperation.addAbortCallback(async () => {
isAbort = true;
await killProcess();
});
teardownCallbackSet.add(async () => {
isTeardown = true;
await killProcess();
});

const startedPromise = (async () => {
const logScale = [100, 250, 500];
Expand Down

0 comments on commit 1762938

Please sign in to comment.