From eb5c1398471198642d8da237147097e55bd594ee Mon Sep 17 00:00:00 2001 From: Al Date: Fri, 5 Apr 2024 13:13:38 +0200 Subject: [PATCH] chore: enforcing npm and node versions (#30) --- examples/cloud_provider/production_react_netlify/.npmrc | 1 + examples/cloud_provider/production_react_netlify/package.json | 3 ++- examples/cloud_provider/production_react_vercel/.npmrc | 1 + examples/cloud_provider/production_react_vercel/package.json | 3 ++- examples/production_react/.npmrc | 1 + examples/production_react/package.json | 3 ++- examples/starter_react/.npmrc | 1 + examples/starter_react/package.json | 3 ++- template_content/.npmrc | 1 + template_content/package.json.jinja | 3 ++- 10 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 examples/cloud_provider/production_react_netlify/.npmrc create mode 100644 examples/cloud_provider/production_react_vercel/.npmrc create mode 100644 examples/production_react/.npmrc create mode 100644 examples/starter_react/.npmrc create mode 100644 template_content/.npmrc diff --git a/examples/cloud_provider/production_react_netlify/.npmrc b/examples/cloud_provider/production_react_netlify/.npmrc new file mode 100644 index 0000000..c42da84 --- /dev/null +++ b/examples/cloud_provider/production_react_netlify/.npmrc @@ -0,0 +1 @@ +engine-strict = true diff --git a/examples/cloud_provider/production_react_netlify/package.json b/examples/cloud_provider/production_react_netlify/package.json index df4293e..e67bc7f 100644 --- a/examples/cloud_provider/production_react_netlify/package.json +++ b/examples/cloud_provider/production_react_netlify/package.json @@ -8,7 +8,8 @@ "private": true, "type": "module", "engines": { - "node": ">=18.0" + "node": ">=18.0", + "npm": ">=9.0" }, "devDependencies": { "@types/node": "^18.17.14", diff --git a/examples/cloud_provider/production_react_vercel/.npmrc b/examples/cloud_provider/production_react_vercel/.npmrc new file mode 100644 index 0000000..c42da84 --- /dev/null +++ b/examples/cloud_provider/production_react_vercel/.npmrc @@ -0,0 +1 @@ +engine-strict = true diff --git a/examples/cloud_provider/production_react_vercel/package.json b/examples/cloud_provider/production_react_vercel/package.json index 8b529ed..f9d759d 100644 --- a/examples/cloud_provider/production_react_vercel/package.json +++ b/examples/cloud_provider/production_react_vercel/package.json @@ -8,7 +8,8 @@ "private": true, "type": "module", "engines": { - "node": ">=18.0" + "node": ">=18.0", + "npm": ">=9.0" }, "devDependencies": { "@types/node": "^18.17.14", diff --git a/examples/production_react/.npmrc b/examples/production_react/.npmrc new file mode 100644 index 0000000..c42da84 --- /dev/null +++ b/examples/production_react/.npmrc @@ -0,0 +1 @@ +engine-strict = true diff --git a/examples/production_react/package.json b/examples/production_react/package.json index 79ad360..f86b2ca 100644 --- a/examples/production_react/package.json +++ b/examples/production_react/package.json @@ -8,7 +8,8 @@ "private": true, "type": "module", "engines": { - "node": ">=18.0" + "node": ">=18.0", + "npm": ">=9.0" }, "devDependencies": { "@types/node": "^18.17.14", diff --git a/examples/starter_react/.npmrc b/examples/starter_react/.npmrc new file mode 100644 index 0000000..c42da84 --- /dev/null +++ b/examples/starter_react/.npmrc @@ -0,0 +1 @@ +engine-strict = true diff --git a/examples/starter_react/package.json b/examples/starter_react/package.json index 06afb4d..0c040ee 100644 --- a/examples/starter_react/package.json +++ b/examples/starter_react/package.json @@ -8,7 +8,8 @@ "private": true, "type": "module", "engines": { - "node": ">=18.0" + "node": ">=18.0", + "npm": ">=9.0" }, "devDependencies": { "@types/node": "^18.17.14", diff --git a/template_content/.npmrc b/template_content/.npmrc new file mode 100644 index 0000000..c42da84 --- /dev/null +++ b/template_content/.npmrc @@ -0,0 +1 @@ +engine-strict = true diff --git a/template_content/package.json.jinja b/template_content/package.json.jinja index 81fa504..03c8e5c 100644 --- a/template_content/package.json.jinja +++ b/template_content/package.json.jinja @@ -8,7 +8,8 @@ "private": true, "type": "module", "engines": { - "node": ">=18.0" + "node": ">=18.0", + "npm": ">=9.0" }, "devDependencies": { "@types/node": "^18.17.14",