mirror of
https://github.com/silicoflare/confidant.git
synced 2026-05-26 20:48:01 +05:30
feat: remove complete dependency on bun to be able to compile to .js
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { $ } from "bun";
|
||||
import { stringy } from "../src/utils";
|
||||
import { randomBytes } from "crypto";
|
||||
import chalkTemplate from "chalk-template";
|
||||
import { writeFileSync } from "fs";
|
||||
|
||||
const envstring = `// env.ts
|
||||
const env = {
|
||||
@@ -15,5 +15,5 @@ const env = {
|
||||
export default env;
|
||||
`;
|
||||
|
||||
await $`echo ${envstring} > env.ts`;
|
||||
writeFileSync("./env.ts", envstring);
|
||||
console.log(chalkTemplate`{green env.ts initialized sucessfully!}`);
|
||||
|
||||
Reference in New Issue
Block a user