From 0c885eee270f2e6e780d2a9fe5e3ac896cea5b96 Mon Sep 17 00:00:00 2001 From: Shaobiao Lin Date: Wed, 24 Apr 2024 21:46:41 +0800 Subject: [PATCH] build: require node version --- .npmrc | 1 + package-lock.json | 3 +++ package.json | 3 +++ 3 files changed, 7 insertions(+) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..b6f27f1 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/package-lock.json b/package-lock.json index f1f1e24..0f194e7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,6 +29,9 @@ "typescript": "^5.2.2", "vitepress": "^1.1.3", "vitepress-plugin-mermaid": "^2.0.16" + }, + "engines": { + "node": ">=18.0.0" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/package.json b/package.json index 7b46e85..2241516 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,9 @@ "description": "Octobug's blog.", "main": "index.js", "type": "module", + "engines" : { + "node" : ">=18.0.0" + }, "scripts": { "dev": "vitepress dev --host", "build": "vitepress build",