Skip to content

Commit

Permalink
chore: fix version script
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey committed Jan 18, 2023
1 parent 92bc898 commit db318c2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions scripts/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ async function updateRemixVersion(packageName, nextVersion, successMessage) {
config.devDependencies[`@remix-run/${pkg}`] = nextVersion;
}
if (config.peerDependencies?.[`@remix-run/${pkg}`]) {
config.peerDependencies[`@remix-run/${pkg}`] = nextVersion;
let isRelaxedPeerDep =
config.peerDependencies[`@remix-run/${pkg}`]?.startsWith("^");
config.peerDependencies[`@remix-run/${pkg}`] = `${
isRelaxedPeerDep ? "^" : ""
}${nextVersion}`;
}
}
});
Expand Down Expand Up @@ -165,7 +169,8 @@ const updateDenoImportMap = async (importMapPath, nextVersion) => {
let [packageName, importPath] =
getPackageNameFromImportSpecifier(importName);

return remixPackagesFull.includes(packageName)
return remixPackagesFull.includes(packageName) &&
importName !== "@remix-run/deno"
? [
importName,
`https://esm.sh/${packageName}@${nextVersion}${
Expand Down Expand Up @@ -206,11 +211,6 @@ async function incrementRemixVersion(nextVersion) {

// Update deployment script `@remix-run/dev` version
await updateDeploymentScriptVersion(nextVersion);

// Commit and tag
execSync(`git commit --all --message="Version ${nextVersion}"`);
execSync(`git tag -a -m "Version ${nextVersion}" v${nextVersion}`);
console.log(chalk.green(` Committed and tagged version ${nextVersion}`));
}

/**
Expand Down

0 comments on commit db318c2

Please sign in to comment.