Skip to content

Commit 7eeee5d

Browse files
committed
Fix format
1 parent 526c8a5 commit 7eeee5d

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

src/LocalInstaller.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ export class LocalInstaller extends EventEmitter {
9191
const toInstall = target.sources.map((source) =>
9292
resolvePackFile(this.uniqueDir, source.packageJson),
9393
);
94-
const pkgManager = this.options.packageManager ?? (await prober.probePackageManager());
94+
const pkgManager =
95+
this.options.packageManager ?? (await prober.probePackageManager());
9596
const options: ExecaOptions = {
9697
cwd: target.directory,
9798
maxBuffer: TEN_MEGA_BYTE,

src/prober.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
21
export const validPackageManagers = ['npm', 'pnpm'] as const;
3-
export type PackageManager = typeof validPackageManagers[number];
2+
export type PackageManager = (typeof validPackageManagers)[number];
43
import { promises as fs } from 'fs';
54

65
export const prober = {
@@ -14,6 +13,5 @@ export const prober = {
1413
}
1514
// Default to npm if no lock file found
1615
return 'npm';
17-
18-
}
19-
}
16+
},
17+
};

src/siblingInstall.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
import { promises as fs } from 'fs';
22
import path from 'path';
33
import { helpers } from './helpers.ts';
4-
import { type ListByPackage, type Package, LocalInstaller, Options } from './index.ts';
4+
import {
5+
type ListByPackage,
6+
type Package,
7+
LocalInstaller,
8+
Options,
9+
} from './index.ts';
510
import { progressReporter } from './progress.ts';
611

712
function filterTruthy(values: Array<Package | null>): Package[] {

test/integration/cli.it.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ describe('install-local cli', () => {
102102
const expectedLink = await fs.readlink(
103103
path.resolve(packages.one.directory, 'node_modules', 'typed-inject'),
104104
);
105-
expect(expectedLink).to.eq('.pnpm/typed-inject@5.0.0/node_modules/typed-inject'); // verify arrange
105+
expect(expectedLink).to.eq(
106+
'.pnpm/typed-inject@5.0.0/node_modules/typed-inject',
107+
); // verify arrange
106108
const expectedPnpmLock = await packages.one.readFile('pnpm-lock.yaml');
107109

108110
// Act

0 commit comments

Comments
 (0)