From 2a787ff82b7ba7c77544f5d5e8d4652541aa7131 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TED=20Vortex=20=28Teodor-Eugen=20Du=C8=9Bulescu=29?= <237133+0-vortex@users.noreply.github.com> Date: Sun, 10 Oct 2021 15:32:50 +0200 Subject: [PATCH] feat: implement @open-sauced/check-engines (#14) --- .npmrc | 1 + npm-shrinkwrap.json | 47 +++++++++++++++++++++++++++++++++++++++++++++ package.json | 3 +++ 3 files changed, 51 insertions(+) diff --git a/.npmrc b/.npmrc index b3ba0ef..9b776f8 100644 --- a/.npmrc +++ b/.npmrc @@ -4,3 +4,4 @@ audit-level="moderate" loglevel="info" progress=false timing=false +engine-strict=true diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index dcbcca6..dd0ad4d 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -17,6 +17,7 @@ "react-dom": "^17.0.2" }, "devDependencies": { + "@open-sauced/check-engines": "^1.0.0", "@open-sauced/semantic-release-conventional-config": "^1.2.0", "@svgr/webpack": "^5.5.0", "clsx": "^1.1.1", @@ -2780,6 +2781,22 @@ "@octokit/openapi-types": "^9.5.0" } }, + "node_modules/@open-sauced/check-engines": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@open-sauced/check-engines/-/check-engines-1.0.0.tgz", + "integrity": "sha512-J9kkeAZGFxFWEPstke0rlT5vN7KU6CVPHr29dTKvjT3iOgJmfDK4eFM+uSy2BWoZ4GK9kC+tans3sqfYmf+zNA==", + "dev": true, + "dependencies": { + "npm-install-checks": "^4.0.0" + }, + "bin": { + "check-engines": "index.js" + }, + "engines": { + "node": ">=10", + "npm": ">=3" + } + }, "node_modules/@open-sauced/semantic-release-conventional-config": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@open-sauced/semantic-release-conventional-config/-/semantic-release-conventional-config-1.2.0.tgz", @@ -11279,6 +11296,18 @@ "node": ">=10" } }, + "node_modules/npm-install-checks": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/npm-install-checks/-/npm-install-checks-4.0.0.tgz", + "integrity": "sha512-09OmyDkNLYwqKPOnbI8exiOZU2GVVmQp7tgez2BPi5OZC8M82elDAps7sxC4l//uSUtotWqoEIDwjRvWH4qz8w==", + "dev": true, + "dependencies": { + "semver": "^7.1.1" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/npm-run-path": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", @@ -23187,6 +23216,15 @@ "@octokit/openapi-types": "^9.5.0" } }, + "@open-sauced/check-engines": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@open-sauced/check-engines/-/check-engines-1.0.0.tgz", + "integrity": "sha512-J9kkeAZGFxFWEPstke0rlT5vN7KU6CVPHr29dTKvjT3iOgJmfDK4eFM+uSy2BWoZ4GK9kC+tans3sqfYmf+zNA==", + "dev": true, + "requires": { + "npm-install-checks": "^4.0.0" + } + }, "@open-sauced/semantic-release-conventional-config": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@open-sauced/semantic-release-conventional-config/-/semantic-release-conventional-config-1.2.0.tgz", @@ -31645,6 +31683,15 @@ } } }, + "npm-install-checks": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/npm-install-checks/-/npm-install-checks-4.0.0.tgz", + "integrity": "sha512-09OmyDkNLYwqKPOnbI8exiOZU2GVVmQp7tgez2BPi5OZC8M82elDAps7sxC4l//uSUtotWqoEIDwjRvWH4qz8w==", + "dev": true, + "requires": { + "semver": "^7.1.1" + } + }, "npm-run-path": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", diff --git a/package.json b/package.json index ab1c8b3..4c9bd95 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,8 @@ "version": "1.2.0", "private": true, "scripts": { + "preinstall": "npx @open-sauced/check-engines", + "prestart": "npx @open-sauced/check-engines", "docusaurus": "docusaurus", "start": "docusaurus start", "build": "docusaurus build", @@ -25,6 +27,7 @@ "react-dom": "^17.0.2" }, "devDependencies": { + "@open-sauced/check-engines": "^1.0.0", "@open-sauced/semantic-release-conventional-config": "^1.2.0", "@svgr/webpack": "^5.5.0", "clsx": "^1.1.1",