Skip to content

Commit

Permalink
fix: Allow imports of self-referenced package (#74)
Browse files Browse the repository at this point in the history
You can import a package itself by self-referencing it with the package name, instead of needing to use relative paths.
  • Loading branch information
piranna committed Jan 11, 2023
1 parent 83446a1 commit 17270f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/check-extraneous.js
Expand Up @@ -25,7 +25,7 @@ exports.checkExtraneous = function checkExtraneous(context, filePath, targets) {

const allowed = new Set(getAllowModules(context))
const dependencies = new Set(
[].concat(
[packageInfo.name].concat(
Object.keys(packageInfo.dependencies || {}),
Object.keys(packageInfo.devDependencies || {}),
Object.keys(packageInfo.peerDependencies || {}),
Expand Down

0 comments on commit 17270f8

Please sign in to comment.