Skip to content

Commit

Permalink
add dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
jgerigmeyer committed Feb 21, 2024
1 parent 4785ec1 commit bc286b6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
19 changes: 18 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -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'
6 changes: 2 additions & 4 deletions lib/utils/sassImporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand All @@ -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;
Expand All @@ -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))),
);
Expand Down

0 comments on commit bc286b6

Please sign in to comment.