create-nuxt-base 2.6.4 → 2.6.5

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [2.6.5](https://github.com/lenneTech/nuxt-base-starter/compare/v2.6.4...v2.6.5) (2026-04-28)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **scripts:** pick random free port for check-server-start and guard against ANSI-wrapped output ([d9c3432](https://github.com/lenneTech/nuxt-base-starter/commit/d9c3432fe664ea2ccbecff33b2b2dd7bd2a08de4))
11
+
5
12
  ### [2.6.4](https://github.com/lenneTech/nuxt-base-starter/compare/v2.6.3...v2.6.4) (2026-04-23)
6
13
 
7
14
  ### [2.6.3](https://github.com/lenneTech/nuxt-base-starter/compare/v2.6.2...v2.6.3) (2026-04-18)
@@ -28,7 +28,22 @@ cleanup() {
28
28
  }
29
29
  trap cleanup EXIT
30
30
 
31
- node .output/server/index.mjs >"$LOG_FILE" 2>&1 &
31
+ # Pick a free port so the check passes regardless of what is running on
32
+ # 3000/3001 (sister API dev server, another nuxt instance, …). Strip
33
+ # ANSI color escape sequences from the command output — when this
34
+ # script runs under a workspace runner like lerna/nx, stdout may be
35
+ # wrapped and color codes ("\x1b[33m...\x1b[39m") injected. Those would
36
+ # land inside FREE_PORT and crash Nitro with
37
+ # `ERR_SOCKET_BAD_PORT options.port ... Received type string ('<codes>50604<codes>')`.
38
+ # A naïve `tr -cd '0-9'` makes it worse because the color codes contain
39
+ # digits (33, 39) themselves; sed only on the escape pattern keeps the
40
+ # port digits intact.
41
+ # Use NITRO_PORT rather than PORT — Nitro 2.13.3 reads PORT as a string
42
+ # without parseInt and feeds it straight into net.Server#listen.
43
+ FREE_PORT=$(node -e "const s=require('net').createServer();s.listen(0,'127.0.0.1',()=>{const p=s.address().port;s.close(()=>console.log(p));});" | sed $'s/\x1b\\[[0-9;]*m//g' | tr -d '[:space:]')
44
+ echo "Using free port: $FREE_PORT"
45
+
46
+ NITRO_PORT=$FREE_PORT node .output/server/index.mjs >"$LOG_FILE" 2>&1 &
32
47
  SERVER_PID=$!
33
48
  # Remove from job table so bash does not print "Terminated: 15" on SIGTERM
34
49
  disown "$SERVER_PID" 2>/dev/null || true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-nuxt-base",
3
- "version": "2.6.4",
3
+ "version": "2.6.5",
4
4
  "description": "Starter to generate a configured environment with VueJS, Nuxt, Tailwind, Linting, Unit Tests, Playwright etc.",
5
5
  "license": "MIT",
6
6
  "author": "lenne.Tech GmbH",