Update bunfig.toml to set test timeout and add type checking scripts to package.json
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user