Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update version and revert danger changes #1916

Merged
merged 7 commits into from
Feb 13, 2024
Merged
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'
}
Loading