]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commitdiff
chore: add minimum Node version to .npmrc to avoid accidental breakage
authorHaoqun Jiang <haoqunjiang@gmail.com>
Tue, 31 May 2022 12:56:44 +0000 (20:56 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Tue, 31 May 2022 12:56:44 +0000 (20:56 +0800)
Tips from https://twitter.com/pnpmjs/status/1530528148080799744

Had to add the `packageExtensions` field as the dev-only dependency
`zx` requires Node.js >= 16.0.0

.npmrc [new file with mode: 0644]
package.json
pnpm-lock.yaml

diff --git a/.npmrc b/.npmrc
new file mode 100644 (file)
index 0000000..19f359c
--- /dev/null
+++ b/.npmrc
@@ -0,0 +1,2 @@
+engine-strict=true
+node-version=14.16.0
index dc64686fcd6872a8cac4a06e0efdbac81df33df3..2a9d83470a3de6cbf38eae2d8df2ac80b11bc062 100644 (file)
     "*.{js,ts,vue,json}": [
       "prettier --write"
     ]
+  },
+  "pnpm": {
+    "packageExtensions": {
+      "zx": {
+        "engines": {
+          "node": ">= 14.16.0"
+        }
+      }
+    }
   }
 }
index 95af9fefaae32b5f11b7c04c9aa2a92e187bed40..5c218edf9b06097bb795614600df78f786a7411f 100644 (file)
@@ -1,5 +1,7 @@
 lockfileVersion: 5.4
 
+packageExtensionsChecksum: 210dc6f38ad5e77519dd55e799036854
+
 importers:
 
   .: