format: format with biome

This commit is contained in:
Max Koon
2025-11-24 22:20:40 -05:00
parent 01edded95a
commit 6fd531d9c3
41 changed files with 1025 additions and 667 deletions

View File

@@ -5,9 +5,12 @@ import path from "path";
const aliasPlugin = {
name: "alias-react-native",
setup(build) {
build.onResolve({ filter: /^react-native$/ }, args => {
build.onResolve({ filter: /^react-native$/ }, (args) => {
return {
path: path.resolve(__dirname, "../../packages/react-native-opentui/index.tsx"),
path: path.resolve(
__dirname,
"../../packages/react-native-opentui/index.tsx",
),
};
});
},
@@ -16,9 +19,9 @@ const aliasPlugin = {
// Build configuration
await esbuild.build({
entryPoints: ["src/index.tsx"], // your app entry
bundle: true, // inline all dependencies (ui included)
platform: "node", // Node/Bun target
format: "esm", // keep ESM for top-level await
bundle: true, // inline all dependencies (ui included)
platform: "node", // Node/Bun target
format: "esm", // keep ESM for top-level await
outfile: "dist/index.js",
sourcemap: true,
plugins: [aliasPlugin],