Skip to content

Commit

Permalink
Only set peerDependencies if the xterm version is beta
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Aug 31, 2024
1 parent 9a9ccbe commit 13d078e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ const changedFiles = getChangedFilesInCommit('HEAD');
// peer dependencies for addons.
const result = checkAndPublishPackage(path.resolve(__dirname, '..'), repoCommit);
const isStableRelease = result.isStableRelease;
const peerDependencies = {
const peerDependencies = result.nextVersion.includes('beta') ? {
'@xterm/xterm': `^${result.nextVersion}`,
};
} : undefined;
checkAndPublishPackage(path.resolve(__dirname, '../headless'), repoCommit);

// Addon peer dependencies
Expand Down

0 comments on commit 13d078e

Please sign in to comment.