Skip to content

Commit

Permalink
fix: update publish.sh 由于变更了wallet auth依赖形式
Browse files Browse the repository at this point in the history
  • Loading branch information
chenweigh committed Sep 29, 2024
1 parent e88853b commit c978064
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sh/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async function init() {
await run(`pnpm run build:wallet`, pathRoot)
}
//tip: change package.json content
WalletJsonData.dependencies['@xterio-sdk/auth'] = '^' + authVersion
WalletJsonData.peerDependencies['@xterio-sdk/auth'] = '^' + authVersion.split('.').slice(0, 2).join('.')
writeJSONSync(pathWalletJson, WalletJsonData, { encoding: 'utf-8', spaces: 2 })
await run('npm publish', pathWallet)
await run(`bash release.sh wallet ${walletVersion}`, pathSh)
Expand All @@ -53,7 +53,7 @@ const commitVersionFile = async (_f: string, _v: string) => {
await run(`git push origin main && git push new-origin main`)
}
const reset = () => {
WalletJsonData.dependencies['@xterio-sdk/auth'] = 'workspace:^'
WalletJsonData.peerDependencies['@xterio-sdk/auth'] = 'workspace:^'
writeJSONSync(pathWalletJson, WalletJsonData, { encoding: 'utf-8', spaces: 2 })
}

Expand Down

0 comments on commit c978064

Please sign in to comment.