Skip to content

Commit 0ddee69

Browse files
committed
Drop support for Bolt
1 parent 1763058 commit 0ddee69

File tree

13 files changed

+17
-182
lines changed

13 files changed

+17
-182
lines changed

.changeset/slow-vans-repair.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@manypkg/get-packages": major
3+
"@manypkg/find-root": major
4+
"@manypkg/tools": major
5+
"@manypkg/cli": minor
6+
---
7+
8+
Drop support for Bolt

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
# Manypkg
2424

25-
Manypkg is a linter for `package.json` files in Yarn, Bolt or pnpm monorepos.
25+
Manypkg is a linter for `package.json` files in Yarn, npm or pnpm monorepos.
2626

2727
## Install
2828

@@ -166,7 +166,7 @@ The most commonly used range of the dependency is set as the range at every non-
166166

167167
<details><summary>Incorrect example</summary>
168168

169-
> NOTE: This example uses Yarn Workspaces but this will work the same with Bolt and pnpm
169+
> NOTE: This example uses Yarn Workspaces but this will work the same with npm and pnpm
170170
171171
`package.json`
172172

@@ -220,7 +220,7 @@ This example will cause an error because the range `2.0.0` for `some-external-pa
220220

221221
<details><summary>Correct example</summary>
222222

223-
> NOTE: This example uses Yarn Workspaces but this will work the same with Bolt and pnpm
223+
> NOTE: This example uses Yarn Workspaces but this will work the same with npm and pnpm
224224
225225
`package.json`
226226

__fixtures__/bolt-workspace/package.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

__fixtures__/bolt-workspace/packages/pkg-a/package.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

__fixtures__/bolt-workspace/packages/pkg-b/package.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

packages/cli/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Manypkg
22

3-
Manypkg is a linter for `package.json` files in Yarn, Bolt, Lerna, pnpm or Rush monorepos.
3+
Manypkg is a linter for `package.json` files in Yarn, npm, Lerna, pnpm or Rush monorepos.
44

55
## Install
66

packages/cli/src/utils.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export async function writePackage(pkg: Package) {
1616

1717
export async function install(toolType: string, cwd: string) {
1818
const cliRunners: Record<string, string> = {
19-
bolt: "bolt",
2019
lerna: "lerna",
2120
pnpm: "pnpm",
2221
root: "yarn",
@@ -29,8 +28,8 @@ export async function install(toolType: string, cwd: string) {
2928
toolType === "pnpm"
3029
? ["install"]
3130
: toolType === "lerna"
32-
? ["bootstrap", "--since", "HEAD"]
33-
: [],
31+
? ["bootstrap", "--since", "HEAD"]
32+
: [],
3433
{ nodeOptions: { cwd, stdio: "inherit" } }
3534
);
3635
}

packages/find-root/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# @manypkg/find-root
22

3-
> Find the root of a monorepo with Yarn workspaces, Bolt, Lerna, pnpm or Rush
3+
> Find the root of a monorepo with Yarn workspaces, npm, Lerna, pnpm or Rush
44
55
## Install
66

packages/find-root/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
type Tool,
77
RootTool,
88
type MonorepoRoot,
9-
BoltTool,
109
LernaTool,
1110
PnpmTool,
1211
RushTool,
@@ -25,7 +24,6 @@ export const DEFAULT_TOOLS: Tool[] = [
2524
PnpmTool,
2625
LernaTool,
2726
RushTool,
28-
BoltTool,
2927
RootTool,
3028
];
3129

packages/get-packages/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# @manypkg/get-packages
22

3-
> A simple utility to get the packages from a monorepo, whether they're using Yarn, Bolt, Lerna, pnpm or Rush
3+
> A simple utility to get the packages from a monorepo, whether they're using Yarn, npm, Lerna, pnpm or Rush
44
5-
This library exports `getPackages` and `getPackagesSync`. It is intended mostly for use of developers building tools that want to support different kinds of monorepos as an easy way to write tools without having to write tool-specific code. It supports Yarn, Bolt, Lerna, pnpm, Rush and single-package repos(where the only package is the the same as the root package). This library uses `@manypkg/find-root` to search up from the directory that's passed to `getPackages` or `getPackagesSync` to find the project root.
5+
This library exports `getPackages` and `getPackagesSync`. It is intended mostly for use of developers building tools that want to support different kinds of monorepos as an easy way to write tools without having to write tool-specific code. It supports Yarn, npm, Lerna, pnpm, Rush and single-package repos(where the only package is the the same as the root package). This library uses `@manypkg/find-root` to search up from the directory that's passed to `getPackages` or `getPackagesSync` to find the project root.
66

77
```typescript
88
import { getPackages, getPackagesSync } from "@manypkg/get-packages";

packages/get-packages/src/index.test.ts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -43,27 +43,6 @@ let runTests = (getPackages: GetPackages) => {
4343
expect(allPackages.tool.type).toEqual("yarn");
4444
});
4545

46-
it("should resolve workspaces for bolt", async () => {
47-
const dir = f.copy("bolt-workspace");
48-
49-
// Test for both root and subdirectories
50-
for (const location of [".", "packages", "packages/pkg-b"]) {
51-
const allPackages = await getPackages(path.join(dir, location));
52-
53-
if (allPackages.packages === null) {
54-
return expect(allPackages.packages).not.toBeNull();
55-
}
56-
57-
expect(allPackages.packages[0].packageJson.name).toEqual(
58-
"bolt-workspace-pkg-a"
59-
);
60-
expect(allPackages.packages[1].packageJson.name).toEqual(
61-
"bolt-workspace-pkg-b"
62-
);
63-
expect(allPackages.tool.type).toEqual("bolt");
64-
}
65-
});
66-
6746
it("should resolve workspaces for pnpm", async () => {
6847
const dir = f.copy("pnpm-workspace-base");
6948

packages/tools/src/BoltTool.ts

Lines changed: 0 additions & 126 deletions
This file was deleted.

packages/tools/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
export * from "./Tool.ts";
2-
export { BoltTool } from "./BoltTool.ts";
32
export { LernaTool } from "./LernaTool.ts";
43
export { PnpmTool } from "./PnpmTool.ts";
54
export { RootTool } from "./RootTool.ts";

0 commit comments

Comments
 (0)