Fix peer deps for use-sync-external-store
Merged last PR too quickly
Andrew Clark committed
Dec 8, 2021 at 02:44 UTC
e39b2c8998a458a772b9284d0fb9f6a5ccdda914
1 file changed
+9
-7
scripts/rollup/build-all-release-channels.js
+9
-7
@@ -98,6 +98,14 @@ function buildForChannel(channel, nodeTotal, nodeIndex) {
98
99
function processStable(buildDir) {
100
if (fs.existsSync(buildDir + '/node_modules')) {
101
+ // Identical to `oss-stable` but with real, semver versions. This is what
102
+ // will get published to @latest.
103
+ spawnSync('cp', [
104
+ '-r',
105
+ buildDir + '/node_modules',
106
+ buildDir + '/oss-stable-semver',
107
+ ]);
108
+
109
const defaultVersionIfNotFound = '0.0.0' + '-' + sha + '-' + dateString;
110
const versionsMap = new Map();
111
for (const moduleName in stablePackages) {
@@ -116,13 +124,7 @@ function processStable(buildDir) {
124
);
125
fs.renameSync(buildDir + '/node_modules', buildDir + '/oss-stable');
126
119
- // Identical to `oss-stable` but with real, semver versions. This is what
120
- // will get published to @latest.
121
- spawnSync('cp', [
122
- '-r',
123
- buildDir + '/oss-stable',
124
- buildDir + '/oss-stable-semver',
125
- ]);
127
+ // Now do the semver ones
128
const semverVersionsMap = new Map();
129
for (const moduleName in stablePackages) {
130
const version = stablePackages[moduleName];