Skip to content

Commit 7013426

Browse files
upgrade to biome v2
1 parent 0e70ea5 commit 7013426

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+197
-153
lines changed

.changeset/pink-pigs-matter.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-better-t-stack": minor
3+
---
4+
5+
upgrade to biome v2

apps/cli/src/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const dependencyVersionMap = {
4949

5050
"@tauri-apps/cli": "^2.4.0",
5151

52-
"@biomejs/biome": "1.9.4",
52+
"@biomejs/biome": "^2.0.0",
5353

5454
husky: "^9.1.7",
5555
"lint-staged": "^15.5.0",

apps/cli/src/helpers/database-providers/mongodb-atlas-setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import pc from "picocolors";
77
import type { ProjectConfig } from "../../types";
88
import { commandExists } from "../../utils/command-exists";
99
import {
10-
type EnvVariable,
1110
addEnvVariablesToFile,
11+
type EnvVariable,
1212
} from "../project-generation/env-setup";
1313

1414
type MongoDBConfig = {

apps/cli/src/helpers/database-providers/neon-setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import pc from "picocolors";
77
import type { PackageManager, ProjectConfig } from "../../types";
88
import { getPackageExecutionCommand } from "../../utils/get-package-execution-command";
99
import {
10-
type EnvVariable,
1110
addEnvVariablesToFile,
11+
type EnvVariable,
1212
} from "../project-generation/env-setup";
1313

1414
type NeonConfig = {

apps/cli/src/helpers/database-providers/prisma-postgres-setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import type { PackageManager } from "../../types";
88
import { addPackageDependency } from "../../utils/add-package-deps";
99
import { getPackageExecutionCommand } from "../../utils/get-package-execution-command";
1010
import {
11-
type EnvVariable,
1211
addEnvVariablesToFile,
12+
type EnvVariable,
1313
} from "../project-generation/env-setup";
1414

1515
type PrismaConfig = {

apps/cli/src/helpers/database-providers/supabase-setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import pc from "picocolors";
77
import type { PackageManager, ProjectConfig } from "../../types";
88
import { getPackageExecutionCommand } from "../../utils/get-package-execution-command";
99
import {
10-
type EnvVariable,
1110
addEnvVariablesToFile,
11+
type EnvVariable,
1212
} from "../project-generation/env-setup";
1313

1414
async function writeSupabaseEnvFile(

apps/cli/src/helpers/database-providers/turso-setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import pc from "picocolors";
1515
import type { ProjectConfig } from "../../types";
1616
import { commandExists } from "../../utils/command-exists";
1717
import {
18-
type EnvVariable,
1918
addEnvVariablesToFile,
19+
type EnvVariable,
2020
} from "../project-generation/env-setup";
2121

2222
type TursoConfig = {

apps/cli/src/helpers/project-generation/create-readme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import path from "node:path";
22
import consola from "consola";
33
import fs from "fs-extra";
44
import type {
5-
API,
65
Addons,
6+
API,
77
Database,
88
Frontend,
99
ORM,

apps/cli/src/helpers/project-generation/post-installation.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import { consola } from "consola";
22
import pc from "picocolors";
3-
import type { Database, ORM, Runtime } from "../../types";
3+
import type { Database, ORM, ProjectConfig, Runtime } from "../../types";
44
import { getPackageExecutionCommand } from "../../utils/get-package-execution-command";
55

6-
import type { ProjectConfig } from "../../types";
7-
86
export function displayPostInstallInstructions(
97
config: ProjectConfig & { depsInstalled: boolean },
108
) {

apps/cli/src/helpers/setup/addons-setup.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
import path from "node:path";
22
import fs from "fs-extra";
3-
import type { Frontend } from "../../types";
3+
import type { Frontend, ProjectConfig } from "../../types";
44
import { addPackageDependency } from "../../utils/add-package-deps";
55
import { setupStarlight } from "./starlight-setup";
66
import { setupTauri } from "./tauri-setup";
77

8-
import type { ProjectConfig } from "../../types";
9-
108
export async function setupAddons(config: ProjectConfig) {
119
const { addons, frontend, projectDir } = config;
1210
const hasReactWebFrontend =

0 commit comments

Comments
 (0)