From 50bf7bcb6114f646aa63a0f5cb72a0a93178b5e8 Mon Sep 17 00:00:00 2001 From: enesozturk Date: Wed, 27 Mar 2024 18:10:12 +0300 Subject: [PATCH] refactor: dangerjs import check logics --- dangerfile.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dangerfile.ts b/dangerfile.ts index abfeed4a0c..fb3acd1d02 100644 --- a/dangerfile.ts +++ b/dangerfile.ts @@ -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`) } }