Upgrade OpenTUI to 0.8.1
The native library now comes from a package per platform, so the bundle leaves those imports to run time. A SyntaxStyle belongs to the renderer that made it, so the markdown style is kept per renderer.
This commit is contained in:
1 parent
e2d2892c52
commit
b35263b41b
6 files changed
+41
-31
No files matched your search
+2
-1
@@ -13,7 +13,8 @@ const builds = [
|
||||
join(root, "node_modules/@opentui/core/parser.worker.js"),
|
||||
];
|
||||
for (const entrypoint of builds) {
|
||||
const result = await Bun.build({ entrypoints: [entrypoint], outdir, target: "bun", minify: true });
|
||||
// OpenTUI's native library comes from a package per platform, found in node_modules at run time.
|
||||
const result = await Bun.build({ entrypoints: [entrypoint], outdir, target: "bun", minify: true, external: ["@opentui/core-*"] });
|
||||
if (!result.success) {
|
||||
for (const log of result.logs) console.error(log);
|
||||
process.exit(1);
|
||||
|
||||
Reference in new issue
Block a user