Skip to content

Commit 3e3f67f

Browse files
committed
chore: Migrate fix.js script to use bun and remove unused VitePress and Algolia dependencies.
1 parent bca92f5 commit 3e3f67f

File tree

6 files changed

+76
-413
lines changed

6 files changed

+76
-413
lines changed

apps/conduit/package.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,9 @@
1414
"test:unit": "bun test",
1515
"test": "bun test:api && bun test:unit",
1616
"typecheck": "tsc --noEmit",
17-
"fix": "biome check --fix",
18-
"check": "biome check",
19-
"check:errors": "biome check --diagnostic-level=error",
20-
"docs": "vitepress dev docs",
21-
"docs:build": "vitepress build docs",
22-
"docs:preview": "vitepress preview docs",
17+
"fix": "bun run --cwd ../.. fix",
18+
"check": "bun run --cwd ../.. check",
19+
"check:errors": "bun run --cwd ../.. check:errors",
2320
"db": "docker compose up",
2421
"db:start": "docker compose up -d",
2522
"db:stop": "docker compose stop",
@@ -55,8 +52,7 @@
5552
"drizzle-kit": "^0.31.8",
5653
"drizzle-seed": "^0.3.1",
5754
"pg": "^8.16.3",
58-
"typescript": "^5.9.3",
59-
"vitepress": "^1.6.4"
55+
"typescript": "^5.9.3"
6056
},
6157
"overrides": {
6258
"@sinclair/typebox": "0.34.34"

apps/www/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"name": "www",
3-
"version": "0.0.0",
4-
"private": true,
5-
"scripts": {
6-
"clean": "rimraf node_modules",
7-
"typecheck": "tsc --noEmit"
8-
}
2+
"name": "www",
3+
"version": "0.0.0",
4+
"private": true,
5+
"scripts": {
6+
"clean": "rimraf node_modules",
7+
"typecheck": "tsc --noEmit"
8+
}
99
}

bedstack.code-workspace

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
{
2-
"settings": {
3-
"files.associations": {
4-
"turbo.json": "jsonc",
5-
"tsconfig*.json": "jsonc",
6-
".github/renovate.json": "jsonc",
7-
"renovate.json": "jsonc",
8-
"*.css": "tailwindcss"
9-
}
10-
},
11-
"folders": [
12-
{
13-
"path": ".",
14-
"name": "~"
15-
},
16-
{
17-
"path": "apps",
18-
"name": "apps"
19-
},
20-
{
21-
"path": "apps/conduit",
22-
"name": " conduit (Bedstack)"
23-
},
24-
{
25-
"path": "apps/www",
26-
"name": " www (bedstack.js.org)"
27-
},
28-
]
2+
"settings": {
3+
"files.associations": {
4+
"turbo.json": "jsonc",
5+
"tsconfig*.json": "jsonc",
6+
".github/renovate.json": "jsonc",
7+
"renovate.json": "jsonc",
8+
"*.css": "tailwindcss"
9+
}
10+
},
11+
"folders": [
12+
{
13+
"path": ".",
14+
"name": "~"
15+
},
16+
{
17+
"path": "apps",
18+
"name": "apps"
19+
},
20+
{
21+
"path": "apps/conduit",
22+
"name": " conduit (Bedstack)"
23+
},
24+
{
25+
"path": "apps/www",
26+
"name": " www (bedstack.js.org)"
27+
}
28+
]
2929
}

bin/fix.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,27 @@
99
* node bin/fix.js --unsafe # Run biome with --unsafe flag
1010
*/
1111

12-
import { execSync } from "node:child_process";
13-
import { argv, env } from "node:process";
12+
import { execSync } from 'node:child_process';
13+
import { argv, env } from 'node:process';
1414

1515
const args = argv.slice(2);
1616

17-
const skipManypkgFlag = args.includes("--skip-manypkg");
18-
const skipManypkgEnv = env.SKIP_MANYPKG === "true" || env.SKIP_MANYPKG === "1";
17+
const skipManypkgFlag = args.includes('--skip-manypkg');
18+
const skipManypkgEnv = env.SKIP_MANYPKG === 'true' || env.SKIP_MANYPKG === '1';
1919

2020
const skipManypkg = skipManypkgFlag || skipManypkgEnv;
2121

22-
const unsafe = args.includes("--unsafe");
22+
const unsafe = args.includes('--unsafe');
2323

2424
// Always run biome formatting
25-
const biomeArgs = unsafe ? ["--write", "--unsafe", "."] : ["--write", "."];
26-
console.log("Running biome check...");
27-
execSync(`pnpm exec biome check ${biomeArgs.join(" ")}`, { stdio: "inherit" });
25+
const biomeArgs = unsafe ? ['--write', '--unsafe', '.'] : ['--write', '.'];
26+
console.log('Running biome check...');
27+
execSync(`bun biome check ${biomeArgs.join(' ')}`, { stdio: 'inherit' });
2828

2929
// Conditionally run manypkg fix
3030
if (!skipManypkg) {
31-
console.log("Running manypkg fix...");
32-
execSync("pnpm exec manypkg fix", { stdio: "inherit" });
31+
console.log('Running manypkg fix...');
32+
execSync('bun manypkg fix', { stdio: 'inherit' });
3333
} else {
34-
console.log("Skipping manypkg fix (SKIP_MANYPKG or --skip-manypkg)");
34+
console.log('Skipping manypkg fix (SKIP_MANYPKG or --skip-manypkg)');
3535
}

0 commit comments

Comments
 (0)