diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ccdb79e0..057c6a16 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,7 @@ jobs: if: "github.actor != 'dependabot[bot]'" strategy: matrix: - node-version: [14.x, 16.x] + node-version: [14.x, 16.x, 18.x] steps: - run: echo "actor is ${{github.actor}}, ref is ${{github.ref}} head_ref is ${{github.head_ref}}" diff --git a/.yarn/versions/d6785421.yml b/.yarn/versions/d6785421.yml new file mode 100644 index 00000000..dafc464c --- /dev/null +++ b/.yarn/versions/d6785421.yml @@ -0,0 +1,14 @@ +releases: + "@essex/scripts": patch + +declined: + - "@essex/babel-config" + - "@essex/jest-config" + - "@essex/vite-config" + - "@essex/test-lib-dual" + - "@essex/test-lib-esm" + - "@essex/test-lib-legacy" + - "@essex/test-lib-md-index" + - "@essex/test-webapp-vite" + - "@essex/test-webapp-webpack" + - "@essex/test-zips" diff --git a/packages/scripts/src/steps/webpack/serve.mts b/packages/scripts/src/steps/webpack/serve.mts index d2424f7a..11a1238e 100644 --- a/packages/scripts/src/steps/webpack/serve.mts +++ b/packages/scripts/src/steps/webpack/serve.mts @@ -28,8 +28,10 @@ export function webpackServe({ } /* eslint-disable-next-line @typescript-eslint/no-unsafe-argument */ - const server = new Server(compiler as any, wpConfig.devServer) - server.listen(port, host, (err?: Error | undefined) => { + const server = new Server(wpConfig.devServer, compiler) + server.options.port = port + server.options.host = host + server.startCallback((err?: Error | undefined) => { if (err) { console.log(`error listening`, err) reject(err)