diff --git a/.npmrc b/.npmrc index b3ba0eff..9b776f88 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 dcbcca68..dd0ad4d7 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 ab1c8b31..4c9bd956 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",