package.json: document the required nodejs version

To avoid issues about not being able to run make / npm install. This
sadly only produces a warning, but that hint might be good enough.

```
$ npm install
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: undefined,
npm WARN EBADENGINE   required: { node: '>= 18' },
npm WARN EBADENGINE   current: { node: 'v16.20.2', npm: '9.8.1' }
npm WARN EBADENGINE }
```

Fixes #693
This commit is contained in:
Jelle van der Waa 2023-09-04 15:00:09 +02:00 committed by GitHub
parent d339fe5a3c
commit 2a10bd66ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,6 +6,9 @@
"repository": "git@github.com:cockpit/starter-kit.git", "repository": "git@github.com:cockpit/starter-kit.git",
"author": "", "author": "",
"license": "LGPL-2.1", "license": "LGPL-2.1",
"engines": {
"node": ">= 16"
},
"scripts": { "scripts": {
"watch": "ESBUILD_WATCH='true' ./build.js", "watch": "ESBUILD_WATCH='true' ./build.js",
"build": "./build.js", "build": "./build.js",