.txt files

This commit is contained in:
dal 2025-09-10 12:35:14 -06:00
parent 31fb2e54ae
commit 2e3fdc9a59
No known key found for this signature in database
GPG Key ID: 16F4B0E1E9F61122
2 changed files with 16 additions and 1 deletions

13
bunfig.toml Normal file
View File

@ -0,0 +1,13 @@
# Bun configuration file
[test]
preload = ["./packages/ai/src/types.d.ts"]
# Configure loaders for different file types
[loader]
# Load .txt files as text content
".txt" = "text"
# Development path mappings - uncomment to use source files directly
# [install.scopes]
# "@buster/ai" = { "path" = "./packages/ai/src" }

View File

@ -6,16 +6,18 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"bun": "./src/index.ts",
"default": "./dist/index.js"
},
"./*": {
"types": "./dist/*.d.ts",
"bun": "./src/*.ts",
"default": "./dist/*.js"
}
},
"scripts": {
"prebuild": "[ \"$SKIP_ENV_CHECK\" = \"true\" ] || tsx scripts/validate-env.ts",
"build": "tsc",
"build": "tsc && (cd src && find . -name '*.txt' -exec sh -c 'mkdir -p ../dist/$(dirname {}) && cp {} ../dist/{}' \\;) || true",
"build:dry-run": "tsc",
"typecheck": "tsc --noEmit",
"dev": "tsc --watch",