Remove build directory

This commit is contained in:
Hri7566 2023-09-07 17:24:32 -04:00
parent fa8963c80f
commit d43f6cba2d
7 changed files with 9 additions and 52 deletions

13
.gitignore vendored
View File

@ -1,6 +1,11 @@
# Node
node_modules node_modules
ssl/
.history # Environment variables
*.db/
.env .env
password.txt
# SQLite databases
prisma/*.db
# TS build
/out

View File

@ -1 +0,0 @@
"use strict";

View File

@ -1 +0,0 @@
"use strict";

View File

@ -1 +0,0 @@
"use strict";

View File

@ -1 +0,0 @@
"use strict";

View File

@ -1,22 +0,0 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.loadConfig = void 0;
const yaml_1 = __importDefault(require("yaml"));
const fs_1 = require("fs");
function loadConfig(filepath, def) {
try {
const data = (0, fs_1.readFileSync)(filepath).toString();
const parsed = yaml_1.default.parse(data);
return parsed || def;
}
catch (err) {
console.error("Unable to load config:", err);
}
finally {
return def;
}
}
exports.loadConfig = loadConfig;

View File

@ -1,22 +0,0 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.env = void 0;
const dotenv_1 = __importDefault(require("dotenv"));
const env_core_1 = require("@t3-oss/env-core");
const zod_1 = require("zod");
dotenv_1.default.config();
exports.env = (0, env_core_1.createEnv)({
server: {
PORT: zod_1.z.coerce.number(),
SALT: zod_1.z.string().min(10),
ADMIN_PASS: zod_1.z.string()
},
isServer: true,
clientPrefix: "",
client: {},
runtimeEnv: process.env
});
exports.default = exports.env;