From e5c432ca19f5cd209769b674cc6fd2d8ef6626fc Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 24 Mar 2020 12:01:01 -0700 Subject: [PATCH] Configure Renovate (#72) * Add renovate.json * Disable updating Node.js version. * Update renovate.json * Specify Node.js version supported. * Add ":preserveSemverRanges". * Add version constraints for Node.js 8 support. Co-authored-by: Renovate Bot Co-authored-by: Yuchen Shi Co-authored-by: Tim Stirrat --- package.json | 3 +++ renovate.json5 | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 renovate.json5 diff --git a/package.json b/package.json index d3ff0662e..7bf289568 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,9 @@ "name": "firebase-tools-ui", "version": "0.1.0", "private": true, + "engines": { + "node": ">= 8.0.0" + }, "dependencies": { "@rmwc/button": "^5.7.2", "@rmwc/card": "^5.7.2", diff --git a/renovate.json5 b/renovate.json5 new file mode 100644 index 000000000..332e94ff2 --- /dev/null +++ b/renovate.json5 @@ -0,0 +1,37 @@ +// This file configures the Renovate bot on GitHub. See: +// https://docs.renovatebot.com/configuration-options/ +// This is a JSON5 (json5.org) file which supports comments and unquoted keys. +{ + extends: [ + "config:base", + ":preserveSemverRanges", + ], + packageRules: [ + { + // Do not upgrade Node.js versions ("engine" field in package.json). + packageNames: ["node"], + enabled: false, + }, + + // BEGIN version constraints for Node.js 8 support. + // TODO: Remove these once Renovate learns to ignore incompatible versions. + // https://github.com/renovatebot/renovate/issues/4826 + { + packageNames: ["@testing-library/react"], + allowedVersions: '<10', + }, + { + packageNames: ["husky"], + allowedVersions: '<4', + }, + { + packageNames: ["lint-staged"], + allowedVersions: '<10', + }, + { + packageNames: ["prettier"], + allowedVersions: '<2', + }, + // END version constraints for Node.js 8 support. + ], +}