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" "buster": "./dist/index.js"
}, },
"scripts": { "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": "bun build src/index.tsx --outdir dist --target bun",
"build:dry-run": "tsc --noEmit", "build:dry-run": "tsc --noEmit",
"build:standalone": "bun build src/index.tsx --compile --outfile dist/buster", "build:standalone": "bun build src/index.tsx --compile --outfile dist/buster",
"start": "bun run dist/index.js", "start": "bun run dist/index.js",
"typecheck": "tsc --noEmit", "typecheck": "tsc --noEmit",
"lint": "biome check . --write", "lint": "biome check --write",
"test": "vitest run", "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:integration": "vitest run **/*.int.test.ts **/*.integration.test.ts",
"test:watch": "vitest watch", "test:coverage": "vitest --coverage",
"test:coverage": "vitest run --coverage", "test:watch": "vitest --watch",
"clean": "rm -rf dist" "clean": "rm -rf dist"
}, },
"dependencies": { "dependencies": {

View File

@ -5,7 +5,8 @@
"rootDir": "src", "rootDir": "src",
"tsBuildInfoFile": "dist/.cache/tsbuildinfo.json", "tsBuildInfoFile": "dist/.cache/tsbuildinfo.json",
"jsx": "react-jsx", "jsx": "react-jsx",
"types": ["bun", "node"] "types": ["bun", "node"],
"lib": ["ES2021", "DOM"]
}, },
"include": ["src"], "include": ["src"],
"exclude": ["node_modules", "dist"], "exclude": ["node_modules", "dist"],