From 720fa9c3e24d7c5d4f141bfe8c91e35d3b9a1373 Mon Sep 17 00:00:00 2001 From: dmail Date: Tue, 20 Aug 2024 12:15:51 +0200 Subject: [PATCH] publish --- dist/jsenv_core.js | 6 ++++++ package.json | 4 ++-- packages/independent/filesystem/package.json | 2 +- .../src/lifecycle/register_directory_lifecycle.js | 6 ++++++ packages/independent/https-local/package.json | 4 ++-- packages/independent/snapshot/package.json | 4 ++-- .../independent/workflow/file-size-impact/package.json | 6 +++--- .../workflow/github-pull-request-impact/package.json | 4 ++-- .../workflow/github-release-package/package.json | 6 +++--- .../independent/workflow/lighthouse-impact/package.json | 6 +++--- packages/independent/workflow/monorepo/package.json | 6 +++--- .../independent/workflow/package-publish/package.json | 4 ++-- .../independent/workflow/performance-impact/package.json | 6 +++--- packages/related/cli/package.json | 2 +- packages/related/cli/template-node-package/package.json | 4 ++-- packages/related/cli/template-web-components/package.json | 4 ++-- packages/related/cli/template-web-preact/package.json | 4 ++-- packages/related/cli/template-web-react/package.json | 6 +++--- packages/related/cli/template-web/package.json | 4 ++-- packages/related/plugin-commonjs/package.json | 4 ++-- packages/related/plugin-explorer/package.json | 4 ++-- .../chrome@128.00/cjs_to_esm/__compile_context__.json | 2 +- packages/related/plugin-react/package.json | 4 ++-- packages/related/test/dist/jsenv_test.js | 8 ++++---- packages/related/test/package.json | 4 ++-- .../test/src/execution/web_server/start_using_command.js | 4 ++-- .../src/execution/web_server/start_using_module_url.js | 4 ++-- 27 files changed, 67 insertions(+), 55 deletions(-) diff --git a/dist/jsenv_core.js b/dist/jsenv_core.js index 8202d163c2..d61c7103ab 100644 --- a/dist/jsenv_core.js +++ b/dist/jsenv_core.js @@ -3973,6 +3973,12 @@ const registerDirectoryLifecycle = ( stat: null, }; } + if (e.code === "EACCES") { + return { + type: null, + stat: null, + }; + } throw e; } }; diff --git a/package.json b/package.json index 9f2f802f26..6dbdc6220a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@jsenv/core", - "version": "39.5.3", + "version": "39.5.4", "description": "Tool to develop, test and build js projects", "license": "MIT", "author": { @@ -70,7 +70,7 @@ "@financial-times/polyfill-useragent-normaliser": "1.10.2", "@jsenv/abort": "4.3.0", "@jsenv/ast": "6.2.17", - "@jsenv/filesystem": "4.10.3", + "@jsenv/filesystem": "4.10.4", "@jsenv/humanize": "1.2.8", "@jsenv/importmap": "1.2.1", "@jsenv/integrity": "0.0.2", diff --git a/packages/independent/filesystem/package.json b/packages/independent/filesystem/package.json index 2f0745aa3f..d3c13ea298 100644 --- a/packages/independent/filesystem/package.json +++ b/packages/independent/filesystem/package.json @@ -1,6 +1,6 @@ { "name": "@jsenv/filesystem", - "version": "4.10.3", + "version": "4.10.4", "license": "MIT", "repository": { "type": "git", diff --git a/packages/independent/filesystem/src/lifecycle/register_directory_lifecycle.js b/packages/independent/filesystem/src/lifecycle/register_directory_lifecycle.js index b403a6f3ab..cc43aed219 100644 --- a/packages/independent/filesystem/src/lifecycle/register_directory_lifecycle.js +++ b/packages/independent/filesystem/src/lifecycle/register_directory_lifecycle.js @@ -112,6 +112,12 @@ export const registerDirectoryLifecycle = ( stat: null, }; } + if (e.code === "EACCES") { + return { + type: null, + stat: null, + }; + } throw e; } }; diff --git a/packages/independent/https-local/package.json b/packages/independent/https-local/package.json index 0271be3977..fa5629163b 100644 --- a/packages/independent/https-local/package.json +++ b/packages/independent/https-local/package.json @@ -1,6 +1,6 @@ { "name": "@jsenv/https-local", - "version": "3.2.2", + "version": "3.2.3", "description": "A programmatic way to generate locally trusted certificates", "license": "MIT", "repository": { @@ -40,7 +40,7 @@ "hosts:ensure-localhost-mappings": "node ./scripts/hosts/ensure_localhost_mappings.mjs" }, "dependencies": { - "@jsenv/filesystem": "4.10.3", + "@jsenv/filesystem": "4.10.4", "@jsenv/humanize": "1.2.8", "@jsenv/urls": "2.5.2", "command-exists": "1.2.9", diff --git a/packages/independent/snapshot/package.json b/packages/independent/snapshot/package.json index 56172a3188..3b0040f0e7 100644 --- a/packages/independent/snapshot/package.json +++ b/packages/independent/snapshot/package.json @@ -1,6 +1,6 @@ { "name": "@jsenv/snapshot", - "version": "2.11.1", + "version": "2.11.2", "description": "Snapshot testing", "license": "MIT", "author": { @@ -34,7 +34,7 @@ "@jsenv/ast": "6.2.17", "@jsenv/exception": "1.1.3", "@jsenv/humanize": "1.2.8", - "@jsenv/filesystem": "4.10.3", + "@jsenv/filesystem": "4.10.4", "@jsenv/terminal-recorder": "1.4.8", "@jsenv/urls": "2.5.2", "@jsenv/utils": "2.1.2", diff --git a/packages/independent/workflow/file-size-impact/package.json b/packages/independent/workflow/file-size-impact/package.json index 8d5ed5d36b..c0b6161e11 100644 --- a/packages/independent/workflow/file-size-impact/package.json +++ b/packages/independent/workflow/file-size-impact/package.json @@ -1,6 +1,6 @@ { "name": "@jsenv/file-size-impact", - "version": "14.3.1", + "version": "14.3.2", "description": "Add files size impact into pull requests", "license": "MIT", "repository": { @@ -34,8 +34,8 @@ }, "dependencies": { "@jsenv/dynamic-import-worker": "1.2.1", - "@jsenv/filesystem": "4.10.3", - "@jsenv/github-pull-request-impact": "1.8.1", + "@jsenv/filesystem": "4.10.4", + "@jsenv/github-pull-request-impact": "1.8.2", "@jsenv/urls": "2.5.2", "@jsenv/humanize": "1.2.8" } diff --git a/packages/independent/workflow/github-pull-request-impact/package.json b/packages/independent/workflow/github-pull-request-impact/package.json index b21aa85d0a..cd754f87f5 100644 --- a/packages/independent/workflow/github-pull-request-impact/package.json +++ b/packages/independent/workflow/github-pull-request-impact/package.json @@ -1,6 +1,6 @@ { "name": "@jsenv/github-pull-request-impact", - "version": "1.8.1", + "version": "1.8.2", "description": "Report pull request impact on something", "license": "MIT", "repository": { @@ -26,7 +26,7 @@ "/src/" ], "dependencies": { - "@jsenv/filesystem": "4.10.3", + "@jsenv/filesystem": "4.10.4", "@jsenv/humanize": "1.2.8" } } diff --git a/packages/independent/workflow/github-release-package/package.json b/packages/independent/workflow/github-release-package/package.json index 3103a640f9..b9637365ff 100644 --- a/packages/independent/workflow/github-release-package/package.json +++ b/packages/independent/workflow/github-release-package/package.json @@ -1,6 +1,6 @@ { "name": "@jsenv/github-release-package", - "version": "1.6.1", + "version": "1.6.2", "description": "Create github release when package version changes.", "license": "MIT", "repository": { @@ -25,8 +25,8 @@ "/src/" ], "dependencies": { - "@jsenv/filesystem": "4.10.3", + "@jsenv/filesystem": "4.10.4", "@jsenv/humanize": "1.2.8", - "@jsenv/github-pull-request-impact": "1.8.1" + "@jsenv/github-pull-request-impact": "1.8.2" } } diff --git a/packages/independent/workflow/lighthouse-impact/package.json b/packages/independent/workflow/lighthouse-impact/package.json index a4a74cc171..0869c1bdfe 100644 --- a/packages/independent/workflow/lighthouse-impact/package.json +++ b/packages/independent/workflow/lighthouse-impact/package.json @@ -1,6 +1,6 @@ { "name": "@jsenv/lighthouse-impact", - "version": "4.2.1", + "version": "4.2.2", "description": "Package description", "license": "MIT", "repository": { @@ -31,8 +31,8 @@ "dependencies": { "@jsenv/abort": "4.3.0", "@jsenv/dynamic-import-worker": "1.2.1", - "@jsenv/filesystem": "4.10.3", - "@jsenv/github-pull-request-impact": "1.8.1", + "@jsenv/filesystem": "4.10.4", + "@jsenv/github-pull-request-impact": "1.8.2", "@jsenv/humanize": "1.2.8", "lighthouse": "12.2.0" } diff --git a/packages/independent/workflow/monorepo/package.json b/packages/independent/workflow/monorepo/package.json index 36e3e9a35a..2c50cfd94c 100644 --- a/packages/independent/workflow/monorepo/package.json +++ b/packages/independent/workflow/monorepo/package.json @@ -1,6 +1,6 @@ { "name": "@jsenv/monorepo", - "version": "0.1.2", + "version": "0.1.3", "description": "Helpers to manage packages in a monorepo", "license": "MIT", "repository": { @@ -27,8 +27,8 @@ ], "dependencies": { "@jsenv/urls": "2.5.2", - "@jsenv/filesystem": "4.10.3", - "@jsenv/package-publish": "1.11.1", + "@jsenv/filesystem": "4.10.4", + "@jsenv/package-publish": "1.11.2", "@jsenv/humanize": "1.2.8", "semver": "7.6.3" } diff --git a/packages/independent/workflow/package-publish/package.json b/packages/independent/workflow/package-publish/package.json index f62b9e1b19..8d27610900 100644 --- a/packages/independent/workflow/package-publish/package.json +++ b/packages/independent/workflow/package-publish/package.json @@ -1,6 +1,6 @@ { "name": "@jsenv/package-publish", - "version": "1.11.1", + "version": "1.11.2", "description": "Publish package to one or many registry.", "license": "MIT", "repository": { @@ -26,7 +26,7 @@ "/src/" ], "dependencies": { - "@jsenv/filesystem": "4.10.3", + "@jsenv/filesystem": "4.10.4", "@jsenv/humanize": "1.2.8", "semver": "7.6.3" } diff --git a/packages/independent/workflow/performance-impact/package.json b/packages/independent/workflow/performance-impact/package.json index ae86d2c7a3..571a2676c0 100644 --- a/packages/independent/workflow/performance-impact/package.json +++ b/packages/independent/workflow/performance-impact/package.json @@ -1,6 +1,6 @@ { "name": "@jsenv/performance-impact", - "version": "4.4.1", + "version": "4.4.2", "description": "Report pull request impacts on performance metrics", "license": "MIT", "repository": { @@ -30,8 +30,8 @@ }, "dependencies": { "@jsenv/dynamic-import-worker": "1.2.1", - "@jsenv/filesystem": "4.10.3", - "@jsenv/github-pull-request-impact": "1.8.1", + "@jsenv/filesystem": "4.10.4", + "@jsenv/github-pull-request-impact": "1.8.2", "@jsenv/humanize": "1.2.8" } } diff --git a/packages/related/cli/package.json b/packages/related/cli/package.json index 28f3461350..892fefc4a4 100644 --- a/packages/related/cli/package.json +++ b/packages/related/cli/package.json @@ -1,6 +1,6 @@ { "name": "@jsenv/cli", - "version": "0.1.41", + "version": "0.1.43", "description": "Command Line Interface for jsenv", "license": "MIT", "repository": { diff --git a/packages/related/cli/template-node-package/package.json b/packages/related/cli/template-node-package/package.json index b0b82eda70..0178ced4ba 100644 --- a/packages/related/cli/template-node-package/package.json +++ b/packages/related/cli/template-node-package/package.json @@ -12,9 +12,9 @@ }, "devDependencies": { "@jsenv/assert": "4.4.1", - "@jsenv/core": "39.5.3", + "@jsenv/core": "39.5.4", "@jsenv/eslint-config-relax": "1.2.0", - "@jsenv/test": "3.5.3", + "@jsenv/test": "3.5.5", "eslint": "9.9.0", "prettier": "3.3.3" } diff --git a/packages/related/cli/template-web-components/package.json b/packages/related/cli/template-web-components/package.json index a093497069..a6ba49617a 100644 --- a/packages/related/cli/template-web-components/package.json +++ b/packages/related/cli/template-web-components/package.json @@ -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.3", + "@jsenv/core": "39.5.4", "@jsenv/plugin-bundling": "2.7.9", "@jsenv/plugin-minification": "1.5.6", "@jsenv/eslint-config-relax": "1.2.0", - "@jsenv/test": "3.5.3", + "@jsenv/test": "3.5.5", "eslint": "9.9.0", "open": "10.1.0", "@playwright/browser-chromium": "1.46.1", diff --git a/packages/related/cli/template-web-preact/package.json b/packages/related/cli/template-web-preact/package.json index 9cae0bdc9b..681f095bd5 100644 --- a/packages/related/cli/template-web-preact/package.json +++ b/packages/related/cli/template-web-preact/package.json @@ -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.3", + "@jsenv/core": "39.5.4", "@jsenv/plugin-preact": "1.6.18", "@jsenv/plugin-bundling": "2.7.9", "@jsenv/plugin-minification": "1.5.6", "@jsenv/eslint-config-relax": "1.2.0", - "@jsenv/test": "3.5.3", + "@jsenv/test": "3.5.5", "eslint": "9.9.0", "open": "10.1.0", "@playwright/browser-chromium": "1.46.1", diff --git a/packages/related/cli/template-web-react/package.json b/packages/related/cli/template-web-react/package.json index 75a414d2c2..1cc9ca92e1 100644 --- a/packages/related/cli/template-web-react/package.json +++ b/packages/related/cli/template-web-react/package.json @@ -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.3", - "@jsenv/plugin-react": "1.5.27", + "@jsenv/core": "39.5.4", + "@jsenv/plugin-react": "1.5.28", "@jsenv/plugin-bundling": "2.7.9", "@jsenv/plugin-minification": "1.5.6", "@jsenv/eslint-config-relax": "1.2.0", - "@jsenv/test": "3.5.3", + "@jsenv/test": "3.5.5", "eslint": "9.9.0", "open": "10.1.0", "@playwright/browser-chromium": "1.46.1", diff --git a/packages/related/cli/template-web/package.json b/packages/related/cli/template-web/package.json index eb8a6e9a12..d5daeff466 100644 --- a/packages/related/cli/template-web/package.json +++ b/packages/related/cli/template-web/package.json @@ -16,11 +16,11 @@ "devDependencies": { "@babel/plugin-syntax-import-assertions": "7.24.7", "@jsenv/assert": "4.4.1", - "@jsenv/core": "39.5.3", + "@jsenv/core": "39.5.4", "@jsenv/eslint-config-relax": "1.2.0", "@jsenv/plugin-bundling": "2.7.9", "@jsenv/plugin-minification": "1.5.6", - "@jsenv/test": "3.5.3", + "@jsenv/test": "3.5.5", "eslint": "9.9.0", "open": "10.1.0", "@playwright/browser-chromium": "1.46.1", diff --git a/packages/related/plugin-commonjs/package.json b/packages/related/plugin-commonjs/package.json index ab731b258d..74b641a667 100644 --- a/packages/related/plugin-commonjs/package.json +++ b/packages/related/plugin-commonjs/package.json @@ -1,6 +1,6 @@ { "name": "@jsenv/plugin-commonjs", - "version": "2.8.14", + "version": "2.8.15", "license": "MIT", "repository": { "type": "git", @@ -21,7 +21,7 @@ "/src/" ], "dependencies": { - "@jsenv/filesystem": "4.10.3", + "@jsenv/filesystem": "4.10.4", "@jsenv/humanize": "1.2.8", "@jsenv/url-meta": "8.5.2", "@jsenv/urls": "2.5.2", diff --git a/packages/related/plugin-explorer/package.json b/packages/related/plugin-explorer/package.json index 009ef167bc..1d9289b634 100644 --- a/packages/related/plugin-explorer/package.json +++ b/packages/related/plugin-explorer/package.json @@ -1,6 +1,6 @@ { "name": "@jsenv/plugin-explorer", - "version": "1.0.42", + "version": "1.0.43", "license": "MIT", "repository": { "type": "git", @@ -26,7 +26,7 @@ "/src/" ], "dependencies": { - "@jsenv/filesystem": "4.10.3" + "@jsenv/filesystem": "4.10.4" }, "scripts": { "build": "node ./scripts/build.mjs", diff --git a/packages/related/plugin-preact/tests/preact_and_redux/_preact_and_redux_dev.test.mjs/0_chromium/.jsenv/chrome@128.00/cjs_to_esm/__compile_context__.json b/packages/related/plugin-preact/tests/preact_and_redux/_preact_and_redux_dev.test.mjs/0_chromium/.jsenv/chrome@128.00/cjs_to_esm/__compile_context__.json index 0351911af4..abf99ec1fe 100644 --- a/packages/related/plugin-preact/tests/preact_and_redux/_preact_and_redux_dev.test.mjs/0_chromium/.jsenv/chrome@128.00/cjs_to_esm/__compile_context__.json +++ b/packages/related/plugin-preact/tests/preact_and_redux/_preact_and_redux_dev.test.mjs/0_chromium/.jsenv/chrome@128.00/cjs_to_esm/__compile_context__.json @@ -1,3 +1,3 @@ { - "version": "2.8.13" + "version": "2.8.14" } \ No newline at end of file diff --git a/packages/related/plugin-react/package.json b/packages/related/plugin-react/package.json index 6743cb3b43..955c555075 100644 --- a/packages/related/plugin-react/package.json +++ b/packages/related/plugin-react/package.json @@ -1,6 +1,6 @@ { "name": "@jsenv/plugin-react", - "version": "1.5.27", + "version": "1.5.28", "license": "MIT", "repository": { "type": "git", @@ -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.14", + "@jsenv/plugin-commonjs": "2.8.15", "@jsenv/sourcemap": "1.2.23", "@jsenv/url-meta": "8.5.2", "react-refresh": "0.14.2" diff --git a/packages/related/test/dist/jsenv_test.js b/packages/related/test/dist/jsenv_test.js index a526a6909a..3bb7576916 100644 --- a/packages/related/test/dist/jsenv_test.js +++ b/packages/related/test/dist/jsenv_test.js @@ -5466,7 +5466,7 @@ const startServerUsingCommand = async ( webServer, { signal, allocatedMs, logger, teardownCallbackSet, shell = true }, ) => { - const spawnedProcess = spawn(webServer.command, [], { + const spawnedProcess = spawn(webServer.command, webServer.args || [], { // On non-windows platforms, `detached: true` makes child process a leader of a new // process group, making it possible to kill child process tree with `.kill(-pid)` command. // @see https://nodejs.org/api/child_process.html#child_process_options_detached @@ -5514,7 +5514,7 @@ const startServerUsingCommand = async ( `web server process exit exitCode=${exitCode}, exitSignal=${signal}, pid=${spawnedProcess.pid}`, ); } else { - logger.error( + console.error( `web server process premature exit exitCode=${exitCode}, exitSignal=${signal}, pid=${spawnedProcess.pid} --- stderr --- ${stderr} @@ -5619,8 +5619,8 @@ const startServerUsingModuleUrl = async (webServer, params) => { return startServerUsingCommand( { ...webServer, - command: `node ${fileURLToPath(webServer.moduleUrl)} --jsenv-test`, - shell: false, + command: `node ${fileURLToPath(webServer.moduleUrl)}`, + args: ["--jsenv-test"], }, params, ); diff --git a/packages/related/test/package.json b/packages/related/test/package.json index 2efe87aec2..3429357284 100644 --- a/packages/related/test/package.json +++ b/packages/related/test/package.json @@ -1,6 +1,6 @@ { "name": "@jsenv/test", - "version": "3.5.3", + "version": "3.5.5", "license": "MIT", "repository": { "type": "git", @@ -39,7 +39,7 @@ "@jsenv/abort": "4.3.0", "@jsenv/ast": "6.2.17", "@jsenv/exception": "1.1.3", - "@jsenv/filesystem": "4.10.3", + "@jsenv/filesystem": "4.10.4", "@jsenv/github-check-run": "0.2.1", "@jsenv/node-esm-resolution": "1.0.6", "@jsenv/humanize": "1.2.8", diff --git a/packages/related/test/src/execution/web_server/start_using_command.js b/packages/related/test/src/execution/web_server/start_using_command.js index 5ca4048b1c..b75de5f929 100644 --- a/packages/related/test/src/execution/web_server/start_using_command.js +++ b/packages/related/test/src/execution/web_server/start_using_command.js @@ -6,7 +6,7 @@ export const startServerUsingCommand = async ( webServer, { signal, allocatedMs, logger, teardownCallbackSet, shell = true }, ) => { - const spawnedProcess = spawn(webServer.command, [], { + const spawnedProcess = spawn(webServer.command, webServer.args || [], { // On non-windows platforms, `detached: true` makes child process a leader of a new // process group, making it possible to kill child process tree with `.kill(-pid)` command. // @see https://nodejs.org/api/child_process.html#child_process_options_detached @@ -54,7 +54,7 @@ export const startServerUsingCommand = async ( `web server process exit exitCode=${exitCode}, exitSignal=${signal}, pid=${spawnedProcess.pid}`, ); } else { - logger.error( + console.error( `web server process premature exit exitCode=${exitCode}, exitSignal=${signal}, pid=${spawnedProcess.pid} --- stderr --- ${stderr} diff --git a/packages/related/test/src/execution/web_server/start_using_module_url.js b/packages/related/test/src/execution/web_server/start_using_module_url.js index d6cbcf1c21..2386236918 100644 --- a/packages/related/test/src/execution/web_server/start_using_module_url.js +++ b/packages/related/test/src/execution/web_server/start_using_module_url.js @@ -10,8 +10,8 @@ export const startServerUsingModuleUrl = async (webServer, params) => { return startServerUsingCommand( { ...webServer, - command: `node ${fileURLToPath(webServer.moduleUrl)} --jsenv-test`, - shell: false, + command: `node ${fileURLToPath(webServer.moduleUrl)}`, + args: ["--jsenv-test"], }, params, );