tsconfig and package fixes

This commit is contained in:
dal 2025-10-03 12:52:45 -06:00
parent b42f2b37a4
commit 1b26673c49
No known key found for this signature in database
GPG Key ID: 16F4B0E1E9F61122
2 changed files with 7 additions and 6 deletions

View File

@ -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": {

View File

@ -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"],