From b18ada77bf855ec5909a72a8175bac62bcf5c519 Mon Sep 17 00:00:00 2001 From: Sven Date: Tue, 13 Feb 2024 13:09:29 +0100 Subject: [PATCH] rever danger ts and update version --- dangerfile.ts | 5 +++-- packages/scaffold-utils/src/ConstantsUtil.ts | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dangerfile.ts b/dangerfile.ts index 71961f4fe0..ea1313d570 100644 --- a/dangerfile.ts +++ b/dangerfile.ts @@ -1,7 +1,7 @@ /* eslint-disable no-await-in-loop */ import { danger, fail, message, warn } from 'danger' import corePackageJson from './packages/core/package.json' assert { type: 'json' } -import coreScaffoldUtilsJson from './packages/scaffold-utils/package.json' assert { type: 'json' } +import { ConstantsUtil } from './packages/scaffold-utils/src/ConstantsUtil' // -- Constants --------------------------------------------------------------- const TYPE_COMMENT = `// -- Types --------------------------------------------- //` @@ -10,6 +10,7 @@ const CONTROLLER_COMMENT = `// -- Controller ----------------------------------- const RENDER_COMMENT = `// -- Render -------------------------------------------- //` const STATE_PROPERTIES_COMMENT = `// -- State & Properties -------------------------------- //` const PRIVATE_COMMENT = `// -- Private ------------------------------------------- //` +const PACKAGE_VERSION = ConstantsUtil.VERSION // -- Data -------------------------------------------------------------------- const { modified_files, created_files, deleted_files, diffForFile } = danger.git @@ -283,7 +284,7 @@ checkClientPackages() // -- Check sdkVersion ------------------------------------------------------------ function checkSdkVersion() { - if (coreScaffoldUtilsJson.version !== corePackageJson.version) { + if (PACKAGE_VERSION !== corePackageJson.version) { fail(`VERSION in utils/constants does't match core package.json version`) } } diff --git a/packages/scaffold-utils/src/ConstantsUtil.ts b/packages/scaffold-utils/src/ConstantsUtil.ts index 9257bb0614..0d3babcda7 100644 --- a/packages/scaffold-utils/src/ConstantsUtil.ts +++ b/packages/scaffold-utils/src/ConstantsUtil.ts @@ -11,5 +11,5 @@ export const ConstantsUtil = { ADD_CHAIN_METHOD: 'wallet_addEthereumChain', EIP6963_ANNOUNCE_EVENT: 'eip6963:announceProvider', EIP6963_REQUEST_EVENT: 'eip6963:requestProvider', - VERSION: '4.0.3' + VERSION: '4.0.4' }