Skip to content

Commit

Permalink
refactor: dangerjs import check logics
Browse files Browse the repository at this point in the history
  • Loading branch information
enesozturk committed Mar 27, 2024
1 parent 8dc7f8b commit 50bf7bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dangerfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,11 @@ async function checkClientPackages() {
for (const f of wagmi_files) {
const diff = await diffForFile(f)

if (diff?.added.includes('@web3modal/core')) {
if (diff?.added.includes("from '@web3modal/core")) {
fail(`${f} is not allowed to import from @web3modal/core`)
}

if (diff?.added.includes('@web3modal/ui')) {
if (diff?.added.includes("from '@web3modal/ui")) {
fail(`${f} is not allowed to import from @web3modal/ui`)
}
}
Expand Down

0 comments on commit 50bf7bc

Please sign in to comment.