File tree Expand file tree Collapse file tree
packages/monorepo-tools/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- /* eslint-disable no-console */
2- import childProcess from 'child_process' ;
31import { promises as fs } from 'fs' ;
42// @ts -expect-error No definitions available
53import gitLogParser from 'git-log-parser' ;
64import path from 'path' ;
75import type { ReleaseType } from 'semver' ;
86import semver from 'semver' ;
97import { PassThrough } from 'stream' ;
10- import { isDeepStrictEqual , promisify } from 'util' ;
8+ import { isDeepStrictEqual } from 'util' ;
119
1210import type { GitCommit } from './utils/get-conventional-bump' ;
1311import { getConventionalBump } from './utils/get-conventional-bump' ;
1412import { getPackagesInTopologicalOrder } from './utils/get-packages-in-topological-order' ;
1513import { maxIncrement } from './utils/max-increment' ;
1614import { installDependencies } from './utils/package-manager' ;
1715
18- const execFile = promisify ( childProcess . execFile ) ;
19-
2016const LAST_BUMP_COMMIT_MESSAGE =
2117 process . env . LAST_BUMP_COMMIT_MESSAGE || 'chore(ci): bump packages' ;
2218
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ async function npmWorkspaces(packages: string[]) {
7676 const packageManager = getPackageManager ( ) ;
7777 const packageManagerVersion = await getPackageManagerVersion ( ) ;
7878
79- if ( packageManager != 'npm' ) {
79+ if ( packageManager !== 'npm' ) {
8080 throw Error (
8181 `"npm run where" only supports npm, using ${ packageManager } . Use the command with pnpm --filter or --lerna-exec instead` ,
8282 ) ;
You can’t perform that action at this time.
0 commit comments