Update bunfig.toml to set test timeout and add type checking scripts to package.json

This commit is contained in:
2025-12-07 04:41:11 -05:00
parent 55da02e98d
commit f1c1d3ec92
2 changed files with 4 additions and 1 deletions

View File

@@ -5,4 +5,4 @@ save = false
"@techniker-me" = "https://registry-node.techniker.me" "@techniker-me" = "https://registry-node.techniker.me"
[test] [test]
preload = ["./test/setup.ts"] timeout = 5000

View File

@@ -18,6 +18,9 @@
"prelint:fix": "bun format", "prelint:fix": "bun format",
"lint": "eslint src/**/*.ts", "lint": "eslint src/**/*.ts",
"lint:fix": "eslint src/**/*.ts --fix", "lint:fix": "eslint src/**/*.ts --fix",
"postlint:fix": "bun run typecheck",
"postlint": "bun run typecheck",
"typecheck": "tsc --noEmit",
"build:node": "bun build src/index.ts --outdir dist/node --target node --format esm --production", "build:node": "bun build src/index.ts --outdir dist/node --target node --format esm --production",
"build:browser": "bun build src/index.ts --outdir dist/browser --target browser --format esm --production", "build:browser": "bun build src/index.ts --outdir dist/browser --target browser --format esm --production",
"build:types": "tsc --emitDeclarationOnly --outDir dist/types", "build:types": "tsc --emitDeclarationOnly --outDir dist/types",