From a51e6aeff8d29ab42dc5f5af9407ef623867b8b6 Mon Sep 17 00:00:00 2001 From: Al Date: Mon, 8 Apr 2024 16:32:05 +0200 Subject: [PATCH] chore: enforcing npm and node versions (#65) --- .../production_beaker_smart_contract_typescript/.npmrc | 1 + .../production_beaker_smart_contract_typescript/package.json | 3 ++- .../generators/starter_beaker_smart_contract_typescript/.npmrc | 1 + .../starter_beaker_smart_contract_typescript/package.json | 3 ++- ... == 'typescript' or use_typescript_jest %}.npmrc{% endif %} | 1 + ...ipt' or use_typescript_jest %}package.json{% endif %}.jinja | 3 ++- 6 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 examples/generators/production_beaker_smart_contract_typescript/.npmrc create mode 100644 examples/generators/starter_beaker_smart_contract_typescript/.npmrc create mode 100644 template_content/{% if deployment_language == 'typescript' or use_typescript_jest %}.npmrc{% endif %} diff --git a/examples/generators/production_beaker_smart_contract_typescript/.npmrc b/examples/generators/production_beaker_smart_contract_typescript/.npmrc new file mode 100644 index 00000000..c42da845 --- /dev/null +++ b/examples/generators/production_beaker_smart_contract_typescript/.npmrc @@ -0,0 +1 @@ +engine-strict = true diff --git a/examples/generators/production_beaker_smart_contract_typescript/package.json b/examples/generators/production_beaker_smart_contract_typescript/package.json index 4afc3fb0..933f41bb 100644 --- a/examples/generators/production_beaker_smart_contract_typescript/package.json +++ b/examples/generators/production_beaker_smart_contract_typescript/package.json @@ -10,7 +10,8 @@ "format": "prettier --write ." }, "engines": { - "node": ">=18.0" + "node": ">=18.0", + "npm": ">=9.0" }, "dependencies": { "@algorandfoundation/algokit-utils": "^5.1.0", diff --git a/examples/generators/starter_beaker_smart_contract_typescript/.npmrc b/examples/generators/starter_beaker_smart_contract_typescript/.npmrc new file mode 100644 index 00000000..c42da845 --- /dev/null +++ b/examples/generators/starter_beaker_smart_contract_typescript/.npmrc @@ -0,0 +1 @@ +engine-strict = true diff --git a/examples/generators/starter_beaker_smart_contract_typescript/package.json b/examples/generators/starter_beaker_smart_contract_typescript/package.json index 4a3ecaea..75b8aa27 100644 --- a/examples/generators/starter_beaker_smart_contract_typescript/package.json +++ b/examples/generators/starter_beaker_smart_contract_typescript/package.json @@ -9,7 +9,8 @@ "format": "prettier --write ." }, "engines": { - "node": ">=18.0" + "node": ">=18.0", + "npm": ">=9.0" }, "dependencies": { "@algorandfoundation/algokit-utils": "^5.1.0", diff --git a/template_content/{% if deployment_language == 'typescript' or use_typescript_jest %}.npmrc{% endif %} b/template_content/{% if deployment_language == 'typescript' or use_typescript_jest %}.npmrc{% endif %} new file mode 100644 index 00000000..c42da845 --- /dev/null +++ b/template_content/{% if deployment_language == 'typescript' or use_typescript_jest %}.npmrc{% endif %} @@ -0,0 +1 @@ +engine-strict = true diff --git a/template_content/{% if deployment_language == 'typescript' or use_typescript_jest %}package.json{% endif %}.jinja b/template_content/{% if deployment_language == 'typescript' or use_typescript_jest %}package.json{% endif %}.jinja index 360bdaef..26e66744 100644 --- a/template_content/{% if deployment_language == 'typescript' or use_typescript_jest %}package.json{% endif %}.jinja +++ b/template_content/{% if deployment_language == 'typescript' or use_typescript_jest %}package.json{% endif %}.jinja @@ -12,7 +12,8 @@ "format": "prettier --write ." }, "engines": { - "node": ">=18.0" + "node": ">=18.0", + "npm": ">=9.0" }, "dependencies": { "@algorandfoundation/algokit-utils": "^5.1.0",