Removes the 'get-port' package and replaces its functionality with a custom getPort function in the test/util.mjs file. Adds a new test file to ensure the getPort function works as expected.
Removes "get-port" from devDependencies in package.json, eliminating the package from the project.
Implements a new getPort function in test/util.mjs using the Node.js net module to find an available port, replacing the previous usage of the get-port package.
Adds a new test file test/test-getPort.mjs to verify that the getPort function correctly returns an available port and handles error scenarios, aiming for 100% test coverage.
Updates rollup.config.mjs by removing the retainImportExpressionPlugin function and its usage, which was specifically designed to handle dynamic imports of the get-port package, reflecting the removal of get-port from the project.
Removes the 'get-port' package and replaces its functionality with a custom
getPort
function in thetest/util.mjs
file. Adds a new test file to ensure thegetPort
function works as expected."get-port"
fromdevDependencies
inpackage.json
, eliminating the package from the project.getPort
function intest/util.mjs
using the Node.jsnet
module to find an available port, replacing the previous usage of theget-port
package.test/test-getPort.mjs
to verify that thegetPort
function correctly returns an available port and handles error scenarios, aiming for 100% test coverage.rollup.config.mjs
by removing theretainImportExpressionPlugin
function and its usage, which was specifically designed to handle dynamic imports of theget-port
package, reflecting the removal ofget-port
from the project.For more details, open the Copilot Workspace session.