Skip to content

Commit

Permalink
Fix peer deps for use-sync-external-store
Browse files Browse the repository at this point in the history
Merged last PR too quickly
  • Loading branch information
acdlite committed Dec 8, 2021
1 parent ec78b13 commit e39b2c8
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions scripts/rollup/build-all-release-channels.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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];
Expand Down

0 comments on commit e39b2c8

Please sign in to comment.