File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 22const fs = require ( 'fs' ) ;
33const path = require ( 'path' ) ;
44
5- const { forEachPackage } = require ( '@mongodb-js/monorepo-tools' ) ;
5+ const { listAllPackages } = require ( '@mongodb-js/monorepo-tools' ) ;
66
7- forEachPackage ( ( props ) => {
7+ for await ( const props of listAllPackages ( ) ) {
88 if ( ! fs . existsSync ( path . resolve ( props . location , '.prettierrc.json' ) ) ) {
99 console . log ( props . name ) ;
1010 }
11- } ) ;
11+ }
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ const semver = require('semver');
33const fetch = require ( 'make-fetch-happen' ) ;
44const fs = require ( 'fs' ) ;
55const path = require ( 'path' ) ;
6- const { forEachPackage } = require ( '@mongodb-js/monorepo-tools' ) ;
6+ const { listAllPackages } = require ( '@mongodb-js/monorepo-tools' ) ;
77const { runInDir } = require ( './run-in-dir' ) ;
88
99async function cleanAndBootstrap ( newVersions ) {
@@ -125,11 +125,11 @@ async function main() {
125125
126126 console . log ( 'Updating the following packages:' , newVersions ) ;
127127
128- forEachPackage ( ( props ) => {
128+ for await ( const props of listAllPackages ( ) ) {
129129 const packageJsonPath = path . resolve ( props . location , 'package.json' ) ;
130130
131131 updatePackageVersions ( packageJsonPath , newVersions ) ;
132- } ) ;
132+ }
133133
134134 console . log ( 'Cleaning node_modules and rebootstrapping' ) ;
135135 cleanAndBootstrap ( newVersions ) ;
You can’t perform that action at this time.
0 commit comments