Skip to content

Commit

Permalink
build: align manifest version & version_name
Browse files Browse the repository at this point in the history
  • Loading branch information
dawidsowardx committed Aug 28, 2023
1 parent 30fa4b1 commit 0e41ed3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const { version } = packageJson
const isDevToolsActive = !!process.env.DEV_TOOLS

// Convert from Semver (example: 0.1.0-beta6)
const [major, minor, patch, label = '0'] = version
const [major, minor, patch] = version
// can only contain digits, dots, or dash
.replace(/[^\d.-]+/g, '')
// split into version parts
Expand All @@ -34,7 +34,7 @@ const manifest = defineManifest(async () => {
return {
manifest_version: 3,
name: 'Radix Wallet Connector',
version: `${major}.${minor}.${patch}.${label}`,
version: `${major}.${minor}.${patch}`,
version_name: version,
action: {
default_popup: 'src/pairing/index.html',
Expand Down

0 comments on commit 0e41ed3

Please sign in to comment.