Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/find-packages-on-old-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
const fs = require('fs');
const path = require('path');

const { forEachPackage } = require('@mongodb-js/monorepo-tools');
const { listAllPackages } = require('@mongodb-js/monorepo-tools');

forEachPackage((props) => {
for await (const props of listAllPackages()) {
if (!fs.existsSync(path.resolve(props.location, '.prettierrc.json'))) {
console.log(props.name);
}
});
}
6 changes: 3 additions & 3 deletions scripts/update-electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const semver = require('semver');
const fetch = require('make-fetch-happen');
const fs = require('fs');
const path = require('path');
const { forEachPackage } = require('@mongodb-js/monorepo-tools');
const { listAllPackages } = require('@mongodb-js/monorepo-tools');
const { runInDir } = require('./run-in-dir');

async function cleanAndBootstrap(newVersions) {
Expand Down Expand Up @@ -125,11 +125,11 @@ async function main() {

console.log('Updating the following packages:', newVersions);

forEachPackage((props) => {
for await (const props of listAllPackages()) {
const packageJsonPath = path.resolve(props.location, 'package.json');

updatePackageVersions(packageJsonPath, newVersions);
});
}

console.log('Cleaning node_modules and rebootstrapping');
cleanAndBootstrap(newVersions);
Expand Down
Loading