diff options
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | examples/bun/http-file.ts | 1 | ||||
-rw-r--r-- | examples/bun/tsconfig.json | 8 | ||||
-rw-r--r-- | integration/bunjs-only-snippets/tsconfig.json | 13 |
4 files changed, 16 insertions, 9 deletions
@@ -319,8 +319,7 @@ PLATFORM_LINKER_FLAGS = \ -Wl,--compress-debug-sections,zlib \ ${STATIC_MUSL_FLAG} \ -Wl,-Bsymbolic-functions \ - -fno-semantic-interposition \ - --allow-multiple-definition + -fno-semantic-interposition ARCHIVE_FILES_WITHOUT_LIBCRYPTO += $(BUN_DEPS_OUT_DIR)/libbacktrace.a endif diff --git a/examples/bun/http-file.ts b/examples/bun/http-file.ts index f2c0773e8..1699e20e0 100644 --- a/examples/bun/http-file.ts +++ b/examples/bun/http-file.ts @@ -3,6 +3,7 @@ Bun.serve({ fetch(req) { const url = new URL(req.url.substring(1), "file://" + import.meta.path); const path = Bun.resolveSync(url.pathname, import.meta.path); + return new Response(Bun.file(path)); }, diff --git a/examples/bun/tsconfig.json b/examples/bun/tsconfig.json index 4082f16a5..ab7f30fc9 100644 --- a/examples/bun/tsconfig.json +++ b/examples/bun/tsconfig.json @@ -1,3 +1,9 @@ { - "extends": "../../tsconfig.json" + "compilerOptions": { + "lib": ["ESNext"], + "module": "esnext", + "target": "esnext", + "typeRoots": ["../../types"], + "types": ["bun"] + } } diff --git a/integration/bunjs-only-snippets/tsconfig.json b/integration/bunjs-only-snippets/tsconfig.json index fc416b882..05df31d44 100644 --- a/integration/bunjs-only-snippets/tsconfig.json +++ b/integration/bunjs-only-snippets/tsconfig.json @@ -1,12 +1,13 @@ { "compilerOptions": { "lib": ["ESNext"], - "allowJs": true, - "checkJs": true, - "noEmit": true, - "moduleResolution": "node", - "downlevelIteration": true, "module": "esnext", - "types": ["../../types/bun"] + "target": "esnext", + "typeRoots": ["../../types"], + "types": ["bun"], + "baseUrl": ".", + "paths": { + "foo/bar": ["baz.js"] + } } } |