diff --git a/.npmrc b/.npmrc new file mode 100644 index 00000000..b6f27f13 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..209e3ef4 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +20 diff --git a/Dockerfile b/Dockerfile index 3c23b2f3..bbd39119 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # build stage -FROM docker.io/node:18-bullseye as build-stage +FROM docker.io/node:20-bullseye as build-stage RUN mkdir /app && chown -R node:node /app diff --git a/package-lock.json b/package-lock.json index 11a249c6..8047804e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -45,6 +45,10 @@ "vite": "^5.0.12", "vite-plugin-top-level-await": "^1.4.1", "vitest": "^1.2.1" + }, + "engines": { + "node": "20", + "npm": ">=9" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/package.json b/package.json index dbc41cfa..50d84b09 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,10 @@ "private": true, "version": "1.0.0", "type": "module", + "engines": { + "node": "20", + "npm": ">=9" + }, "scripts": { "dev": "vite", "build": "tsc && vite build",