From e39b2c8998a458a772b9284d0fb9f6a5ccdda914 Mon Sep 17 00:00:00 2001 From: Andrew Clark Date: Wed, 8 Dec 2021 02:44:12 -0500 Subject: [PATCH] Fix peer deps for use-sync-external-store Merged last PR too quickly --- scripts/rollup/build-all-release-channels.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/scripts/rollup/build-all-release-channels.js b/scripts/rollup/build-all-release-channels.js index e8f072d723..0852b8af2e 100644 --- a/scripts/rollup/build-all-release-channels.js +++ b/scripts/rollup/build-all-release-channels.js @@ -98,6 +98,14 @@ function buildForChannel(channel, nodeTotal, nodeIndex) { function processStable(buildDir) { if (fs.existsSync(buildDir + '/node_modules')) { + // Identical to `oss-stable` but with real, semver versions. This is what + // will get published to @latest. + spawnSync('cp', [ + '-r', + buildDir + '/node_modules', + buildDir + '/oss-stable-semver', + ]); + const defaultVersionIfNotFound = '0.0.0' + '-' + sha + '-' + dateString; const versionsMap = new Map(); for (const moduleName in stablePackages) { @@ -116,13 +124,7 @@ function processStable(buildDir) { ); fs.renameSync(buildDir + '/node_modules', buildDir + '/oss-stable'); - // Identical to `oss-stable` but with real, semver versions. This is what - // will get published to @latest. - spawnSync('cp', [ - '-r', - buildDir + '/oss-stable', - buildDir + '/oss-stable-semver', - ]); + // Now do the semver ones const semverVersionsMap = new Map(); for (const moduleName in stablePackages) { const version = stablePackages[moduleName];