Connect to T3 Code: auth, RPC client, shell and thread session
This commit is contained in:
commit
c93244e7f4
12 files changed
+620
No files matched your search
@@ -0,0 +1,14 @@
|
||||
// Exposes the pinned T3 Code workspace packages under node_modules/@t3tools so
|
||||
// their package export maps resolve. They are TypeScript sources Bun runs as-is.
|
||||
import { lstat, mkdir, readdir, rm, symlink } from "node:fs/promises";
|
||||
import { join, relative } from "node:path";
|
||||
|
||||
const root = join(import.meta.dir, "..");
|
||||
const packagesDir = join(root, "vendor/t3code/packages");
|
||||
const scopeDir = join(root, "node_modules/@t3tools");
|
||||
await mkdir(scopeDir, { recursive: true });
|
||||
for (const name of await readdir(packagesDir)) {
|
||||
const link = join(scopeDir, name);
|
||||
await lstat(link).then(() => rm(link, { recursive: true, force: true }), () => {});
|
||||
await symlink(relative(scopeDir, join(packagesDir, name)), link, "dir");
|
||||
}
|
||||
Reference in new issue
Block a user