Skip to content

Commit 176c454

Browse files
committed
chore: fix check
1 parent 3ee0315 commit 176c454

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

packages/monorepo-tools/src/bump-packages.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
1-
/* eslint-disable no-console */
2-
import childProcess from 'child_process';
31
import { promises as fs } from 'fs';
42
// @ts-expect-error No definitions available
53
import gitLogParser from 'git-log-parser';
64
import path from 'path';
75
import type { ReleaseType } from 'semver';
86
import semver from 'semver';
97
import { PassThrough } from 'stream';
10-
import { isDeepStrictEqual, promisify } from 'util';
8+
import { isDeepStrictEqual } from 'util';
119

1210
import type { GitCommit } from './utils/get-conventional-bump';
1311
import { getConventionalBump } from './utils/get-conventional-bump';
1412
import { getPackagesInTopologicalOrder } from './utils/get-packages-in-topological-order';
1513
import { maxIncrement } from './utils/max-increment';
1614
import { installDependencies } from './utils/package-manager';
1715

18-
const execFile = promisify(childProcess.execFile);
19-
2016
const LAST_BUMP_COMMIT_MESSAGE =
2117
process.env.LAST_BUMP_COMMIT_MESSAGE || 'chore(ci): bump packages';
2218

packages/monorepo-tools/src/where.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
);

0 commit comments

Comments
 (0)