From 1b26673c4996f12981e2c59f8bca840753dfccfa Mon Sep 17 00:00:00 2001 From: dal Date: Fri, 3 Oct 2025 12:52:45 -0600 Subject: [PATCH] tsconfig and package fixes --- apps/cli/package.json | 10 +++++----- apps/cli/tsconfig.json | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/apps/cli/package.json b/apps/cli/package.json index 30b202dcc..753d85761 100644 --- a/apps/cli/package.json +++ b/apps/cli/package.json @@ -7,18 +7,18 @@ "buster": "./dist/index.js" }, "scripts": { - "prebuild": "[ \"$SKIP_ENV_CHECK\" = \"true\" ] || tsx scripts/validate-env.ts", + "prebuild": "[ \"$SKIP_ENV_CHECK\" = \"true\" ] || (tsx scripts/validate-env.ts && pnpm run typecheck)", "build": "bun build src/index.tsx --outdir dist --target bun", "build:dry-run": "tsc --noEmit", "build:standalone": "bun build src/index.tsx --compile --outfile dist/buster", "start": "bun run dist/index.js", "typecheck": "tsc --noEmit", - "lint": "biome check . --write", + "lint": "biome check --write", "test": "vitest run", - "test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts' --passWithNoTests", + "test:unit": "vitest run --exclude '**/*.int.test.ts' --exclude '**/*.integration.test.ts'", "test:integration": "vitest run **/*.int.test.ts **/*.integration.test.ts", - "test:watch": "vitest watch", - "test:coverage": "vitest run --coverage", + "test:coverage": "vitest --coverage", + "test:watch": "vitest --watch", "clean": "rm -rf dist" }, "dependencies": { diff --git a/apps/cli/tsconfig.json b/apps/cli/tsconfig.json index e8f722e6d..84e84a196 100644 --- a/apps/cli/tsconfig.json +++ b/apps/cli/tsconfig.json @@ -5,7 +5,8 @@ "rootDir": "src", "tsBuildInfoFile": "dist/.cache/tsbuildinfo.json", "jsx": "react-jsx", - "types": ["bun", "node"] + "types": ["bun", "node"], + "lib": ["ES2021", "DOM"] }, "include": ["src"], "exclude": ["node_modules", "dist"],