Skip to content

Commit

Permalink
fix: update version and revert danger changes (#1916)
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvoskamp authored Feb 13, 2024
1 parent 1dcdaf3 commit 03b17b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions dangerfile.ts
Original file line number Diff line number Diff line change
@@ -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 --------------------------------------------- //`
Expand All @@ -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
Expand Down Expand Up @@ -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`)
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/scaffold-utils/src/ConstantsUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}

0 comments on commit 03b17b9

Please sign in to comment.