mirror of https://github.com/buster-so/buster.git
.txt files
This commit is contained in:
parent
31fb2e54ae
commit
2e3fdc9a59
|
@ -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" }
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue