Skip to content

Commit

Permalink
SAD
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Jul 20, 2023
1 parent 7c26253 commit 635fe47
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/support/compile-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,16 @@ cache['${ originalPkg }/${ ruleName }'] = rule_${ idx };`;

function computeRuleImport(resolver, pkg, rule) {

console.log();

Check warning on line 157 in lib/support/compile-config.js

View check run for this annotation

Codecov / codecov/patch

lib/support/compile-config.js#L157

Added line #L157 was not covered by tests

// local reference, resolved relative to pkg location
if (rule.startsWith('.')) {
console.log(pkg, resolver.require.resolve(pkg));

Check warning on line 161 in lib/support/compile-config.js

View check run for this annotation

Codecov / codecov/patch

lib/support/compile-config.js#L161

Added line #L161 was not covered by tests

const pkgDir = path.dirname(resolver.require.resolve(pkg));

console.log(pkgDir);

Check warning on line 165 in lib/support/compile-config.js

View check run for this annotation

Codecov / codecov/patch

lib/support/compile-config.js#L165

Added line #L165 was not covered by tests

return path.normalize(path.join(pkgDir, rule));

Check warning on line 167 in lib/support/compile-config.js

View check run for this annotation

Codecov / codecov/patch

lib/support/compile-config.js#L167

Added line #L167 was not covered by tests
}

Expand Down

0 comments on commit 635fe47

Please sign in to comment.