Skip to content

Commit

Permalink
wp-now: Switch back to Node 18 as minimum supported version (#90)
Browse files Browse the repository at this point in the history
## What?

Switches back to Node 18 as the minimum supported version. Node 20 is
required for Blueprint support (it crashes otherwise).

See #83
Fixes #87
  • Loading branch information
danielbachhuber committed Jul 18, 2023
1 parent 5d7c6c5 commit d48c77e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/wp-now/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ To install `wp-now` directly from `npm`:
npm install -g @wp-now/wp-now
```

Node 18 is the minimum supported version. Node 20 is required for Blueprint support.

Alternatively, you can install `wp-now` via `git clone` if you'd like to hack on it too. See [Contributing](#contributing) for more details.

Once installed, you can start a new server like so:
Expand Down
2 changes: 1 addition & 1 deletion packages/wp-now/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { runCli } from './run-cli';

const requiredMajorVersion = 20;
const requiredMajorVersion = 18;

const currentNodeVersion = parseInt(process.versions?.node?.split('.')?.[0]);

Expand Down

0 comments on commit d48c77e

Please sign in to comment.