diff --git a/scripts/utils.js b/scripts/utils.js index d42d8e22eea..1d4d0a4faab 100644 --- a/scripts/utils.js +++ b/scripts/utils.js @@ -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}`; } } }); @@ -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}${ @@ -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}`)); } /**