Skip to content

Commit e39b2c8

Browse files
committed
Fix peer deps for use-sync-external-store
Merged last PR too quickly
1 parent ec78b13 commit e39b2c8

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

scripts/rollup/build-all-release-channels.js

+9-7
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,14 @@ function buildForChannel(channel, nodeTotal, nodeIndex) {
9898

9999
function processStable(buildDir) {
100100
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+
101109
const defaultVersionIfNotFound = '0.0.0' + '-' + sha + '-' + dateString;
102110
const versionsMap = new Map();
103111
for (const moduleName in stablePackages) {
@@ -116,13 +124,7 @@ function processStable(buildDir) {
116124
);
117125
fs.renameSync(buildDir + '/node_modules', buildDir + '/oss-stable');
118126

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
126128
const semverVersionsMap = new Map();
127129
for (const moduleName in stablePackages) {
128130
const version = stablePackages[moduleName];

0 commit comments

Comments
 (0)