From bc286b650124d65886fe03d0b0fb017d758f8209 Mon Sep 17 00:00:00 2001 From: Jonny Gerig Meyer Date: Wed, 21 Feb 2024 14:00:34 -0500 Subject: [PATCH] add dependabot --- .github/dependabot.yml | 19 ++++++++++++++++++- lib/utils/sassImporter.js | 6 ++---- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 4971a449..2f29f2d1 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,8 +1,25 @@ version: 2 + updates: - package-ecosystem: github-actions directory: '/' schedule: - interval: weekly + interval: monthly time: '04:00' timezone: America/New_York + + - package-ecosystem: npm + directory: '/' + versioning-strategy: increase + schedule: + interval: monthly + time: '04:00' + timezone: America/New_York + groups: + npm-major-upgrades: + update-types: + - 'major' + npm-minor-upgrades: + update-types: + - 'minor' + - 'patch' diff --git a/lib/utils/sassImporter.js b/lib/utils/sassImporter.js index d1e43a8d..2c6173a2 100644 --- a/lib/utils/sassImporter.js +++ b/lib/utils/sassImporter.js @@ -5,7 +5,7 @@ const { pathToFileURL } = require('url'); let pnp; -/* istanbul ignore else */ +/* istanbul ignore if */ if (process.versions.pnp) { try { // eslint-disable-next-line global-require @@ -21,7 +21,7 @@ const resolved = new Map(); module.exports = { findFileUrl(url) { if (url.startsWith('~')) { - /* istanbul ignore else */ + /* istanbul ignore if */ if (pnp) { // We need to resolve the imported path to a node module path. Instead of // re-creating the Sass import rules (where, for example, @@ -41,7 +41,6 @@ module.exports = { res = pnp.resolveToUnqualified(components[0], `${process.cwd()}/`); resolved.set(components[0], res); } - /* istanbul ignore if */ if (res === null) { // No resolved module found... fall back to default Sass importer return null; @@ -50,7 +49,6 @@ module.exports = { return new URL(pathToFileURL(components.join('/'))); } // Try loading file from "node_modules" dir - /* istanbul ignore next */ return new URL( pathToFileURL(path.resolve('node_modules', url.substring(1))), );