Skip to content

Commit 9b0ea3c

Browse files
Claudehotlong
andauthored
fix: mark driver packages as external in runtime build config
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 6221013 commit 9b0ea3c

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

packages/runtime/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515
},
1616
"scripts": {
17-
"build": "tsup --config ../../tsup.config.ts",
17+
"build": "tsup --config tsup.config.ts",
1818
"dev": "tsc -w",
1919
"test": "vitest run"
2020
},

packages/runtime/tsup.config.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license.
2+
3+
import { defineConfig } from 'tsup';
4+
5+
export default defineConfig({
6+
entry: ['src/index.ts'],
7+
splitting: false,
8+
sourcemap: true,
9+
clean: true,
10+
dts: true,
11+
format: ['esm', 'cjs'],
12+
target: 'es2020',
13+
// Mark driver packages as external so they are resolved at runtime, not bundled
14+
external: [
15+
'@objectstack/driver-memory',
16+
'@objectstack/driver-sql',
17+
'@objectstack/driver-turso',
18+
],
19+
});

0 commit comments

Comments
 (0)